diff --git a/src/app/styles/countdown.css b/src/app/styles/countdown.css index a59eeef..d420011 100644 --- a/src/app/styles/countdown.css +++ b/src/app/styles/countdown.css @@ -21,10 +21,14 @@ mark[data-state="Paused"] { color: var(--pico-color-amber-500, #929200); } mark[data-state="Finished"] { color: var(--pico-color-red-500, #b00020); } mark[data-state="Idle"] { color: var(--pico-color-zinc-400, #666666); } -details { +.countdown-item-card { margin-bottom: 0.75rem; } +.countdown-item-card details { + margin-bottom: 0; +} + summary mark { margin-left: 0.5rem; } diff --git a/src/features/countdown/components/CountdownPage.svelte b/src/features/countdown/components/CountdownPage.svelte index 8f8b335..6052619 100644 --- a/src/features/countdown/components/CountdownPage.svelte +++ b/src/features/countdown/components/CountdownPage.svelte @@ -98,106 +98,108 @@ {#each $countdownStore.items as item (item.id)} -
(e.currentTarget as HTMLDetailsElement).open && countdownStore.select(item.id)}> - - {#if getSettings(item.id).icon} - {getSettings(item.id).icon} - {/if} - {item.label} - {item.state} - +
+
(e.currentTarget as HTMLDetailsElement).open && countdownStore.select(item.id)}> + + {#if getSettings(item.id).icon} + {getSettings(item.id).icon} + {/if} + {item.label} + {item.state} + -

- {#if $countdownStore.selectedId === item.id && $countdownStore.liveRemaining} - {formatDuration($countdownStore.liveRemaining)} - {:else} - {formatDuration(item.duration)} - {/if} -

+

+ {#if $countdownStore.selectedId === item.id && $countdownStore.liveRemaining} + {formatDuration($countdownStore.liveRemaining)} + {:else} + {formatDuration(item.duration)} + {/if} +

-
- {#if item.state === "Idle"} - - {:else if item.state === "Running"} - - {:else if item.state === "Paused"} - - {/if} - - -
+
+ {#if item.state === "Idle"} + + {:else if item.state === "Running"} + + {:else if item.state === "Paused"} + + {/if} + + +
-
+
-

Icon

-
- {#each icons as name} +

Icon

+
+ {#each icons as name} + + {/each} - {/each} - -
+
-
- - - {#if !getSettings(item.id).bgTransparent} +
- {/if} -
+ + {#if !getSettings(item.id).bgTransparent} + + {/if} +
-
- - -
-
+
+ + +
+
+ {/each}