Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
refactor: updated tab bar design
Kyle Mendellf621fe4fd3a0
diff --git a/frontend/src/lib/components/tab-bar/tab-bar.svelte b/frontend/src/lib/components/tab-bar/tab-bar.svelteindex 54100d314..5fbe1f6d0 100644--- a/frontend/src/lib/components/tab-bar/tab-bar.svelte+++ b/frontend/src/lib/components/tab-bar/tab-bar.svelte@@ -13,7 +13,7 @@let { items, onValueChange, class: className }: Props = $props();</script>-<Tabs.List class={cn('scrollbar-hide flex w-full justify-start gap-4 overflow-x-auto', className)}>+<Tabs.List class={cn('scrollbar-hide inline-flex max-w-full justify-start gap-1 overflow-x-auto', className)}>{#each items as item}{@const IconComponent = item.icon}<Tabs.Triggerdiff --git a/frontend/src/lib/components/ui/tabs/tabs-list.svelte b/frontend/src/lib/components/ui/tabs/tabs-list.svelteindex ee91a794e..f037747ae 100644--- a/frontend/src/lib/components/ui/tabs/tabs-list.svelte+++ b/frontend/src/lib/components/ui/tabs/tabs-list.svelte@@ -8,7 +8,7 @@<TabsPrimitive.Listbind:refclass={cn(- 'text-muted-foreground inline-flex h-10 items-center justify-center rounded-lg bg-black/5 p-1 backdrop-blur-lg dark:bg-white/5',+ 'text-muted-foreground inline-flex h-10 items-center justify-center rounded-full border border-black/5 bg-black/5 p-1 shadow-sm backdrop-blur-xl backdrop-saturate-150 dark:border-white/10 dark:bg-white/5',className)}{...restProps}diff --git a/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte b/frontend/src/lib/components/ui/tabs/tabs-trigger.svelteindex 80eebf8f4..3bd6b0fd0 100644--- a/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte+++ b/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte@@ -8,7 +8,7 @@<TabsPrimitive.Triggerbind:refclass={cn(- 'ring-offset-background focus-visible:ring-ring hover:bg-primary/5 data-[state=active]:bg-primary/15 data-[state=active]:text-primary inline-flex items-center justify-center rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm',+ 'ring-offset-background focus-visible:ring-ring hover:bg-primary/5 data-[state=active]:bg-primary/15 data-[state=active]:text-primary inline-flex items-center justify-center rounded-full px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm',className)}{...restProps}diff --git a/frontend/src/routes/(app)/dashboard/+page.svelte b/frontend/src/routes/(app)/dashboard/+page.svelteindex a507df312..264409e25 100644--- a/frontend/src/routes/(app)/dashboard/+page.svelte+++ b/frontend/src/routes/(app)/dashboard/+page.svelte@@ -429,7 +429,7 @@<Tabs.Root value={activeView} class="w-full"><div class="pt-3 md:pt-4">- <TabBar items={viewTabs} value={activeView} onValueChange={handleViewChange} class="w-full" />+ <TabBar items={viewTabs} value={activeView} onValueChange={handleViewChange} /></div>{#if activeView === 'all'}diff --git a/frontend/src/routes/(app)/environments/[id]/+page.svelte b/frontend/src/routes/(app)/environments/[id]/+page.svelteindex 975da3292..ce9648f3c 100644--- a/frontend/src/routes/(app)/environments/[id]/+page.svelte+++ b/frontend/src/routes/(app)/environments/[id]/+page.svelte@@ -619,7 +619,7 @@<Tabs.Root bind:value={activeTab} class="w-full"><div class="my-4">- <TabBar items={tabItems} value={activeTab} onValueChange={handleTabChange} class="w-full" />+ <TabBar items={tabItems} value={activeTab} onValueChange={handleTabChange} /></div><Tabs.Content value="details">