mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +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 {
|
||||
padding: var(--spacing-1_5) var(--spacing-2);
|
||||
min-height: var(--global-large-Size);
|
||||
min-height: var(--global-medium-Size);
|
||||
|
||||
.hulyAccordionItem-header__label-wrapper {
|
||||
&.withIcon {
|
||||
|
@ -44,7 +44,7 @@
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
let collapsed: boolean = getTreeCollapsed(id)
|
||||
$: collapsed = getTreeCollapsed(id)
|
||||
if (isOpen) collapsed = false
|
||||
$: setTreeCollapsed(id, collapsed)
|
||||
|
||||
@ -72,12 +72,12 @@
|
||||
class="hulyAccordionItem-header__label-wrapper {size === 'large' ? 'heading-medium-16' : 'font-medium-12'}"
|
||||
class:withIcon={size === 'medium' && icon !== undefined}
|
||||
>
|
||||
{#if size === 'large'}
|
||||
{#if size === 'large' && !disabled}
|
||||
<div class="hulyAccordionItem-header__chevron">
|
||||
<Icon icon={IconChevronRight} size={'small'} />
|
||||
</div>
|
||||
{/if}
|
||||
{#if size !== 'small' && icon !== undefined}
|
||||
{#if size !== 'small' && icon !== undefined && !disabled}
|
||||
<div class="hulyAccordionItem-header__chevron">
|
||||
<Icon {icon} size={size === 'medium' ? 'small' : 'medium'} {iconProps} />
|
||||
</div>
|
||||
|
@ -269,7 +269,7 @@
|
||||
time.string.Scheduled,
|
||||
scheduled.map((p) => p.todo)
|
||||
)
|
||||
return Array.from(groups).filter((p) => p[1].length > 0)
|
||||
return Array.from(groups)
|
||||
}
|
||||
const getDateStr = (date: Date): string => {
|
||||
return date.toLocaleDateString('default', { month: 'long', day: 'numeric', year: 'numeric' })
|
||||
|
Loading…
Reference in New Issue
Block a user