mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-26 19:44:57 +02:00
UBER-504: fix presenters on ListItem. Add DeviceSizes. (#3463)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user