From 172da3b02579bf46a7fd42c411eef2752e3a35c0 Mon Sep 17 00:00:00 2001 From: James Xylight Date: Tue, 5 Aug 2025 11:56:34 -0700 Subject: [PATCH] fix: use clsx for expandable icon --- src/lib/components/ui/Expandable.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/components/ui/Expandable.svelte b/src/lib/components/ui/Expandable.svelte index 82e545cc..ce0323ca 100644 --- a/src/lib/components/ui/Expandable.svelte +++ b/src/lib/components/ui/Expandable.svelte @@ -38,9 +38,10 @@ src={open ? Minus : Plus} size="16" micro - class="{open - ? '' - : 'rotate-90'} transition-transform duration-300 ease-out" + class={[ + !open && 'rotate-90', + 'transition-transform duration-300 ease-out', + ]} /> {/if}