사소한 리팩토링

This commit is contained in:
static
2026-01-18 12:03:24 +09:00
parent bcb57bb12d
commit 14693160b8
10 changed files with 17 additions and 24 deletions
+2 -2
View File
@@ -9,8 +9,8 @@
class?: ClassValue;
onclick?: () => void;
onRemoveClick?: () => void;
selected?: boolean;
removable?: boolean;
selected?: boolean;
}
let {
@@ -38,7 +38,7 @@
<span>
{@render children()}
</span>
{#if selected && removable}
{#if removable && selected}
<button
onclick={(e) => {
e.stopPropagation();
@@ -24,7 +24,7 @@
<div class="h-full w-full bg-gray-100"></div>
{/if}
{#if info.isFavorite}
<div class={["absolute bottom-0.5 right-0.5", !thumbnail && "rounded-full bg-white p-0.5"]}>
<div class={["absolute bottom-0.5 right-0.5"]}>
<IconFavorite
class="text-sm text-red-500"
style="filter: drop-shadow(0 0 1px white) drop-shadow(0 0 1px white)"
+2 -2
View File
@@ -25,9 +25,9 @@
{#if showBackButton}
<button
onclick={onBackClick ?? (() => history.back())}
class="w-[2.3rem] flex-shrink-0 rounded-full p-1 active:bg-black active:bg-opacity-[0.04]"
class="w-full rounded-full p-1 text-2xl active:bg-black active:bg-opacity-[0.04]"
>
<IconArrowBack class="text-2xl" />
<IconArrowBack />
</button>
{/if}
</div>