From 308bdee65010e176df780b4b318c8091f73c6655 Mon Sep 17 00:00:00 2001 From: Xylight Date: Thu, 2 Jul 2026 22:49:34 -0700 Subject: [PATCH] design: update Tabs, Material, Button --- src/lib/ui/layout/pages/Tabs.svelte | 25 ++++++++++----------- src/lib/ui/shared/button/Button.svelte | 18 +++++---------- src/lib/ui/shared/materials/Material.svelte | 24 +++++++++----------- 3 files changed, 29 insertions(+), 38 deletions(-) diff --git a/src/lib/ui/layout/pages/Tabs.svelte b/src/lib/ui/layout/pages/Tabs.svelte index b011fd0b..b481e2ed 100644 --- a/src/lib/ui/layout/pages/Tabs.svelte +++ b/src/lib/ui/layout/pages/Tabs.svelte @@ -28,9 +28,7 @@ let matchType = $derived<('search' | 'pathname')[]>( routes.map((i) => - new URL(`https://example.com${i.href}`)?.search != '' - ? 'search' - : 'pathname', + new URL(`https://example.com${i.href}`)?.search != '' ? 'search' : 'pathname', ), ) @@ -42,9 +40,9 @@ // me on 2025/10/9: no shi buh const usePathname = !routes.some( (i) => - new Set( - new URL(`https://example.com${i.href}`).searchParams.values(), - ).intersection(currentSearch).size > 0, + new Set(new URL(`https://example.com${i.href}`).searchParams.values()).intersection( + currentSearch, + ).size > 0, ) const hasSearchParam = hrefSearch.intersection(currentSearch).size > 0 @@ -57,8 +55,8 @@