浏览代码

refac: styling

Timothy Jaeryang Baek 3 月之前
父节点
当前提交
ea7d4ec6ea
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/lib/components/common/Collapsible.svelte

+ 3 - 3
src/lib/components/common/Collapsible.svelte

@@ -37,13 +37,13 @@
 			}}
 		>
 			<div
-				class=" w-full font-medium flex items-center justify-between gap-2 {attributes?.done !==
-				'true'
+				class=" w-full font-medium flex items-center justify-between gap-2 {attributes?.done &&
+				attributes?.done !== 'true'
 					? 'shimmer'
 					: ''}
 			"
 			>
-				{#if attributes?.done !== 'true'}
+				{#if attributes?.done && attributes?.done !== 'true'}
 					<div>
 						<Spinner className="size-4" />
 					</div>