Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
refactor: use drawers on mobile and dialogs on desktop
Kyle Mendell89beadc5dcdb
diff --git a/frontend/src/app.css b/frontend/src/app.cssindex ac3064c26..49cdd4dc1 100644--- a/frontend/src/app.css+++ b/frontend/src/app.css@@ -118,7 +118,6 @@--sidebar-border: oklch(1 0 0 / 10%);--sidebar-ring: oklch(0.541 0.281 293.009);- /* Surface and glass tunables (dark) */--bg-surface: oklch(0.21 0.006 285.885);--glass-base: var(--bg-surface);--glass-tint: var(--primary);@@ -126,18 +125,15 @@--glass-border-alpha: 0.28;--glass-shadow-color: oklch(0 0 0 / 0.32);--glass-saturation: 180%;- /* Cupertino liquid glass strokes (dark) */--glass-stroke-outer: color-mix(in oklch, white 10%, transparent);--glass-stroke-inner: color-mix(in oklch, black 10%, transparent);--glass-stroke-outer-strong: color-mix(in oklch, white 14%, transparent);--glass-stroke-inner-strong: color-mix(in oklch, black 14%, transparent);- /* Glass effect intensity presets (dark) */--glass-light-alpha: 0.2;--glass-medium-alpha: 0.35;--glass-heavy-alpha: 0.5;- /* Popup-specific blur values */--glass-blur-popup: 48px;}@@ -204,20 +200,17 @@/* Glass effect toggle: disable all glass/blur/gradients when .glass-disabled */body:not(.glass-enabled) {- /* Make core surfaces fully opaque (classic/old background look) */- /* Use the base surface color for cards and sidebar instead of semi-transparent variants */--card: var(--bg-surface);--sidebar: var(--bg-surface);- /* Hide ambient backdrop */&::before {display: none;}- /* Reduce noise opacity to minimal */+&::after {opacity: 0.015;}- /* Override glass classes to be solid, but keep proper card backgrounds */+.glass,.glass-strong,.glass-subtle {@@ -226,37 +219,37 @@ body:not(.glass-enabled) {border-color: var(--border) !important;box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;}- /* Override bubble styles */+.bubble {background: var(--card) !important;box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;}- /* Override bubble shadows */+.bubble-shadow,.bubble-shadow-lg {box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;}- /* Disable hover lift when glass disabled */+.hover-lift:hover {transform: none !important;}- /* Remove bubble outline gradient */+.bubble-outline {background: var(--card) !important;border: 1px solid var(--border) !important;}- /* Remove blob floating effects */+.blob-floating::before {display: none;}- /* Ensure inputs work properly without glass */+input[data-slot='input'],textarea[data-slot='textarea'],[data-slot='select-trigger'] {background: var(--input) !important;border: 1px solid var(--border) !important;}- /* Restore focus states for inputs */+input[data-slot='input']:focus-visible,textarea[data-slot='textarea']:focus-visible,[data-slot='select-trigger']:focus-visible {@@ -266,7 +259,6 @@ body:not(.glass-enabled) {outline: none !important;}- /* Sidebar: force solid background and remove any blur */[data-sidebar='sidebar'] {background: var(--bg-surface) !important;backdrop-filter: none !important;@@ -279,14 +271,11 @@ body:not(.glass-enabled) {}}-/* Global colorful backdrop for glass surfaces - only when glass is enabled */body.glass-enabled {- /* Solid background in glass mode; panels provide the liquid sheen */background-color: var(--background);}body.glass-enabled::before {- /* Disable the pseudo-layer so the glass blur samples the page background */display: none !important;}@@ -296,7 +285,6 @@ body.glass-enabled::before {}}-/* Subtle noise to reduce banding */body::after {content: '';position: fixed;diff --git a/frontend/src/lib/components/dialogs/docker-info-dialog.svelte b/frontend/src/lib/components/dialogs/docker-info-dialog.svelteindex 591310869..7e2e171c2 100644--- a/frontend/src/lib/components/dialogs/docker-info-dialog.svelte+++ b/frontend/src/lib/components/dialogs/docker-info-dialog.svelte@@ -1,5 +1,5 @@<script lang="ts">- import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { ResponsiveDialog } from '$lib/components/ui/responsive-dialog/index.js';import { Button } from '$lib/components/ui/button/index.js';import { Badge } from '$lib/components/ui/badge';import InfoIcon from '@lucide/svelte/icons/info';@@ -34,30 +34,27 @@}</script>-<Dialog.Root bind:open>- <Dialog.Content class="flex max-h-[90vh] flex-col sm:max-w-[720px]">- <Dialog.Header class="flex-shrink-0 border-b pb-3">- <Dialog.Title class="flex items-center gap-2">- <InfoIcon class="size-5 text-blue-500" />- {m.docker_info_dialog_title()}- </Dialog.Title>- <Dialog.Description>{m.docker_info_dialog_description()}</Dialog.Description>- </Dialog.Header>-- <div class="min-h-0 flex-1 space-y-4 overflow-y-auto py-4">+<ResponsiveDialog+ bind:open+ title={m.docker_info_dialog_title()}+ description={m.docker_info_dialog_description()}+ contentClass="sm:max-w-[720px]"+>+ {#snippet children()}+ <div class="space-y-4">{@render versionSection()}{@render systemSection()}{@render driversSection()}{@render statsSection()}</div>+ {/snippet}- <Dialog.Footer class="flex-shrink-0 border-t pt-3">- <Button variant="outline" onclick={handleClose}>- {m.common_close()}- </Button>- </Dialog.Footer>- </Dialog.Content>-</Dialog.Root>+ {#snippet footer()}+ <Button variant="outline" onclick={handleClose}>+ {m.common_close()}+ </Button>+ {/snippet}+</ResponsiveDialog>{#snippet versionSection()}<div>diff --git a/frontend/src/lib/components/dialogs/event-details-dialog.svelte b/frontend/src/lib/components/dialogs/event-details-dialog.svelteindex 8f7315fc3..0cf12f92f 100644--- a/frontend/src/lib/components/dialogs/event-details-dialog.svelte+++ b/frontend/src/lib/components/dialogs/event-details-dialog.svelte@@ -1,5 +1,5 @@<script lang="ts">- import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { ResponsiveDialog } from '$lib/components/ui/responsive-dialog/index.js';import { Button } from '$lib/components/ui/button/index.js';import { Badge } from '$lib/components/ui/badge';import CopyIcon from '@lucide/svelte/icons/copy';@@ -70,28 +70,25 @@}</script>-<Dialog.Root bind:open>- <Dialog.Content class="glass flex max-h-[90vh] flex-col rounded-xl border shadow-xl sm:max-w-[980px]">- <Dialog.Header class="shrink-0 border-b p-4">+<ResponsiveDialog bind:open contentClass="sm:max-w-[980px]">+ {#snippet children()}+ <div class="space-y-4">{@render headerContent()}- </Dialog.Header>-- <div class="min-h-0 flex-1 space-y-4 overflow-y-auto p-4">{@render infoCards()}{@render metadataSection()}{@render rawEventSection()}</div>+ {/snippet}- <Dialog.Footer class="flex shrink-0 items-center justify-end gap-2 border-t p-3">- <Button variant="outline" onclick={handleClose}>- {m.common_close()}- </Button>- </Dialog.Footer>- </Dialog.Content>-</Dialog.Root>+ {#snippet footer()}+ <Button variant="outline" onclick={handleClose}>+ {m.common_close()}+ </Button>+ {/snippet}+</ResponsiveDialog>{#snippet headerContent()}- <div class="flex items-start gap-3">+ <div class="flex items-start gap-3 border-b pb-4"><div class="mt-0.5">{#if severity === 'success'}<CheckCircle2Icon class={getSeverityIconClass(severity) + ' size-6'} />@@ -104,13 +101,13 @@{/if}</div><div class="min-w-0 flex-1">- <Dialog.Title class="text-xl font-semibold">+ <h3 class="text-xl font-semibold">{event?.title ?? m.events_details_title()}- </Dialog.Title>+ </h3>{#if event?.description}- <Dialog.Description class="text-muted-foreground mt-1 text-sm">+ <p class="text-muted-foreground mt-1 text-sm">{event.description}- </Dialog.Description>+ </p>{/if}<div class="mt-3 flex flex-wrap items-center gap-2"><Badge class={`border ${getSeverityBadgeClass(severity)}`}>@@ -201,13 +198,3 @@></pre></div>{/snippet}--<style>- /* Lock background scroll while dialog is open; no animations/effects */- :global(html:has([data-slot='dialog-overlay'][data-state='open'])) {- overflow: hidden;- }- :global(body:has([data-slot='dialog-overlay'][data-state='open'])) {- overflow: hidden;- }-</style>diff --git a/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte b/frontend/src/lib/components/dialogs/first-login-password-dialog.svelteindex a02d23420..033192315 100644--- a/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte+++ b/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte@@ -1,5 +1,5 @@<script lang="ts">- import * as Dialog from '$lib/components/ui/dialog';+ import { ResponsiveDialog } from '$lib/components/ui/responsive-dialog/index.js';import * as Alert from '$lib/components/ui/alert';import { Button } from '$lib/components/ui/button';import { Input } from '$lib/components/ui/input';@@ -57,20 +57,18 @@}</script>-<Dialog.Root+<ResponsiveDialogbind:openonOpenChange={(isOpen) => {if (!isOpen) {open = true;}}}+ title={m.first_login_title()}+ description={m.first_login_description()}+ contentClass="sm:max-w-[425px] [&>button]:hidden">- <Dialog.Content class="sm:max-w-[425px] [&>button]:hidden">- <Dialog.Header>- <Dialog.Title>{m.first_login_title()}</Dialog.Title>- <Dialog.Description>{m.first_login_description()}</Dialog.Description>- </Dialog.Header>-+ {#snippet children()}<formonsubmit={(e) => {e.preventDefault();@@ -169,17 +167,17 @@</Button></div></div>-- <Dialog.Footer>- <Button type="submit" disabled={!isValid || isLoading}>- {#if isLoading}- <Spinner class="mr-2 h-4 w-4" />- {m.first_login_submitting()}- {:else}- {m.first_login_submit()}- {/if}- </Button>- </Dialog.Footer></form>- </Dialog.Content>-</Dialog.Root>+ {/snippet}++ {#snippet footer()}+ <Button type="submit" onclick={handleSubmit} disabled={!isValid || isLoading}>+ {#if isLoading}+ <Spinner class="mr-2 h-4 w-4" />+ {m.first_login_submitting()}+ {:else}+ {m.first_login_submit()}+ {/if}+ </Button>+ {/snippet}+</ResponsiveDialog>diff --git a/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte b/frontend/src/lib/components/dialogs/oidc-config-dialog.svelteindex a8b08b0c7..b75453d1a 100644--- a/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte+++ b/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte@@ -1,8 +1,8 @@<script lang="ts">+ import { ResponsiveDialog } from '$lib/components/ui/responsive-dialog/index.js';import { Button } from '$lib/components/ui/button/index.js';import { Input } from '$lib/components/ui/input/index.js';import { Label } from '$lib/components/ui/label/index.js';- import * as Dialog from '$lib/components/ui/dialog/index.js';import KeyIcon from '@lucide/svelte/icons/key';import TriangleAlertIcon from '@lucide/svelte/icons/triangle-alert';import InfoIcon from '@lucide/svelte/icons/info';@@ -82,49 +82,35 @@}</script>-<Dialog.Root bind:open>- <Dialog.Content class="flex max-h-[90vh] flex-col sm:max-w-[860px]">- <Dialog.Header class="shrink-0 space-y-3">- <Dialog.Title class="flex items-center gap-2">- <span class="bg-primary/10 text-primary ring-primary/20 flex size-8 items-center justify-center rounded-md ring-1">- <KeyIcon class="size-4" />- </span>- {dialogTitle}- </Dialog.Title>- <Dialog.Description class="text-sm leading-relaxed">- {dialogDescription}- </Dialog.Description>- </Dialog.Header>-- <div class="min-h-0 flex-1 overflow-y-auto py-4">- <div class="space-y-6">- {#if isViewMode}- {@render viewModeContent()}- {:else}- {@render editModeContent()}- {/if}+<ResponsiveDialog bind:open title={dialogTitle} description={dialogDescription} contentClass="sm:max-w-[860px]">+ {#snippet children()}+ <div class="space-y-6">+ {#if isViewMode}+ {@render viewModeContent()}+ {:else}+ {@render editModeContent()}+ {/if}- {#if isWarningMode}- {@render warningBanner()}- {/if}+ {#if isWarningMode}+ {@render warningBanner()}+ {/if}- {@render redirectUriSection()}- </div>+ {@render redirectUriSection()}</div>+ {/snippet}- <Dialog.Footer class="flex shrink-0 gap-3 border-t pt-4">- <Button variant="outline" onclick={handleClose} class="flex-1 sm:flex-none">- {m.common_close()}+ {#snippet footer()}+ <Button variant="outline" onclick={handleClose} class="flex-1 sm:flex-none">+ {m.common_close()}+ </Button>+ {#if !isViewMode}+ <Button onclick={onSave} class="flex-1 sm:flex-none">+ <KeyIcon class="mr-2 size-4" />+ {m.common_save()}</Button>- {#if !isViewMode}- <Button onclick={onSave} class="flex-1 sm:flex-none">- <KeyIcon class="mr-2 size-4" />- {m.common_save()}- </Button>- {/if}- </Dialog.Footer>- </Dialog.Content>-</Dialog.Root>+ {/if}+ {/snippet}+</ResponsiveDialog>{#snippet viewModeContent()}<div class="glass-light rounded-lg border p-4">diff --git a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelteindex 1a0cca22a..654914389 100644--- a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte+++ b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte@@ -1,5 +1,5 @@<script lang="ts">- import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { ResponsiveDialog } from '$lib/components/ui/responsive-dialog/index.js';import { Button } from '$lib/components/ui/button/index.js';import * as Checkbox from '$lib/components/ui/checkbox/index.js';import { Label } from '$lib/components/ui/label/index.js';@@ -54,22 +54,17 @@onCancel();}}-- function handleKeydown(event: KeyboardEvent) {- if (event.key === 'Escape' && !isPruning) {- handleCancel();- }- }</script>-<Dialog.Root bind:open onOpenChange={(isOpen) => !isOpen && handleCancel()}>- <Dialog.Content class="sm:max-w-[450px]" onkeydown={handleKeydown}>- <Dialog.Header>- <Dialog.Title>{m.prune_confirm_system_title()}</Dialog.Title>- <Dialog.Description>{m.prune_confirm_description()}</Dialog.Description>- </Dialog.Header>-- <div class="grid gap-4 py-4">+<ResponsiveDialog+ bind:open+ onOpenChange={(isOpen) => !isOpen && handleCancel()}+ title={m.prune_confirm_system_title()}+ description={m.prune_confirm_description()}+ contentClass="sm:max-w-[450px]"+>+ {#snippet children()}+ <div class="grid gap-4"><div class="flex items-center space-x-3"><Checkbox.Root id="prune-containers" bind:checked={pruneContainers} disabled={isPruning} /><Label@@ -90,7 +85,6 @@</Label></div>- <!-- Build cache --><div class="flex items-center space-x-3"><Checkbox.Root id="prune-build-cache" bind:checked={pruneBuildCache} disabled={isPruning} /><Label@@ -129,23 +123,23 @@</Alert.Root>{/if}</div>-- <Dialog.Footer>- <Button class="arcane-button-cancel" variant="outline" onclick={handleCancel} disabled={isPruning}>- {m.common_cancel()}- </Button>- <Button- class="arcane-button-remove"- variant="destructive"- onclick={handleConfirm}- disabled={selectedTypes.length === 0 || isPruning}- >- {#if isPruning}- <Spinner class="mr-2 size-4" /> {m.common_action_pruning()}- {:else}- <Trash2Icon class="mr-2 size-4" /> {m.prune_button({ count: selectedTypes.length })}- {/if}- </Button>- </Dialog.Footer>- </Dialog.Content>-</Dialog.Root>+ {/snippet}++ {#snippet footer()}+ <Button class="arcane-button-cancel" variant="outline" onclick={handleCancel} disabled={isPruning}>+ {m.common_cancel()}+ </Button>+ <Button+ class="arcane-button-remove"+ variant="destructive"+ onclick={handleConfirm}+ disabled={selectedTypes.length === 0 || isPruning}+ >+ {#if isPruning}+ <Spinner class="mr-2 size-4" /> {m.common_action_pruning()}+ {:else}+ <Trash2Icon class="mr-2 size-4" /> {m.prune_button({ count: selectedTypes.length })}+ {/if}+ </Button>+ {/snippet}+</ResponsiveDialog>diff --git a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte b/frontend/src/lib/components/dialogs/template-selection-dialog.svelteindex 67865f2f7..182acaec0 100644--- a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte+++ b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte@@ -1,5 +1,5 @@<script lang="ts">- import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { ResponsiveDialog } from '$lib/components/ui/responsive-dialog/index.js';import { Button } from '$lib/components/ui/button/index.js';import { Card } from '$lib/components/ui/card/index.js';import { Badge } from '$lib/components/ui/badge/index.js';@@ -218,41 +218,38 @@</Card>{/snippet}-<Dialog.Root bind:open>- <Dialog.Content class="max-h-screen overflow-y-auto sm:max-w-[900px]">- <Dialog.Header>- <Dialog.Title class="flex items-center gap-2">- <FileTextIcon class="size-5" />- {m.templates_choose_title()}- </Dialog.Title>- <Dialog.Description>{m.templates_choose_description()}</Dialog.Description>- </Dialog.Header>-- <div class="mb-3 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">- <div class="flex items-center gap-3">- <SwitchWithLabel- id="groupByRegistrySwitch"- label={m.templates_group_by_registry_label()}- description={m.templates_group_by_registry_description()}- bind:checked={groupByRegistry}- />- </div>- <div class="flex items-center gap-3">- <Label for="sortBy" class="text-sm font-medium whitespace-nowrap">{m.common_sort_by()}</Label>- <Select.Root bind:value={sortBy} type="single">- <Select.Trigger id="sortBy" class="bg-background h-9 rounded-md border px-2 text-sm">- {filters[sortBy]}- </Select.Trigger>- <Select.Content>- {#each Object.entries(filters) as [value, label]}- <Select.Item {value}>{label}</Select.Item>- {/each}- </Select.Content>- </Select.Root>+<ResponsiveDialog+ bind:open+ title={m.templates_choose_title()}+ description={m.templates_choose_description()}+ contentClass="sm:max-w-[900px]"+>+ {#snippet children()}+ <div class="space-y-4">+ <div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">+ <div class="flex items-center gap-3">+ <SwitchWithLabel+ id="groupByRegistrySwitch"+ label={m.templates_group_by_registry_label()}+ description={m.templates_group_by_registry_description()}+ bind:checked={groupByRegistry}+ />+ </div>+ <div class="flex items-center gap-3">+ <Label for="sortBy" class="text-sm font-medium whitespace-nowrap">{m.common_sort_by()}</Label>+ <Select.Root bind:value={sortBy} type="single">+ <Select.Trigger id="sortBy" class="bg-background h-9 rounded-md border px-2 text-sm">+ {filters[sortBy]}+ </Select.Trigger>+ <Select.Content>+ {#each Object.entries(filters) as [value, label]}+ <Select.Item {value}>{label}</Select.Item>+ {/each}+ </Select.Content>+ </Select.Root>+ </div></div>- </div>- <div class="py-2"><ScrollArea class="max-h-[65vh]">{#if allTemplates.length === 0}<div class="text-muted-foreground py-10 text-center">@@ -299,12 +296,12 @@{/if}</ScrollArea></div>+ {/snippet}- <Dialog.Footer>- <Button variant="outline" onclick={() => (open = false)}>{m.common_cancel()}</Button>- </Dialog.Footer>- </Dialog.Content>-</Dialog.Root>+ {#snippet footer()}+ <Button variant="outline" onclick={() => (open = false)}>{m.common_cancel()}</Button>+ {/snippet}+</ResponsiveDialog><style>.line-clamp-2 {diff --git a/frontend/src/lib/components/ui/responsive-dialog/index.ts b/frontend/src/lib/components/ui/responsive-dialog/index.tsnew file mode 100644index 000000000..2bde11cb3--- /dev/null+++ b/frontend/src/lib/components/ui/responsive-dialog/index.ts@@ -0,0 +1,5 @@+import Root from './responsive-dialog.svelte';++export { Root, Root as ResponsiveDialog };++export type { ResponsiveDialogProps } from './responsive-dialog.type.js';diff --git a/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.sveltenew file mode 100644index 000000000..e1909db7f--- /dev/null+++ b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte@@ -0,0 +1,95 @@+<script lang="ts">+ import { MediaQuery } from 'svelte/reactivity';+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import * as Drawer from '$lib/components/ui/drawer/index.js';+ import type { ResponsiveDialogProps } from './responsive-dialog.type.js';++ let {+ open = $bindable(false),+ onOpenChange,+ trigger,+ title,+ description,+ children,+ footer,+ class: className,+ contentClass+ }: ResponsiveDialogProps = $props();++ const isDesktop = new MediaQuery('(min-width: 768px)');++ function handleOpenChange(newOpen: boolean) {+ open = newOpen;+ onOpenChange?.(newOpen);+ }+</script>++{#if isDesktop.current}+ <Dialog.Root bind:open onOpenChange={handleOpenChange}>+ {#if trigger}+ <Dialog.Trigger>+ {@render trigger()}+ </Dialog.Trigger>+ {/if}+ <Dialog.Content class={contentClass ?? 'sm:max-w-[425px]'}>+ {#if title || description}+ <Dialog.Header>+ {#if title}+ <Dialog.Title>{title}</Dialog.Title>+ {/if}+ {#if description}+ <Dialog.Description>{description}</Dialog.Description>+ {/if}+ </Dialog.Header>+ {/if}+ <div class={className ?? ''}>+ {@render children()}+ </div>+ {#if footer}+ <Dialog.Footer>+ {@render footer()}+ </Dialog.Footer>+ {/if}+ </Dialog.Content>+ </Dialog.Root>+{:else}+ <Drawer.Root bind:open onOpenChange={handleOpenChange}>+ {#if trigger}+ <Drawer.Trigger>+ {@render trigger()}+ </Drawer.Trigger>+ {/if}+ <Drawer.Content>+ {#if title || description}+ <Drawer.Header class="text-left">+ {#if title}+ <Drawer.Title>{title}</Drawer.Title>+ {/if}+ {#if description}+ <Drawer.Description>{description}</Drawer.Description>+ {/if}+ </Drawer.Header>+ {/if}+ <div class={className ?? 'px-4 pb-4'}>+ {@render children()}+ </div>+ {#if footer}+ <Drawer.Footer class="pt-2">+ {@render footer()}+ </Drawer.Footer>+ {/if}+ </Drawer.Content>+ </Drawer.Root>+{/if}++<style>+ :global(html:has([data-slot='dialog-overlay'][data-state='open'])),+ :global(body:has([data-slot='dialog-overlay'][data-state='open'])) {+ overflow: hidden !important;+ }++ :global(html:has([data-vaul-drawer])),+ :global(body:has([data-vaul-drawer])) {+ overflow: hidden !important;+ }+</style>diff --git a/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.type.ts b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.type.tsnew file mode 100644index 000000000..21710b81b--- /dev/null+++ b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.type.ts@@ -0,0 +1,54 @@+import { type Snippet } from 'svelte';++export interface ResponsiveDialogProps {+ /**+ * Bindable open state of the dialog/drawer+ * @default false+ */+ open?: boolean;++ /**+ * Callback function when open state changes+ */+ onOpenChange?: (open: boolean) => void;++ /**+ * Snippet for the trigger button (optional)+ * If not provided, dialog must be controlled externally via `open` prop+ */+ trigger?: Snippet;++ /**+ * Title displayed in the dialog/drawer header+ */+ title?: string;++ /**+ * Description displayed in the dialog/drawer header+ */+ description?: string;++ /**+ * Main content snippet (required)+ */+ children: Snippet;++ /**+ * Footer content snippet (optional)+ * Typically used for action buttons+ */+ footer?: Snippet;++ /**+ * CSS class for the content wrapper+ * Desktop: No default padding+ * Mobile: Defaults to 'px-4'+ */+ class?: string;++ /**+ * CSS class for the dialog content container+ * @default 'sm:max-w-[425px]'+ */+ contentClass?: string;+}