Skip to content

Modern Docker Management, Designed for Everyone

fix: keep dialog width wrapped inside the content

Kyle Mendell5e7acb61d3bb
diff --git a/frontend/src/lib/components/prune/prune-mode-card.svelte b/frontend/src/lib/components/prune/prune-mode-card.svelte
index 61cbf02dd..63936861c 100644
--- a/frontend/src/lib/components/prune/prune-mode-card.svelte
+++ b/frontend/src/lib/components/prune/prune-mode-card.svelte
@@ -137,7 +137,7 @@
</div>
<Tabs.Root {value} onValueChange={handleModeChange}>
- <Tabs.List class="h-8 w-full">
+ <Tabs.List class="min-h-8 w-full">
{#each modeOptions as option (option.value)}
<Tabs.Trigger
value={option.value}
diff --git a/frontend/src/lib/components/ui/dialog/dialog-content.svelte b/frontend/src/lib/components/ui/dialog/dialog-content.svelte
index 315a71238..46f81bed3 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-content.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-content.svelte
@@ -28,7 +28,7 @@
bind:ref
data-slot="dialog-content"
class={cn(
- 'fixed top-[50%] left-[50%] z-[var(--arcane-z-surface)] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl border border-border/30 bg-white p-6 text-foreground shadow-lg backdrop-blur-md animation-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:rounded-2xl dark:border-border/80 dark:bg-surface/10',
+ 'fixed top-[50%] left-[50%] z-[var(--arcane-z-surface)] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] grid-cols-[minmax(0,1fr)] gap-4 rounded-2xl border border-border/30 bg-white p-6 text-foreground shadow-lg backdrop-blur-md animation-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:rounded-2xl dark:border-border/80 dark:bg-surface/10',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/tabs/tabs-list.svelte b/frontend/src/lib/components/ui/tabs/tabs-list.svelte
index 722043022..4e1c5dc8b 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.List
bind:ref
class={cn(
- 'inline-flex items-center justify-start gap-1 rounded-lg border border-border/60 bg-muted/40 p-1 text-muted-foreground',
+ 'inline-flex max-w-full flex-wrap items-center justify-start gap-1 rounded-lg border border-border/60 bg-muted/40 p-1 text-muted-foreground',
className
)}
{...restProps}