Skip to content

Commit

Permalink
style: poker stories plans text and buttons align (#650)
Browse files Browse the repository at this point in the history
* style: Poker stories plans flex align

* style: Poker stories plans flex align
  • Loading branch information
jdesnoes authored Nov 22, 2024
1 parent 9edae3e commit 9be9782
Showing 1 changed file with 51 additions and 56 deletions.
107 changes: 51 additions & 56 deletions ui/src/components/poker/PokerStories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
>
{#each plans as plan (plan.id)}
<div
class="relative flex flex-wrap items-center border-b border-gray-300 dark:border-gray-700 p-4 bg-white dark:bg-gray-800{isLeader &&
class="relative flex items-center border-b border-gray-300 dark:border-gray-700 p-4 bg-white dark:bg-gray-800{isLeader &&
storysShow === 'all'
? ' cursor-pointer'
: ''}{(plan.points === '' && storysShow === 'pointed') ||
Expand All @@ -253,44 +253,42 @@
data-testid="plan"
data-storyid="{plan.id}"
>
<div class="w-full lg:w-1/3 mb-4 lg:mb-0">
<div class="inline-block font-bold align-middle dark:text-white mr-1">
{#if plan.link !== ''}
<a
href="{plan.link}"
target="_blank"
class="text-blue-800 dark:text-sky-400"
>
<ExternalLink class="inline-block" />
</a>
&nbsp;
{/if}
<div
class="inline-block text-sm text-gray-500 dark:text-gray-300
border-gray-300 border px-1 rounded"
data-testid="plan-type"
<div class="flex-grow font-bold align-middle dark:text-white mr-1">
{#if plan.link !== ''}
<a
href="{plan.link}"
target="_blank"
class="text-blue-800 dark:text-sky-400"
>
{plan.type}
</div>
<ExternalLink class="inline-block" />
</a>
&nbsp;
{#if plan.referenceId}[{plan.referenceId}]&nbsp;{/if}
<svelte:component
this="{priorities[plan.priority].icon}"
class="inline-block w-6 h-6"
/>
<span data-testid="plan-name">{plan.name}</span>
{/if}
<div
class="inline-block text-sm text-gray-500 dark:text-gray-300
border-gray-300 border px-1 rounded"
data-testid="plan-type"
>
{plan.type}
</div>
&nbsp;
{#if plan.referenceId}[{plan.referenceId}]&nbsp;{/if}
<svelte:component
this="{priorities[plan.priority].icon}"
class="inline-block w-6 h-6"
/>
<span data-testid="plan-name">{plan.name}</span>
</div>
<div class="lg:flex-none text-right">
{#if plan.points !== ''}
<div
class="inline-block font-bold text-green-600 dark:text-lime-400
border-green-500 dark:border-lime-400 border px-2 py-1 rounded ms-2"
border-green-500 dark:border-lime-400 border px-2 py-1 rounded me-1"
data-testid="plan-points"
>
{plan.points}
</div>
{/if}
</div>
<div class="w-full lg:w-2/3 text-right">
<HollowButton
color="blue"
onClick="{togglePlanView(plan.id)}"
Expand Down Expand Up @@ -328,49 +326,46 @@
</div>
{#if plan[SHADOW_ITEM_MARKER_PROPERTY_NAME]}
<div
class="opacity-50 absolute top-0 left-0 right-0 bottom-0 visible opacity-50 cursor-pointer flex flex-wrap items-center border-b border-gray-300 dark:border-gray-700 p-4 bg-white dark:bg-gray-800"
class="opacity-50 absolute top-0 left-0 right-0 bottom-0 visible opacity-50 cursor-pointer flex items-center border-b border-gray-300 dark:border-gray-700 p-4 bg-white dark:bg-gray-800"
data-testid="plan"
data-storyid="{plan.id}"
>
<div class="w-full lg:w-1/3 mb-4 lg:mb-0">
<div class="inline-block font-bold align-middle dark:text-white">
{#if plan.link !== ''}
<a
href="{plan.link}"
target="_blank"
class="text-blue-800 dark:text-sky-400"
>
<ExternalLink class="inline-block" />
</a>
&nbsp;
{/if}
<div
class="inline-block text-sm text-gray-500 dark:text-gray-300
border-gray-300 border px-1 rounded"
data-testid="plan-type"
<div class="flex-grow font-bold align-middle dark:text-white">
{#if plan.link !== ''}
<a
href="{plan.link}"
target="_blank"
class="text-blue-800 dark:text-sky-400"
>
{plan.type}
</div>
<ExternalLink class="inline-block" />
</a>
&nbsp;
{#if plan.referenceId}[{plan.referenceId}]&nbsp;{/if}
<svelte:component
this="{priorities[plan.priority].icon}"
class="inline-block w-6 h-6"
/>
<span data-testid="plan-name">{plan.name}</span>
{/if}
<div
class="inline-block text-sm text-gray-500 dark:text-gray-300
border-gray-300 border px-1 rounded"
data-testid="plan-type"
>
{plan.type}
</div>
&nbsp;
{#if plan.referenceId}[{plan.referenceId}]&nbsp;{/if}
<svelte:component
this="{priorities[plan.priority].icon}"
class="inline-block w-6 h-6"
/>
<span data-testid="plan-name">{plan.name}</span>
</div>
<div class="lg:flex-none text-right">
{#if plan.points !== ''}
<div
class="inline-block font-bold text-green-600 dark:text-lime-400
border-green-500 dark:border-lime-400 border px-2 py-1 rounded ms-2"
border-green-500 dark:border-lime-400 border px-2 py-1 rounded me-1"
data-testid="plan-points"
>
{plan.points}
</div>
{/if}
</div>
<div class="w-full lg:w-2/3 text-right">
<HollowButton
color="blue"
onClick="{togglePlanView(plan.id)}"
Expand Down

0 comments on commit 9be9782

Please sign in to comment.