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 { &.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 {

View File

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

View File

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