From ede3ad2ceec68d7ee54c11f5ee092ab74b6bde0f Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Wed, 17 Jun 2026 23:42:02 +0200 Subject: [PATCH] mobile design refactor --- frontend/src/routes/+layout.svelte | 46 +++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 332a239..cb06b68 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -18,6 +18,14 @@ const ticker = 'CONSUME · SPEND · ACCUMULATE · YOU DESERVE IT · TREAT YOURSELF · ONE MORE WON’T HURT · DEBT IS A LIFESTYLE · '; + + // Mark a tab active when the current path matches (or sits under) its href. + const path = $derived(page.url.pathname); + function active(href: string): boolean { + return href === '/lists' + ? path === '/lists' || path.startsWith('/lists/') + : path === href || path.startsWith(href + '/'); + }
@@ -33,25 +41,43 @@
-
- +
+ consume·rs -