mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 12:25:17 +00:00
UBERF-6636: Fix todos auto expand if collapsed (#5406)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
2ec9527530
commit
02cecb3820
@ -457,7 +457,7 @@
|
|||||||
}
|
}
|
||||||
&.medium {
|
&.medium {
|
||||||
padding: var(--spacing-1_5) var(--spacing-2);
|
padding: var(--spacing-1_5) var(--spacing-2);
|
||||||
min-height: var(--global-large-Size);
|
min-height: var(--global-medium-Size);
|
||||||
|
|
||||||
.hulyAccordionItem-header__label-wrapper {
|
.hulyAccordionItem-header__label-wrapper {
|
||||||
&.withIcon {
|
&.withIcon {
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
let collapsed: boolean = getTreeCollapsed(id)
|
$: collapsed = getTreeCollapsed(id)
|
||||||
if (isOpen) collapsed = false
|
if (isOpen) collapsed = false
|
||||||
$: setTreeCollapsed(id, collapsed)
|
$: setTreeCollapsed(id, collapsed)
|
||||||
|
|
||||||
@ -72,12 +72,12 @@
|
|||||||
class="hulyAccordionItem-header__label-wrapper {size === 'large' ? 'heading-medium-16' : 'font-medium-12'}"
|
class="hulyAccordionItem-header__label-wrapper {size === 'large' ? 'heading-medium-16' : 'font-medium-12'}"
|
||||||
class:withIcon={size === 'medium' && icon !== undefined}
|
class:withIcon={size === 'medium' && icon !== undefined}
|
||||||
>
|
>
|
||||||
{#if size === 'large'}
|
{#if size === 'large' && !disabled}
|
||||||
<div class="hulyAccordionItem-header__chevron">
|
<div class="hulyAccordionItem-header__chevron">
|
||||||
<Icon icon={IconChevronRight} size={'small'} />
|
<Icon icon={IconChevronRight} size={'small'} />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if size !== 'small' && icon !== undefined}
|
{#if size !== 'small' && icon !== undefined && !disabled}
|
||||||
<div class="hulyAccordionItem-header__chevron">
|
<div class="hulyAccordionItem-header__chevron">
|
||||||
<Icon {icon} size={size === 'medium' ? 'small' : 'medium'} {iconProps} />
|
<Icon {icon} size={size === 'medium' ? 'small' : 'medium'} {iconProps} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -269,7 +269,7 @@
|
|||||||
time.string.Scheduled,
|
time.string.Scheduled,
|
||||||
scheduled.map((p) => p.todo)
|
scheduled.map((p) => p.todo)
|
||||||
)
|
)
|
||||||
return Array.from(groups).filter((p) => p[1].length > 0)
|
return Array.from(groups)
|
||||||
}
|
}
|
||||||
const getDateStr = (date: Date): string => {
|
const getDateStr = (date: Date): string => {
|
||||||
return date.toLocaleDateString('default', { month: 'long', day: 'numeric', year: 'numeric' })
|
return date.toLocaleDateString('default', { month: 'long', day: 'numeric', year: 'numeric' })
|
||||||
|
Loading…
Reference in New Issue
Block a user