fix: Text truncation in GroupedListItem component

This commit is contained in:
Shibo Lyu 2025-04-12 03:48:15 +08:00
parent 388bd84b0f
commit a954510d38

View file

@ -27,9 +27,11 @@
{#if icon} {#if icon}
<Icon <Icon
src={icon} src={icon}
class={tw('text-sf-secondary size-5', selected && 'dark:text-sf-primary text-white')} class={tw('text-sf-secondary size-5 shrink-0', selected && 'dark:text-sf-primary text-white')}
mini mini
/> />
{/if} {/if}
{@render children?.()} <div class="min-w-0 truncate text-start">
{@render children?.()}
</div>
</svelte:element> </svelte:element>