UBERF-6636: Fix todos auto expand if collapsed (#5406)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2024-04-19 15:49:04 +07:00 committed by GitHub
parent 2ec9527530
commit 02cecb3820
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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>

View File

@ -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' })