UBER-504: fix presenters on ListItem. Add DeviceSizes. (#3463)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2023-06-28 11:26:37 +07:00
committed by GitHub
parent dbfbcc12ee
commit c7ade707c6
24 changed files with 345 additions and 98 deletions
@@ -56,9 +56,8 @@
{#if (value.component && value.component !== $activeComponent && groupBy !== 'component') || shouldShowPlaceholder}
<div
class="clear-mins"
class="label-wrapper"
class:minus-margin={kind === 'list-header'}
class:label-wrapper={compression}
use:tooltip={{ label: value.component ? tracker.string.MoveToComponent : tracker.string.AddToComponent }}
>
<ComponentSelector
@@ -74,7 +73,7 @@
{onlyIcon}
{enlargedText}
value={value.component}
short={compression}
short
onChange={handleComponentIdChanged}
/>
</div>
@@ -39,6 +39,7 @@
export let size: ButtonSize = 'small'
export let justify: 'left' | 'center' = 'left'
export let width: string | undefined = 'min-contet'
export let compactMode: boolean = false
let btn: HTMLElement
@@ -150,9 +151,11 @@
<svelte:fragment slot="content">
{#if subIssues}
<div class="flex-row-center content-color text-sm pointer-events-none">
<div class="mr-1-5">
<ProgressCircle bind:value={countComplete} bind:max={subIssues.length} size={'small'} primary />
</div>
{#if !compactMode}
<div class="mr-1-5">
<ProgressCircle bind:value={countComplete} bind:max={subIssues.length} size={'small'} primary />
</div>
{/if}
{countComplete}/{subIssues.length}
</div>
{/if}
@@ -78,7 +78,7 @@
{#if kind === 'list'}
{#if value.milestone}
<div class="clear-mins" class:label-wrapper={compression}>
<div class="label-wrapper">
<MilestoneSelector
{kind}
{size}
@@ -90,7 +90,7 @@
{popupPlaceholder}
{onlyIcon}
{enlargedText}
short={compression}
short
showTooltip={{ label: value.milestone ? tracker.string.MoveToMilestone : tracker.string.AddToMilestone }}
value={value.milestone}
onChange={handleMilestoneIdChanged}