From a9303b475d79a9a770d66c58edb8d73c5cdeeab9 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Wed, 29 Jul 2026 15:05:18 +0200 Subject: feat: single-line category add form with + button --- src/routes/categories/+page.svelte | 65 +++++++++++++++++++++++++++----------- 1 file changed, 47 insertions(+), 18 deletions(-) (limited to 'src/routes/categories') diff --git a/src/routes/categories/+page.svelte b/src/routes/categories/+page.svelte index 9c91578..b5ef3f7 100644 --- a/src/routes/categories/+page.svelte +++ b/src/routes/categories/+page.svelte @@ -36,24 +36,16 @@
-
- - + + +
{#if form?.error} @@ -127,6 +119,43 @@ margin-bottom: 0.5rem; } + .cat-add-bar { + display: flex; + gap: 0.5rem; + padding: 0.75rem 0; + } + + .cat-add-bar input { + flex: 1; + background: var(--surface); + } + + .btn-accent { + width: 3rem; + height: 3rem; + flex-shrink: 0; + padding: 0; + border: none; + border-radius: 0.75rem; + background: var(--accent); + color: var(--white); + font-size: 1.25rem; + font-weight: 500; + font-family: inherit; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.2s ease; + box-shadow: 0 1px 2px var(--shadow); + } + + .btn-accent:hover { + background: var(--accent-hover); + transform: translateY(-1px); + box-shadow: 0 4px 8px var(--shadow-accent-lg); + } + .empty { margin-top: 1rem; padding: 2rem; -- cgit v1.3