From 0d59bd4ae9597b95fa0f21952f266efd8fa33e60 Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Thu, 29 Jan 2026 02:49:13 +1030 Subject: [PATCH] style: dropdown'd tabs on mobile --- src/lib/client/ui/navigation/tabs/Tabs.svelte | 166 +++++++++++++----- .../[databaseId]/[id]/+layout.svelte | 2 +- 2 files changed, 123 insertions(+), 45 deletions(-) diff --git a/src/lib/client/ui/navigation/tabs/Tabs.svelte b/src/lib/client/ui/navigation/tabs/Tabs.svelte index 72722cf..47172b2 100644 --- a/src/lib/client/ui/navigation/tabs/Tabs.svelte +++ b/src/lib/client/ui/navigation/tabs/Tabs.svelte @@ -1,6 +1,11 @@ -
- -
+ + {#if activeTab?.icon} + + {/if} + {activeTab?.label ?? 'Select...'} + + + + + {#if dropdownOpen} + + {#each tabs as tab} + handleTabSelect(tab.href)} + /> + {/each} + + {/if} + + +{:else} + +
+ +
+{/if} diff --git a/src/routes/quality-profiles/[databaseId]/[id]/+layout.svelte b/src/routes/quality-profiles/[databaseId]/[id]/+layout.svelte index 8e54eda..9e8718c 100644 --- a/src/routes/quality-profiles/[databaseId]/[id]/+layout.svelte +++ b/src/routes/quality-profiles/[databaseId]/[id]/+layout.svelte @@ -36,7 +36,7 @@
- +