diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-12 22:24:19 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-12 22:24:19 +0200 |
| commit | 5f0a73920034741236034ed7a721c68eceb8ab82 (patch) | |
| tree | c5653093db0484e7474b9d69941666dfc308b083 /src/routes/+page.svelte | |
| parent | 1cef356be95a67f95d40f5b0b131f98d11f13c13 (diff) | |
Extract Row primitive, migrate all call sites
Variants card/ref/plain with scoped skin. Padding and wrap
one-offs via style prop; draggable and handlers via rest
spread. GroceryRow absorbs item-btn/ref-link globals with
local names; BestRef scopes best-ref. Delete item-* globals
and dead page overrides.
Diffstat (limited to 'src/routes/+page.svelte')
| -rw-r--r-- | src/routes/+page.svelte | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 1adfb6b..66b3259 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -2,6 +2,7 @@ import { enhance } from '$app/forms'; import ScoreBadge from '$lib/components/ScoreBadge.svelte'; import Button from '$lib/components/Button.svelte'; + import Row from '$lib/components/Row.svelte'; let { data, form } = $props(); @@ -32,12 +33,12 @@ <ul class="item-list"> {#each data.projects as entry (entry.project.id)} - <li class="item-row item-row--card project-row"> + <Row style="padding: 0.875rem 1rem;"> <a class="project-link" href="/projects/{entry.project.id}" >{entry.project.name}</a > <ScoreBadge score={entry.healthScore} /> - </li> + </Row> {/each} </ul> @@ -47,10 +48,6 @@ </main> <style> - .project-row { - padding: 0.875rem 1rem; - } - .project-link { flex-grow: 1; font-weight: 500; |
