Skip to content

Modern Docker Management, Designed for Everyone

chore: run formatter

Kyle Mendell57300b9a5aac
diff --git a/frontend/src/lib/components/accent-color/accent-color-picker.svelte b/frontend/src/lib/components/accent-color/accent-color-picker.svelte
index fdc1af1c9..a8d063ac8 100644
--- a/frontend/src/lib/components/accent-color/accent-color-picker.svelte
+++ b/frontend/src/lib/components/accent-color/accent-color-picker.svelte
@@ -89,7 +89,7 @@
{/if}
</div>
<div
- class="text-muted-foreground group-hover/item:text-foreground bg-background absolute left-1/2 top-12 z-20 max-w-0 -translate-x-1/2 transform overflow-hidden whitespace-nowrap rounded-md border px-2 py-1 text-xs opacity-0 shadow-sm transition-all duration-300 ease-out group-hover/item:max-w-[100px] group-hover/item:opacity-100"
+ class="text-muted-foreground group-hover/item:text-foreground bg-background absolute top-12 left-1/2 z-20 max-w-0 -translate-x-1/2 transform overflow-hidden rounded-md border px-2 py-1 text-xs whitespace-nowrap opacity-0 shadow-sm transition-all duration-300 ease-out group-hover/item:max-w-[100px] group-hover/item:opacity-100"
>
{label}
</div>
diff --git a/frontend/src/lib/components/accent-color/custom-color.svelte b/frontend/src/lib/components/accent-color/custom-color.svelte
index 984408ffa..c87cb14bd 100644
--- a/frontend/src/lib/components/accent-color/custom-color.svelte
+++ b/frontend/src/lib/components/accent-color/custom-color.svelte
@@ -56,7 +56,7 @@
</div>
<div
class={{
- 'border-border border-1 mt-1 rounded-lg transition-all duration-200 ease-in-out': true,
+ 'border-border mt-1 rounded-lg border-1 transition-all duration-200 ease-in-out': true,
'h-9 w-9': isValidColor(customColorInput),
'h-0 w-0': !isValidColor(customColorInput)
}}
diff --git a/frontend/src/lib/components/arcane-table/cards/universal-mobile-card.svelte b/frontend/src/lib/components/arcane-table/cards/universal-mobile-card.svelte
index debcfbe2b..efbf027d8 100644
--- a/frontend/src/lib/components/arcane-table/cards/universal-mobile-card.svelte
+++ b/frontend/src/lib/components/arcane-table/cards/universal-mobile-card.svelte
@@ -117,7 +117,7 @@
</div>
{/if}
<div class="min-w-0 flex-1">
- <h3 class={cn('truncate font-semibold leading-tight', compact ? 'text-[13px]' : 'text-base')} title={title(item)}>
+ <h3 class={cn('truncate leading-tight font-semibold', compact ? 'text-[13px]' : 'text-base')} title={title(item)}>
{title(item)}
</h3>
{#if subtitle}
@@ -161,7 +161,7 @@
</div>
{/if}
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-[10px] font-medium uppercase tracking-wide">
+ <div class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">
{field.label}
</div>
<div class="mt-0.5 text-xs font-medium">
@@ -185,7 +185,7 @@
{@const value = field.getValue(item)}
{#if value !== null && value !== undefined}
<div class="flex items-baseline gap-1.5">
- <span class="text-muted-foreground text-[10px] font-medium uppercase tracking-wide">{field.label}:</span>
+ <span class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">{field.label}:</span>
{#if field.type === 'badge' && field.badgeVariant}
<StatusBadge variant={field.badgeVariant} text={String(value)} size="sm" />
{:else if field.type === 'mono'}
@@ -215,9 +215,9 @@
{@const footerValue = footer.getValue(item)}
{#if footerValue}
{@const FooterIcon = footer.icon}
- <Card.Footer class="border-t-1 flex items-center gap-2 py-3">
+ <Card.Footer class="flex items-center gap-2 border-t-1 py-3">
<FooterIcon class="text-muted-foreground size-3.5" />
- <span class="text-muted-foreground text-[10px] font-medium uppercase tracking-wide">
+ <span class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">
{footer.label}
</span>
<span class="text-muted-foreground ml-auto font-mono text-[11px]">
diff --git a/frontend/src/lib/components/badges/index.ts b/frontend/src/lib/components/badges/index.ts
index 728d206fe..c4c9544a1 100644
--- a/frontend/src/lib/components/badges/index.ts
+++ b/frontend/src/lib/components/badges/index.ts
@@ -1,3 +1,3 @@
export { default as StatusBadge } from './status-badge.svelte';
export { default as PortBadge } from './port-badge.svelte';
-export { default as UiConfigDisabledTag } from './ui-config-disabled-tag.svelte';
\ No newline at end of file
+export { default as UiConfigDisabledTag } from './ui-config-disabled-tag.svelte';
diff --git a/frontend/src/lib/components/badges/port-badge.svelte b/frontend/src/lib/components/badges/port-badge.svelte
index b4a31d884..c100a516c 100644
--- a/frontend/src/lib/components/badges/port-badge.svelte
+++ b/frontend/src/lib/components/badges/port-badge.svelte
@@ -84,7 +84,7 @@
<Tooltip.Root>
<Tooltip.Trigger>
<a
- class="ring-offset-background focus-visible:ring-ring bg-background/70 inline-flex items-center gap-1 rounded-lg border border-sky-700/20 px-2 py-1 text-[11px] shadow-sm transition-colors hover:border-sky-700/40 hover:bg-sky-500/10 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2"
+ class="ring-offset-background focus-visible:ring-ring bg-background/70 inline-flex items-center gap-1 rounded-lg border border-sky-700/20 px-2 py-1 text-[11px] shadow-sm transition-colors hover:border-sky-700/40 hover:bg-sky-500/10 hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"
href={toHref(p.hostPort!)}
target="_blank"
rel="noopener noreferrer"
diff --git a/frontend/src/lib/components/badges/status-badge.svelte b/frontend/src/lib/components/badges/status-badge.svelte
index 1477091a0..dcf31df6b 100644
--- a/frontend/src/lib/components/badges/status-badge.svelte
+++ b/frontend/src/lib/components/badges/status-badge.svelte
@@ -82,10 +82,10 @@
<span
class={cn(
// base
- 'inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full font-medium',
+ 'inline-flex items-center justify-center gap-1 rounded-full font-medium whitespace-nowrap',
sizeStyles[size as Size],
// subtle border and translucency
- 'ring-1 ring-inset transition-colors',
+ 'ring-1 transition-colors ring-inset',
// variant styles
variantStyles[variant as Variant],
// optional fixed width
diff --git a/frontend/src/lib/components/badges/ui-config-disabled-tag.svelte b/frontend/src/lib/components/badges/ui-config-disabled-tag.svelte
index 25f1d0f69..a7cdd939a 100644
--- a/frontend/src/lib/components/badges/ui-config-disabled-tag.svelte
+++ b/frontend/src/lib/components/badges/ui-config-disabled-tag.svelte
@@ -8,8 +8,8 @@
</script>
{#if active}
-<Tooltip.Provider>
- <Tooltip.Root>
+ <Tooltip.Provider>
+ <Tooltip.Root>
<Tooltip.Trigger>
<span
class="inline-flex items-center gap-1.5 rounded-full bg-amber-100 px-2.5 py-1 text-xs font-medium text-amber-800 ring-1 ring-amber-200 dark:bg-amber-900/50 dark:text-amber-200 dark:ring-amber-800"
diff --git a/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte b/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
index 055220c1a..45410886e 100644
--- a/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
+++ b/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
@@ -29,7 +29,7 @@
<Dialog.Root bind:open={$confirmDialogStore.open}>
<Dialog.Content class="w-full max-w-md sm:max-w-lg">
<Dialog.Header class="space-y-3">
- <Dialog.Title class="flex items-start gap-3 text-lg font-semibold leading-tight">
+ <Dialog.Title class="flex items-start gap-3 text-lg leading-tight font-semibold">
<TriangleAlert class="text-destructive mt-0.5 size-5 shrink-0" />
<span class="min-w-0 break-words">
{$confirmDialogStore.title}
@@ -37,7 +37,7 @@
</Dialog.Title>
</Dialog.Header>
- <div class="text-muted-foreground mt-4 min-w-0 whitespace-pre-wrap break-words text-sm leading-relaxed">
+ <div class="text-muted-foreground mt-4 min-w-0 text-sm leading-relaxed break-words whitespace-pre-wrap">
{$confirmDialogStore.message}
</div>
@@ -66,7 +66,7 @@
<Label
id={`${checkbox.id}-label`}
for={checkbox.id}
- class="min-w-0 break-words text-sm font-medium leading-relaxed peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ class="min-w-0 text-sm leading-relaxed font-medium break-words peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
{checkbox.label}
</Label>
diff --git a/frontend/src/lib/components/dialogs/event-details-dialog.svelte b/frontend/src/lib/components/dialogs/event-details-dialog.svelte
index 353106eb9..81bd993e6 100644
--- a/frontend/src/lib/components/dialogs/event-details-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/event-details-dialog.svelte
@@ -156,7 +156,7 @@
<div class="rounded-lg border p-3">
<div class="text-muted-foreground text-xs">{label}</div>
<div class="mt-1 flex items-center justify-between gap-2">
- <div class="break-all text-sm">{value || '-'}</div>
+ <div class="text-sm break-all">{value || '-'}</div>
<Button variant="ghost" size="icon" class="size-7" onclick={() => handleCopy(value)} title={copyTitle}>
<CopyIcon class="size-4" />
</Button>
diff --git a/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte b/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte
index 9d066e83e..48c111d95 100644
--- a/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte
@@ -129,7 +129,7 @@
{#snippet viewModeContent()}
<div class="bg-card/50 rounded-lg border p-4">
<h3 class="text-base font-semibold">{m.oidc_server_env_config_title()}</h3>
- <p class="text-muted-foreground mb-4 mt-1 text-sm">{m.oidc_server_env_config_description()}</p>
+ <p class="text-muted-foreground mt-1 mb-4 text-sm">{m.oidc_server_env_config_description()}</p>
{#if currentSettings.authOidcEnabled}
<div class="divide-border/60 divide-y text-sm">
@@ -166,7 +166,7 @@
{#snippet editModeContent()}
<div class="bg-card/50 rounded-lg border p-4">
<h3 class="text-base font-semibold">{m.oidc_basic_configuration_title()}</h3>
- <p class="text-muted-foreground mb-4 mt-1 text-sm">{m.oidc_basic_description()}</p>
+ <p class="text-muted-foreground mt-1 mb-4 text-sm">{m.oidc_basic_description()}</p>
<div class="space-y-4">
<div class="space-y-2">
@@ -265,7 +265,7 @@
</div>
<p class="text-muted-foreground mb-3 text-sm">{m.oidc_redirect_uri_description()}</p>
<div class="flex items-center gap-2">
- <code class="bg-muted flex-1 break-all rounded p-2 font-mono text-xs">{redirectUri}</code>
+ <code class="bg-muted flex-1 rounded p-2 font-mono text-xs break-all">{redirectUri}</code>
<Button size="sm" variant="outline" onclick={() => handleCopy(redirectUri)} class="flex-shrink-0" title={m.common_copy()}>
<CopyIcon class="size-3" />
</Button>
diff --git a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
index 535071406..c4ee44454 100644
--- a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
@@ -74,7 +74,7 @@
<Checkbox.Root id="prune-containers" bind:checked={pruneContainers} disabled={isPruning} />
<Label
for="prune-containers"
- class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
{m.prune_stopped_containers()}
</Label>
@@ -84,7 +84,7 @@
<Checkbox.Root id="prune-images" bind:checked={pruneImages} disabled={isPruning} />
<Label
for="prune-images"
- class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
{m.prune_unused_images()} ({imagePruneMode === 'dangling' ? m.prune_images_mode_dangling() : m.prune_images_mode_all()})
</Label>
@@ -95,7 +95,7 @@
<Checkbox.Root id="prune-build-cache" bind:checked={pruneBuildCache} disabled={isPruning} />
<Label
for="prune-build-cache"
- class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
{m.build_cache()}
</Label>
@@ -105,7 +105,7 @@
<Checkbox.Root id="prune-networks" bind:checked={pruneNetworks} disabled={isPruning} />
<Label
for="prune-networks"
- class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
{m.prune_unused_networks()}
</Label>
diff --git a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
index a978aba91..f5102a091 100644
--- a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
@@ -238,7 +238,7 @@
/>
</div>
<div class="flex items-center gap-3">
- <Label for="sortBy" class="whitespace-nowrap text-sm font-medium">{m.common_sort_by()}</Label>
+ <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]}
diff --git a/frontend/src/lib/components/disk-meter.svelte b/frontend/src/lib/components/disk-meter.svelte
index fce0672ac..44e8deb52 100644
--- a/frontend/src/lib/components/disk-meter.svelte
+++ b/frontend/src/lib/components/disk-meter.svelte
@@ -94,7 +94,7 @@
<Popover.Content class="w-80">
<div class="space-y-4">
<div class="space-y-2">
- <h4 class="text-sm font-medium leading-none">{m.disk_usage_settings()}</h4>
+ <h4 class="text-sm leading-none font-medium">{m.disk_usage_settings()}</h4>
<p class="text-muted-foreground text-sm">{m.disk_usage_settings_description()}</p>
</div>
<div class="space-y-2">
@@ -153,7 +153,7 @@
<div class="bg-muted h-3 w-12 animate-pulse rounded"></div>
<div class="bg-muted h-4 w-16 animate-pulse rounded"></div>
{:else}
- <div class="text-muted-foreground text-[10px] font-medium uppercase tracking-wide">
+ <div class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">
{m.dashboard_meter_disk_used()}
</div>
<div class="text-foreground text-sm font-semibold">
@@ -167,7 +167,7 @@
<div class="bg-muted h-3 w-12 animate-pulse rounded"></div>
<div class="bg-muted h-4 w-16 animate-pulse rounded"></div>
{:else}
- <div class="text-muted-foreground text-[10px] font-medium uppercase tracking-wide">
+ <div class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">
{m.dashboard_meter_disk_free()}
</div>
<div class="text-foreground text-sm font-semibold">
diff --git a/frontend/src/lib/components/form/select-with-label.svelte b/frontend/src/lib/components/form/select-with-label.svelte
index a581b1269..3b6a18892 100644
--- a/frontend/src/lib/components/form/select-with-label.svelte
+++ b/frontend/src/lib/components/form/select-with-label.svelte
@@ -31,7 +31,7 @@
</script>
<div class="grid gap-2">
- <Label for={id} class="text-sm font-medium leading-none">
+ <Label for={id} class="text-sm leading-none font-medium">
{label}
</Label>
diff --git a/frontend/src/lib/components/form/text-input-with-label.svelte b/frontend/src/lib/components/form/text-input-with-label.svelte
index 54745e6ad..f4e10f6fa 100644
--- a/frontend/src/lib/components/form/text-input-with-label.svelte
+++ b/frontend/src/lib/components/form/text-input-with-label.svelte
@@ -38,7 +38,7 @@
</script>
<div class="grid gap-2">
- <Label for={id} class="text-sm font-medium leading-none">
+ <Label for={id} class="text-sm leading-none font-medium">
{label}{#if required}<span class="text-destructive ml-0.5">*</span>{/if}
</Label>
diff --git a/frontend/src/lib/components/gradient-frame-card.svelte b/frontend/src/lib/components/gradient-frame-card.svelte
index 9fbd66b71..9483d2b00 100644
--- a/frontend/src/lib/components/gradient-frame-card.svelte
+++ b/frontend/src/lib/components/gradient-frame-card.svelte
@@ -46,11 +46,11 @@
</script>
<Card.Root
- class={`bg-card/80 ring-border/40 supports-[backdrop-filter]:bg-card/60 group relative flex flex-col gap-6 overflow-hidden rounded-xl border py-3 shadow-sm ring-1 ring-inset backdrop-blur
- before:pointer-events-none before:absolute before:inset-0 before:rounded-[inherit] before:p-[1px] before:content-['']
+ class={`bg-card/80 ring-border/40 supports-[backdrop-filter]:bg-card/60 group relative flex flex-col gap-6 overflow-hidden rounded-xl border py-3 shadow-sm ring-1 backdrop-blur ring-inset
+ before:pointer-events-none before:absolute before:inset-0 before:rounded-[inherit] before:[mask-composite:exclude] before:p-[1px]
+ before:content-['']
before:[-webkit-mask-composite:xor]
before:[-webkit-mask:linear-gradient(#000_0_0)_content-box,linear-gradient(#000_0_0)]
- before:[mask-composite:exclude]
before:[mask:linear-gradient(#000_0_0)_content-box,linear-gradient(#000_0_0)]
${frameGradientClass} ${className ?? ''}`}
>
diff --git a/frontend/src/lib/components/image-update-item.svelte b/frontend/src/lib/components/image-update-item.svelte
index 4462ad764..5484a3090 100644
--- a/frontend/src/lib/components/image-update-item.svelte
+++ b/frontend/src/lib/components/image-update-item.svelte
@@ -147,7 +147,7 @@
{#if authBadge}
<div class="mt-2">
<div
- class="inline-flex items-center gap-1 whitespace-nowrap rounded-full border px-2 py-0.5 text-[10px] font-medium {authBadge.classes}"
+ class="inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[10px] font-medium whitespace-nowrap {authBadge.classes}"
>
<KeyRoundIcon class="size-3 opacity-80" />
<span>{m.image_update_auth({ label: authBadge.label })}</span>
@@ -272,7 +272,7 @@
</div>
{#if updatePriority}
<div class="rounded-lg bg-blue-50 p-3 dark:bg-blue-950/30">
- <div class="text-center text-xs font-medium leading-relaxed text-blue-700 dark:text-blue-300">
+ <div class="text-center text-xs leading-relaxed font-medium text-blue-700 dark:text-blue-300">
{updatePriority.description}
</div>
</div>
@@ -308,7 +308,7 @@
</div>
{#if updatePriority}
<div class="rounded-lg bg-amber-50 p-3 dark:bg-amber-950/30">
- <div class="text-center text-xs font-medium leading-relaxed text-amber-700 dark:text-amber-300">
+ <div class="text-center text-xs leading-relaxed font-medium text-amber-700 dark:text-amber-300">
{updatePriority.description}
</div>
</div>
diff --git a/frontend/src/lib/components/loading-indicator.svelte b/frontend/src/lib/components/loading-indicator.svelte
index 7f953f7c0..4f6cb65d4 100644
--- a/frontend/src/lib/components/loading-indicator.svelte
+++ b/frontend/src/lib/components/loading-indicator.svelte
@@ -49,7 +49,7 @@
<span class="bar absolute inset-y-0 w-1/3"></span>
- <span class="peg absolute right-0 top-0 h-full w-3"></span>
+ <span class="peg absolute top-0 right-0 h-full w-3"></span>
<span class="sr-only">{m.common_loading()}</span>
</div>
diff --git a/frontend/src/lib/components/logs/log-viewer.svelte b/frontend/src/lib/components/logs/log-viewer.svelte
index c284eedc1..4b176adf4 100644
--- a/frontend/src/lib/components/logs/log-viewer.svelte
+++ b/frontend/src/lib/components/logs/log-viewer.svelte
@@ -369,7 +369,7 @@
});
</script>
-<div class={cn('log-viewer rounded-b-xl rounded-t-none border bg-black text-white', className)}>
+<div class={cn('log-viewer rounded-t-none rounded-b-xl border bg-black text-white', className)}>
{#if error}
<div class="border-b border-red-700 bg-red-900/20 p-3 text-sm text-red-200">
{error}
@@ -378,7 +378,7 @@
<div
bind:this={logContainer}
- class="log-viewer overflow-y-auto rounded-b-xl rounded-t-none border bg-black font-mono text-xs text-white sm:text-sm"
+ class="log-viewer overflow-y-auto rounded-t-none rounded-b-xl border bg-black font-mono text-xs text-white sm:text-sm"
style="height: {height}; min-height: 300px;"
role="log"
aria-live={isStreaming ? 'polite' : 'off'}
@@ -419,7 +419,7 @@
</span>
{/if}
</div>
- <div class="whitespace-pre-wrap break-words text-sm text-gray-300">
+ <div class="text-sm break-words whitespace-pre-wrap text-gray-300">
{log.message}
</div>
</div>
@@ -430,7 +430,7 @@
>
{#if type === 'project' && log.service}
<span
- class="mr-3 min-w-[120px] max-w-[120px] shrink-0 truncate text-xs font-semibold {getServiceColor(log.service)}"
+ class="mr-3 max-w-[120px] min-w-[120px] shrink-0 truncate text-xs font-semibold {getServiceColor(log.service)}"
title={log.service}
>
{log.service}
@@ -444,7 +444,7 @@
<span class="mr-2 shrink-0 text-xs {getLevelClass(log.level)} min-w-fit">
{log.level.toUpperCase()}
</span>
- <span class="flex-1 whitespace-pre-wrap break-words text-gray-300">
+ <span class="flex-1 break-words whitespace-pre-wrap text-gray-300">
{log.message}
</span>
</div>
diff --git a/frontend/src/lib/components/mobile-nav/mobile-docked-nav.svelte b/frontend/src/lib/components/mobile-nav/mobile-docked-nav.svelte
index 66ac49270..6244cf6af 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-docked-nav.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-docked-nav.svelte
@@ -130,7 +130,7 @@
bind:this={navElement}
class={cn(
'mobile-nav-base mobile-nav-docked',
- 'fixed bottom-0 left-0 right-0 z-50 gap-2',
+ 'fixed right-0 bottom-0 left-0 z-50 gap-2',
'bg-background/95 border-border/50 border-t backdrop-blur-sm',
'shadow-lg',
'select-none', // Prevent text selection but allow touch
diff --git a/frontend/src/lib/components/mobile-nav/mobile-nav-item.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav-item.svelte
index 8a9ce2d57..f68fd9785 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav-item.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav-item.svelte
@@ -18,19 +18,17 @@
<Button.Root
variant="ghost"
- size={showLabels ? "sm" : "icon"}
+ size={showLabels ? 'sm' : 'icon'}
href={item.url}
aria-label={`${item.title}${active ? ' (current page)' : ''}`}
aria-current={active ? 'page' : undefined}
class={cn(
'flex-1 transition-all duration-200 ease-out',
'hover:bg-muted/50 hover:text-foreground hover:scale-[1.02]',
- 'focus-visible:ring-1 focus-visible:ring-muted-foreground/50 focus-visible:ring-offset-1',
- 'focus-visible:ring-offset-transparent focus-visible:scale-[1.02]',
+ 'focus-visible:ring-muted-foreground/50 focus-visible:ring-1 focus-visible:ring-offset-1',
+ 'focus-visible:scale-[1.02] focus-visible:ring-offset-transparent',
'active:scale-[0.98]',
- showLabels
- ? 'h-12 px-3 py-1.5 rounded-2xl flex-col gap-0.5 min-w-[60px]'
- : 'h-11 w-11 rounded-2xl',
+ showLabels ? 'h-12 min-w-[60px] flex-col gap-0.5 rounded-2xl px-3 py-1.5' : 'h-11 w-11 rounded-2xl',
active && 'bg-muted text-foreground hover:bg-muted/70 shadow-sm',
className
)}
@@ -39,7 +37,7 @@
{@const IconComponent = item.icon}
<IconComponent size={showLabels ? 20 : 24} aria-hidden="true" />
{#if showLabels}
- <span class="text-[10px] font-normal leading-none text-muted-foreground">{item.title}</span>
+ <span class="text-muted-foreground text-[10px] leading-none font-normal">{item.title}</span>
{:else}
<span class="sr-only">{item.title}</span>
{/if}
diff --git a/frontend/src/lib/components/mobile-nav/mobile-user-card.svelte b/frontend/src/lib/components/mobile-nav/mobile-user-card.svelte
index a6bc53819..61a5e7bf7 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-user-card.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-user-card.svelte
@@ -114,7 +114,7 @@
{/if}
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground/70 text-xs font-medium uppercase tracking-widest">
+ <div class="text-muted-foreground/70 text-xs font-medium tracking-widest uppercase">
{m.sidebar_environment_label()}
</div>
<div class="text-foreground text-sm font-medium">
@@ -131,7 +131,7 @@
<Select.Trigger class="bg-background/50 border-border/30 text-foreground h-9 w-32 text-sm font-medium">
<span class="truncate">Switch</span>
</Select.Trigger>
- <Select.Content class="min-w-[160px] max-w-[280px]">
+ <Select.Content class="max-w-[280px] min-w-[160px]">
{#each environmentStore.available as env (env.id)}
<Select.Item value={env.id} class="text-sm">
{getEnvLabel(env)}
@@ -151,7 +151,7 @@
<LanguagesIcon class="size-4" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground/70 mb-1 text-xs font-medium uppercase tracking-widest">Language</div>
+ <div class="text-muted-foreground/70 mb-1 text-xs font-medium tracking-widest uppercase">Language</div>
<div class="text-foreground text-sm font-medium"></div>
</div>
<LocalePicker
@@ -172,7 +172,7 @@
{/if}
</div>
<div class="flex min-w-0 flex-1 flex-col justify-center">
- <div class="text-muted-foreground/70 mb-1 text-xs font-medium uppercase tracking-widest">Theme</div>
+ <div class="text-muted-foreground/70 mb-1 text-xs font-medium tracking-widest uppercase">Theme</div>
<div class="text-foreground text-sm font-medium">
{isDarkMode ? 'Dark' : 'Light'}
</div>
diff --git a/frontend/src/lib/components/mobile-nav/styles.css b/frontend/src/lib/components/mobile-nav/styles.css
index ce8c029ff..ccfda07ef 100644
--- a/frontend/src/lib/components/mobile-nav/styles.css
+++ b/frontend/src/lib/components/mobile-nav/styles.css
@@ -48,7 +48,9 @@
@media (hover: hover) and (pointer: fine) {
.mobile-nav-floating:hover {
/* Subtle visual hint that scrolling up will open menu without moving the bar */
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
+ box-shadow:
+ 0 4px 20px rgba(0, 0, 0, 0.08),
+ 0 1px 4px rgba(0, 0, 0, 0.04);
backdrop-filter: blur(24px);
border-color: var(--muted);
}
@@ -64,13 +66,13 @@
.mobile-nav-base {
transition: none;
}
-
+
/* Disable scale and complex animations for reduced motion */
.mobile-nav-base :global(button) {
transition: none;
transform: none !important;
}
-
+
.mobile-nav-base :global(button:hover),
.mobile-nav-base :global(button:focus-visible),
.mobile-nav-base :global(button:active) {
diff --git a/frontend/src/lib/components/navigation-mode-setting-control.svelte b/frontend/src/lib/components/navigation-mode-setting-control.svelte
index 6e7754a3d..88dd644fb 100644
--- a/frontend/src/lib/components/navigation-mode-setting-control.svelte
+++ b/frontend/src/lib/components/navigation-mode-setting-control.svelte
@@ -49,7 +49,7 @@
<div class="min-w-0 flex-1">
<div class="mb-1 flex items-start justify-between gap-2">
<div class="min-w-0 flex-1">
- <h4 class="text-sm font-medium leading-tight">{label}</h4>
+ <h4 class="text-sm leading-tight font-medium">{label}</h4>
</div>
{#if hasOverride}
@@ -74,7 +74,7 @@
<div class="flex min-w-0 flex-1 items-center gap-2">
<ServerIcon class="text-muted-foreground size-3 flex-shrink-0 sm:size-4" />
<div class="min-w-0 flex-1">
- <p class="text-xs font-medium leading-tight">{m.server_default()}</p>
+ <p class="text-xs leading-tight font-medium">{m.server_default()}</p>
<p class="text-muted-foreground hidden text-xs leading-tight sm:block">{m.applies_to_all_users()}</p>
</div>
</div>
@@ -112,7 +112,7 @@
<SmartphoneIcon class="text-muted-foreground size-3 flex-shrink-0 sm:size-4" />
<div class="min-w-0 flex-1">
<div class="flex flex-col sm:flex-row sm:items-center sm:gap-1">
- <p class="text-xs font-medium leading-tight">{m.this_device()}</p>
+ <p class="text-xs leading-tight font-medium">{m.this_device()}</p>
{#if hasOverride}
<span class="text-xs leading-tight text-orange-600 dark:text-orange-400">({m.override()})</span>
{/if}
diff --git a/frontend/src/lib/components/navigation-setting-control.svelte b/frontend/src/lib/components/navigation-setting-control.svelte
index 51c2a0e2f..618391625 100644
--- a/frontend/src/lib/components/navigation-setting-control.svelte
+++ b/frontend/src/lib/components/navigation-setting-control.svelte
@@ -48,7 +48,7 @@
<div class="min-w-0 flex-1">
<div class="mb-1 flex items-start justify-between gap-2">
<div class="min-w-0 flex-1">
- <h4 class="text-sm font-medium leading-tight">{label}</h4>
+ <h4 class="text-sm leading-tight font-medium">{label}</h4>
</div>
{#if hasOverride}
@@ -73,7 +73,7 @@
<div class="flex min-w-0 flex-1 items-center gap-2">
<ServerIcon class="text-muted-foreground size-3 flex-shrink-0 sm:size-4" />
<div class="min-w-0 flex-1">
- <p class="text-xs font-medium leading-tight">{m.server_default()}</p>
+ <p class="text-xs leading-tight font-medium">{m.server_default()}</p>
<p class="text-muted-foreground hidden text-xs leading-tight sm:block">{m.applies_to_all_users()}</p>
</div>
</div>
@@ -99,7 +99,7 @@
<SmartphoneIcon class="text-muted-foreground size-3 flex-shrink-0 sm:size-4" />
<div class="min-w-0 flex-1">
<div class="flex flex-col sm:flex-row sm:items-center sm:gap-1">
- <p class="text-xs font-medium leading-tight">{m.this_device()}</p>
+ <p class="text-xs leading-tight font-medium">{m.this_device()}</p>
{#if hasOverride}
<span class="text-xs leading-tight text-orange-600 dark:text-orange-400">({m.override()})</span>
{/if}
diff --git a/frontend/src/lib/components/quick-actions.svelte b/frontend/src/lib/components/quick-actions.svelte
index cad5c6ca7..ff72816a2 100644
--- a/frontend/src/lib/components/quick-actions.svelte
+++ b/frontend/src/lib/components/quick-actions.svelte
@@ -57,7 +57,7 @@
{:else}
<div class="hidden flex-wrap items-center gap-2 sm:flex">
<button
- class="ring-offset-background focus-visible:ring-ring bg-background/70 group inline-flex h-9 items-center gap-2 rounded-lg border border-emerald-500/20 px-3 py-1.5 text-xs shadow-sm transition-colors hover:border-emerald-500/40 hover:bg-emerald-500/10 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
+ class="ring-offset-background focus-visible:ring-ring bg-background/70 group inline-flex h-9 items-center gap-2 rounded-lg border border-emerald-500/20 px-3 py-1.5 text-xs shadow-sm transition-colors hover:border-emerald-500/40 hover:bg-emerald-500/10 hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo || stoppedContainers === 0 || isLoading.starting || isLoading.stopping || isLoading.pruning}
onclick={onStartAll}
aria-busy={isLoading.starting}
@@ -74,7 +74,7 @@
</button>
<button
- class="ring-offset-background focus-visible:ring-ring bg-background/70 group inline-flex h-9 items-center gap-2 rounded-lg border border-sky-500/20 px-3 py-1.5 text-xs shadow-sm transition-colors hover:border-sky-500/40 hover:bg-sky-500/10 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
+ class="ring-offset-background focus-visible:ring-ring bg-background/70 group inline-flex h-9 items-center gap-2 rounded-lg border border-sky-500/20 px-3 py-1.5 text-xs shadow-sm transition-colors hover:border-sky-500/40 hover:bg-sky-500/10 hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo ||
(dockerInfo?.containersRunning ?? 0) === 0 ||
isLoading.starting ||
@@ -95,7 +95,7 @@
</button>
<button
- class="ring-offset-background focus-visible:ring-ring bg-background/70 group inline-flex h-9 items-center gap-2 rounded-lg border border-red-500/20 px-3 py-1.5 text-xs shadow-sm transition-colors hover:border-red-500/40 hover:bg-red-500/10 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
+ class="ring-offset-background focus-visible:ring-ring bg-background/70 group inline-flex h-9 items-center gap-2 rounded-lg border border-red-500/20 px-3 py-1.5 text-xs shadow-sm transition-colors hover:border-red-500/40 hover:bg-red-500/10 hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo || isLoading.starting || isLoading.stopping || isLoading.pruning}
onclick={onOpenPruneDialog}
aria-busy={isLoading.pruning}
@@ -109,7 +109,7 @@
</button>
<button
- class="ring-offset-background focus-visible:ring-ring bg-background/70 border-primary/20 hover:border-primary/40 hover:bg-primary/10 group inline-flex h-9 items-center gap-2 rounded-lg border px-3 py-1.5 text-xs shadow-sm transition-colors hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
+ class="ring-offset-background focus-visible:ring-ring bg-background/70 border-primary/20 hover:border-primary/40 hover:bg-primary/10 group inline-flex h-9 items-center gap-2 rounded-lg border px-3 py-1.5 text-xs shadow-sm transition-colors hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
disabled={isLoading.starting || isLoading.stopping || isLoading.pruning || refreshing}
onclick={onRefresh}
aria-busy={refreshing}
@@ -188,7 +188,7 @@
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
<div class="group rounded-xl bg-gradient-to-br from-emerald-500/20 to-emerald-500/0 p-[1px]">
<button
- class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
+ class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo || stoppedContainers === 0 || isLoading.starting || isLoading.stopping || isLoading.pruning}
onclick={onStartAll}
aria-busy={isLoading.starting}
@@ -216,7 +216,7 @@
<div class="group rounded-xl bg-gradient-to-br from-sky-500/20 to-sky-500/0 p-[1px]">
<button
- class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
+ class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo ||
(dockerInfo?.containersRunning ?? 0) === 0 ||
isLoading.starting ||
@@ -248,7 +248,7 @@
<div class="group rounded-xl bg-gradient-to-br from-red-500/20 to-red-500/0 p-[1px]">
<button
- class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
+ class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo || isLoading.starting || isLoading.stopping || isLoading.pruning}
onclick={onOpenPruneDialog}
aria-busy={isLoading.pruning}
diff --git a/frontend/src/lib/components/sheets/create-container-sheet.svelte b/frontend/src/lib/components/sheets/create-container-sheet.svelte
index 3582a2f18..2f7327d3e 100644
--- a/frontend/src/lib/components/sheets/create-container-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-container-sheet.svelte
@@ -502,7 +502,7 @@
{#each portMappings as mapping, index (index)}
<div class="flex items-center gap-3">
<div class="flex flex-1 items-center gap-2">
- <div class="text-muted-foreground min-w-12 whitespace-nowrap text-sm">{m.port_label_host()}</div>
+ <div class="text-muted-foreground min-w-12 text-sm whitespace-nowrap">{m.port_label_host()}</div>
<Input
type="text"
placeholder="8080"
@@ -513,7 +513,7 @@
</div>
<span class="text-muted-foreground">→</span>
<div class="flex flex-1 items-center gap-2">
- <div class="text-muted-foreground min-w-20 whitespace-nowrap text-sm">
+ <div class="text-muted-foreground min-w-20 text-sm whitespace-nowrap">
{m.port_label_container()}
</div>
<Input
diff --git a/frontend/src/lib/components/sheets/new-environment-sheet.svelte b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
index 31c24e4d8..dfe7c965c 100644
--- a/frontend/src/lib/components/sheets/new-environment-sheet.svelte
+++ b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
@@ -92,7 +92,7 @@
<div class="space-y-6 py-6">
<Card.Root class="flex flex-col gap-6 py-3">
<Card.Header
- class="@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6"
+ class="@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6"
>
<Card.Title class="text-lg">{m.environments_add_button()}</Card.Title>
</Card.Header>
diff --git a/frontend/src/lib/components/sidebar/sidebar-pin-button.svelte b/frontend/src/lib/components/sidebar/sidebar-pin-button.svelte
index da356a058..96a14a076 100644
--- a/frontend/src/lib/components/sidebar/sidebar-pin-button.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-pin-button.svelte
@@ -25,7 +25,7 @@
data-slot="sidebar-pin-button"
variant="ghost"
size="icon"
- class={cn('size-7 text-muted-foreground hover:text-foreground', className)}
+ class={cn('text-muted-foreground hover:text-foreground size-7', className)}
type="button"
disabled={sidebar.isTablet}
title={isPinned ? 'Unpin sidebar' : 'Pin sidebar'}
diff --git a/frontend/src/lib/components/sidebar/sidebar-user.svelte b/frontend/src/lib/components/sidebar/sidebar-user.svelte
index eb9fa40ca..6b3622f22 100644
--- a/frontend/src/lib/components/sidebar/sidebar-user.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-user.svelte
@@ -93,7 +93,7 @@
}
}}
>
- <DropdownMenu.Label class="px-3 pb-2 pt-2 font-normal">
+ <DropdownMenu.Label class="px-3 pt-2 pb-2 font-normal">
<div class="flex items-center gap-3 text-left text-sm">
<Avatar.Root class="size-8 shrink-0 rounded-lg">
{#if $settingsStore.enableGravatar}
diff --git a/frontend/src/lib/components/stat-card.svelte b/frontend/src/lib/components/stat-card.svelte
index 9056aceb0..09fe1ecbc 100644
--- a/frontend/src/lib/components/stat-card.svelte
+++ b/frontend/src/lib/components/stat-card.svelte
@@ -31,7 +31,7 @@
)}
>
<div class="flex-1 space-y-1">
- <p class="text-muted-foreground text-xs font-medium uppercase tracking-wide">{title}</p>
+ <p class="text-muted-foreground text-xs font-medium tracking-wide uppercase">{title}</p>
<p class="text-xl font-bold tabular-nums">{value}</p>
{#if subtitle}
<p class="text-muted-foreground text-xs">{subtitle}</p>
diff --git a/frontend/src/lib/components/tab-bar/index.ts b/frontend/src/lib/components/tab-bar/index.ts
index 6f57c40f3..983c9fe80 100644
--- a/frontend/src/lib/components/tab-bar/index.ts
+++ b/frontend/src/lib/components/tab-bar/index.ts
@@ -1,2 +1,2 @@
export { default as TabBar } from './tab-bar.svelte';
-export type { TabItem } from './types.ts';
\ No newline at end of file
+export type { TabItem } from './types.ts';
diff --git a/frontend/src/lib/components/tab-bar/tab-bar.svelte b/frontend/src/lib/components/tab-bar/tab-bar.svelte
index ad6fcfe00..54100d314 100644
--- a/frontend/src/lib/components/tab-bar/tab-bar.svelte
+++ b/frontend/src/lib/components/tab-bar/tab-bar.svelte
@@ -13,12 +13,12 @@
let { items, onValueChange, class: className }: Props = $props();
</script>
-<Tabs.List class={cn('flex overflow-x-auto scrollbar-hide justify-start gap-4 w-full', className)}>
+<Tabs.List class={cn('scrollbar-hide flex w-full justify-start gap-4 overflow-x-auto', className)}>
{#each items as item}
{@const IconComponent = item.icon}
<Tabs.Trigger
value={item.value}
- class={cn('gap-2 flex-shrink-0 whitespace-nowrap', item.class)}
+ class={cn('flex-shrink-0 gap-2 whitespace-nowrap', item.class)}
disabled={item.disabled}
onclick={() => onValueChange(item.value)}
>
@@ -42,7 +42,7 @@
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
-
+
:global(.scrollbar-hide::-webkit-scrollbar) {
display: none; /* Chrome, Safari and Opera */
}
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte
index a00569120..4026984dd 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte
@@ -1,18 +1,9 @@
<script lang="ts">
- import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
- import { buttonVariants } from "$lib/components/ui/button/index.js";
- import { cn } from "$lib/utils.js";
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
+ import { buttonVariants } from '$lib/components/ui/button/index.js';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: AlertDialogPrimitive.ActionProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: AlertDialogPrimitive.ActionProps = $props();
</script>
-<AlertDialogPrimitive.Action
- bind:ref
- data-slot="alert-dialog-action"
- class={cn(buttonVariants(), className)}
- {...restProps}
-/>
+<AlertDialogPrimitive.Action bind:ref data-slot="alert-dialog-action" class={cn(buttonVariants(), className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte
index a7b0cf795..701517cbc 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte
@@ -1,18 +1,14 @@
<script lang="ts">
- import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
- import { buttonVariants } from "$lib/components/ui/button/index.js";
- import { cn } from "$lib/utils.js";
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
+ import { buttonVariants } from '$lib/components/ui/button/index.js';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: AlertDialogPrimitive.CancelProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: AlertDialogPrimitive.CancelProps = $props();
</script>
<AlertDialogPrimitive.Cancel
bind:ref
data-slot="alert-dialog-cancel"
- class={cn(buttonVariants({ variant: "outline" }), className)}
+ class={cn(buttonVariants({ variant: 'outline' }), className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte
index 6c3c60460..9680016a3 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
- import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
- import AlertDialogOverlay from "./alert-dialog-overlay.svelte";
- import { cn, type WithoutChild, type WithoutChildrenOrChild } from "$lib/utils.js";
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
+ import AlertDialogOverlay from './alert-dialog-overlay.svelte';
+ import { cn, type WithoutChild, type WithoutChildrenOrChild } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -19,7 +19,7 @@
bind:ref
data-slot="alert-dialog-content"
class={cn(
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
+ 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte
index 2ec67dc2e..4a0e5c87a 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte
@@ -1,17 +1,13 @@
<script lang="ts">
- import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: AlertDialogPrimitive.DescriptionProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: AlertDialogPrimitive.DescriptionProps = $props();
</script>
<AlertDialogPrimitive.Description
bind:ref
data-slot="alert-dialog-description"
- class={cn("text-muted-foreground text-sm", className)}
+ class={cn('text-muted-foreground text-sm', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte
index f78b97aba..94bbfaa95 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- import { cn, type WithElementRef } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn, type WithElementRef } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let {
ref = $bindable(null),
@@ -13,7 +13,7 @@
<div
bind:this={ref}
data-slot="alert-dialog-footer"
- class={cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)}
+ class={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte
index c8fa7625f..1f9604af7 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- import type { HTMLAttributes } from "svelte/elements";
- import { cn, type WithElementRef } from "$lib/utils.js";
+ import type { HTMLAttributes } from 'svelte/elements';
+ import { cn, type WithElementRef } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -13,7 +13,7 @@
<div
bind:this={ref}
data-slot="alert-dialog-header"
- class={cn("flex flex-col gap-2 text-center sm:text-left", className)}
+ class={cn('flex flex-col gap-2 text-center sm:text-left', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte
index a64ee7685..b918687eb 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte
@@ -1,19 +1,15 @@
<script lang="ts">
- import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: AlertDialogPrimitive.OverlayProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: AlertDialogPrimitive.OverlayProps = $props();
</script>
<AlertDialogPrimitive.Overlay
bind:ref
data-slot="alert-dialog-overlay"
class={cn(
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte
index 7ef2b5fbe..af469562d 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte
@@ -1,17 +1,13 @@
<script lang="ts">
- import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: AlertDialogPrimitive.TitleProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: AlertDialogPrimitive.TitleProps = $props();
</script>
<AlertDialogPrimitive.Title
bind:ref
data-slot="alert-dialog-title"
- class={cn("text-lg font-semibold", className)}
+ class={cn('text-lg font-semibold', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte
index b22d1d50b..51a3da159 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
let { ref = $bindable(null), ...restProps }: AlertDialogPrimitive.TriggerProps = $props();
</script>
diff --git a/frontend/src/lib/components/ui/alert-dialog/index.ts b/frontend/src/lib/components/ui/alert-dialog/index.ts
index cc281c589..a4439bc2e 100644
--- a/frontend/src/lib/components/ui/alert-dialog/index.ts
+++ b/frontend/src/lib/components/ui/alert-dialog/index.ts
@@ -1,13 +1,13 @@
-import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
-import Trigger from "./alert-dialog-trigger.svelte";
-import Title from "./alert-dialog-title.svelte";
-import Action from "./alert-dialog-action.svelte";
-import Cancel from "./alert-dialog-cancel.svelte";
-import Footer from "./alert-dialog-footer.svelte";
-import Header from "./alert-dialog-header.svelte";
-import Overlay from "./alert-dialog-overlay.svelte";
-import Content from "./alert-dialog-content.svelte";
-import Description from "./alert-dialog-description.svelte";
+import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
+import Trigger from './alert-dialog-trigger.svelte';
+import Title from './alert-dialog-title.svelte';
+import Action from './alert-dialog-action.svelte';
+import Cancel from './alert-dialog-cancel.svelte';
+import Footer from './alert-dialog-footer.svelte';
+import Header from './alert-dialog-header.svelte';
+import Overlay from './alert-dialog-overlay.svelte';
+import Content from './alert-dialog-content.svelte';
+import Description from './alert-dialog-description.svelte';
const Root = AlertDialogPrimitive.Root;
const Portal = AlertDialogPrimitive.Portal;
@@ -35,5 +35,5 @@ export {
Trigger as AlertDialogTrigger,
Overlay as AlertDialogOverlay,
Content as AlertDialogContent,
- Description as AlertDialogDescription,
+ Description as AlertDialogDescription
};
diff --git a/frontend/src/lib/components/ui/button-group/button-group-separator.svelte b/frontend/src/lib/components/ui/button-group/button-group-separator.svelte
index 4fcc179a6..43881c4da 100644
--- a/frontend/src/lib/components/ui/button-group/button-group-separator.svelte
+++ b/frontend/src/lib/components/ui/button-group/button-group-separator.svelte
@@ -1,18 +1,14 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { ComponentProps } from "svelte";
- import { Separator } from "$lib/components/ui/separator/index.js";
+ import { cn } from '$lib/utils.js';
+ import type { ComponentProps } from 'svelte';
+ import { Separator } from '$lib/components/ui/separator/index.js';
- let {
- class: className,
- orientation = "vertical",
- ...restProps
- }: ComponentProps<typeof Separator> = $props();
+ let { class: className, orientation = 'vertical', ...restProps }: ComponentProps<typeof Separator> = $props();
</script>
<Separator
data-slot="button-group-separator"
{orientation}
- class={cn("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto", className)}
+ class={cn('bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/button-group/button-group-text.svelte b/frontend/src/lib/components/ui/button-group/button-group-text.svelte
index 69aa0fc2f..37b6e29d6 100644
--- a/frontend/src/lib/components/ui/button-group/button-group-text.svelte
+++ b/frontend/src/lib/components/ui/button-group/button-group-text.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
- import type { Snippet } from "svelte";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
+ import type { Snippet } from 'svelte';
let {
class: className,
@@ -20,7 +20,7 @@
const mergedProps = $derived({
...restProps,
- class: classes,
+ class: classes
});
</script>
diff --git a/frontend/src/lib/components/ui/button-group/button-group.svelte b/frontend/src/lib/components/ui/button-group/button-group.svelte
index fcde6fa86..d694bcc49 100644
--- a/frontend/src/lib/components/ui/button-group/button-group.svelte
+++ b/frontend/src/lib/components/ui/button-group/button-group.svelte
@@ -1,32 +1,32 @@
<script lang="ts" module>
- import { tv, type VariantProps } from "tailwind-variants";
+ import { tv, type VariantProps } from 'tailwind-variants';
const buttonGroupVariants = tv({
base: "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
variants: {
orientation: {
horizontal:
- "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
+ '[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none',
vertical:
- "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none",
- },
+ 'flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none'
+ }
},
defaultVariants: {
- orientation: "horizontal",
- },
+ orientation: 'horizontal'
+ }
});
- export type ButtonGroupOrientation = VariantProps<typeof buttonGroupVariants>["orientation"];
+ export type ButtonGroupOrientation = VariantProps<typeof buttonGroupVariants>['orientation'];
</script>
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let {
class: className,
children,
- orientation = "horizontal",
+ orientation = 'horizontal',
...restProps
}: HTMLAttributes<HTMLDivElement> & {
orientation?: ButtonGroupOrientation;
diff --git a/frontend/src/lib/components/ui/button-group/index.ts b/frontend/src/lib/components/ui/button-group/index.ts
index 7f706e3e1..5fd5001f0 100644
--- a/frontend/src/lib/components/ui/button-group/index.ts
+++ b/frontend/src/lib/components/ui/button-group/index.ts
@@ -1,6 +1,6 @@
-import Root from "./button-group.svelte";
-import Text from "./button-group-text.svelte";
-import Separator from "./button-group-separator.svelte";
+import Root from './button-group.svelte';
+import Text from './button-group-text.svelte';
+import Separator from './button-group-separator.svelte';
export {
Root,
@@ -9,5 +9,5 @@ export {
//
Root as ButtonGroup,
Text as ButtonGroupText,
- Separator as ButtonGroupSeparator,
+ Separator as ButtonGroupSeparator
};
diff --git a/frontend/src/lib/components/ui/card/card-header.svelte b/frontend/src/lib/components/ui/card/card-header.svelte
index 2991b1fdc..111142f5e 100644
--- a/frontend/src/lib/components/ui/card/card-header.svelte
+++ b/frontend/src/lib/components/ui/card/card-header.svelte
@@ -41,7 +41,7 @@
bind:this={ref}
data-slot="card-header"
class={cn(
- '@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6',
+ '@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6',
icon
? 'flex flex-row items-start space-y-0 bg-gradient-to-br from-gray-50 to-slate-50/30 dark:from-gray-900/20 dark:to-slate-900/10'
: '',
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
index b073d4b79..f4c54135e 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
@@ -21,7 +21,7 @@
{sideOffset}
class={cn(
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md outline-none',
- 'max-w-[calc(100vw-2rem)] max-h-(--radix-dropdown-menu-content-available-height)',
+ 'max-h-(--radix-dropdown-menu-content-available-height) max-w-[calc(100vw-2rem)]',
'max-[768px]:max-w-[calc(100vw-1rem)]',
className
)}
diff --git a/frontend/src/lib/components/ui/empty/empty-content.svelte b/frontend/src/lib/components/ui/empty/empty-content.svelte
index ebe20cdec..3c131aef6 100644
--- a/frontend/src/lib/components/ui/empty/empty-content.svelte
+++ b/frontend/src/lib/components/ui/empty/empty-content.svelte
@@ -1,16 +1,13 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let { class: className, children, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
</script>
<div
data-slot="empty-content"
- class={cn(
- "flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm",
- className
- )}
+ class={cn('flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/empty/empty-description.svelte b/frontend/src/lib/components/ui/empty/empty-description.svelte
index 6494577d6..f59eec754 100644
--- a/frontend/src/lib/components/ui/empty/empty-description.svelte
+++ b/frontend/src/lib/components/ui/empty/empty-description.svelte
@@ -1,16 +1,13 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let { class: className, children, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
</script>
<div
data-slot="empty-description"
- class={cn(
- "text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",
- className
- )}
+ class={cn('text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/empty/empty-header.svelte b/frontend/src/lib/components/ui/empty/empty-header.svelte
index 6420e1c6b..ec1d2e934 100644
--- a/frontend/src/lib/components/ui/empty/empty-header.svelte
+++ b/frontend/src/lib/components/ui/empty/empty-header.svelte
@@ -1,14 +1,10 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let { class: className, children, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
</script>
-<div
- data-slot="empty-header"
- class={cn("flex max-w-sm flex-col items-center gap-2 text-center", className)}
- {...restProps}
->
+<div data-slot="empty-header" class={cn('flex max-w-sm flex-col items-center gap-2 text-center', className)} {...restProps}>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/empty/empty-media.svelte b/frontend/src/lib/components/ui/empty/empty-media.svelte
index 3b9ef0e5b..98a17ea7b 100644
--- a/frontend/src/lib/components/ui/empty/empty-media.svelte
+++ b/frontend/src/lib/components/ui/empty/empty-media.svelte
@@ -1,39 +1,34 @@
<script lang="ts" module>
- import { tv, type VariantProps } from "tailwind-variants";
+ import { tv, type VariantProps } from 'tailwind-variants';
export const emptyMediaVariants = tv({
- base: "mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ base: 'mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0',
variants: {
variant: {
- default: "bg-transparent",
- icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6",
- },
+ default: 'bg-transparent',
+ icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
+ }
},
defaultVariants: {
- variant: "default",
- },
+ variant: 'default'
+ }
});
- export type EmptyMediaVariant = VariantProps<typeof emptyMediaVariants>["variant"];
+ export type EmptyMediaVariant = VariantProps<typeof emptyMediaVariants>['variant'];
</script>
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let {
class: className,
children,
- variant = "default",
+ variant = 'default',
...restProps
}: HTMLAttributes<HTMLDivElement> & { variant?: EmptyMediaVariant } = $props();
</script>
-<div
- data-slot="empty-icon"
- data-variant={variant}
- class={cn(emptyMediaVariants({ variant }), className)}
- {...restProps}
->
+<div data-slot="empty-icon" data-variant={variant} class={cn(emptyMediaVariants({ variant }), className)} {...restProps}>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/empty/empty-title.svelte b/frontend/src/lib/components/ui/empty/empty-title.svelte
index c39ad9099..2640c3aee 100644
--- a/frontend/src/lib/components/ui/empty/empty-title.svelte
+++ b/frontend/src/lib/components/ui/empty/empty-title.svelte
@@ -1,14 +1,10 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let { class: className, children, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
</script>
-<div
- data-slot="empty-title"
- class={cn("text-lg font-medium tracking-tight", className)}
- {...restProps}
->
+<div data-slot="empty-title" class={cn('text-lg font-medium tracking-tight', className)} {...restProps}>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/empty/empty.svelte b/frontend/src/lib/components/ui/empty/empty.svelte
index 165b501c7..56f38c3da 100644
--- a/frontend/src/lib/components/ui/empty/empty.svelte
+++ b/frontend/src/lib/components/ui/empty/empty.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let { class: className, children, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
</script>
@@ -8,7 +8,7 @@
<div
data-slot="empty"
class={cn(
- "flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12",
+ 'flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/empty/index.ts b/frontend/src/lib/components/ui/empty/index.ts
index ae4c106ee..cae5ff914 100644
--- a/frontend/src/lib/components/ui/empty/index.ts
+++ b/frontend/src/lib/components/ui/empty/index.ts
@@ -1,9 +1,9 @@
-import Root from "./empty.svelte";
-import Header from "./empty-header.svelte";
-import Media from "./empty-media.svelte";
-import Title from "./empty-title.svelte";
-import Description from "./empty-description.svelte";
-import Content from "./empty-content.svelte";
+import Root from './empty.svelte';
+import Header from './empty-header.svelte';
+import Media from './empty-media.svelte';
+import Title from './empty-title.svelte';
+import Description from './empty-description.svelte';
+import Content from './empty-content.svelte';
export {
Root,
@@ -18,5 +18,5 @@ export {
Media as EmptyMedia,
Title as EmptyTitle,
Description as EmptyDescription,
- Content as EmptyContent,
+ Content as EmptyContent
};
diff --git a/frontend/src/lib/components/ui/input-group/index.ts b/frontend/src/lib/components/ui/input-group/index.ts
index fe1f55d8a..1bbeedfec 100644
--- a/frontend/src/lib/components/ui/input-group/index.ts
+++ b/frontend/src/lib/components/ui/input-group/index.ts
@@ -1,9 +1,9 @@
-import Root from "./input-group.svelte";
-import Addon from "./input-group-addon.svelte";
-import Button from "./input-group-button.svelte";
-import Input from "./input-group-input.svelte";
-import Text from "./input-group-text.svelte";
-import Textarea from "./input-group-textarea.svelte";
+import Root from './input-group.svelte';
+import Addon from './input-group-addon.svelte';
+import Button from './input-group-button.svelte';
+import Input from './input-group-input.svelte';
+import Text from './input-group-text.svelte';
+import Textarea from './input-group-textarea.svelte';
export {
Root,
@@ -18,5 +18,5 @@ export {
Button as InputGroupButton,
Input as InputGroupInput,
Text as InputGroupText,
- Textarea as InputGroupTextarea,
+ Textarea as InputGroupTextarea
};
diff --git a/frontend/src/lib/components/ui/input-group/input-group-addon.svelte b/frontend/src/lib/components/ui/input-group/input-group-addon.svelte
index 3e70d3ad9..9469afc5b 100644
--- a/frontend/src/lib/components/ui/input-group/input-group-addon.svelte
+++ b/frontend/src/lib/components/ui/input-group/input-group-addon.svelte
@@ -1,35 +1,31 @@
<script lang="ts" module>
- import { tv, type VariantProps } from "tailwind-variants";
+ import { tv, type VariantProps } from 'tailwind-variants';
const inputGroupAddonVariants = tv({
base: "text-muted-foreground flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",
variants: {
align: {
- "inline-start":
- "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]",
- "inline-end":
- "order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]",
- "block-start":
- "[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5",
- "block-end":
- "[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5",
- },
+ 'inline-start': 'order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]',
+ 'inline-end': 'order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]',
+ 'block-start': '[.border-b]:pb-3 order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5',
+ 'block-end': '[.border-t]:pt-3 order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5'
+ }
},
defaultVariants: {
- align: "inline-start",
- },
+ align: 'inline-start'
+ }
});
- export type InputGroupAddonAlign = VariantProps<typeof inputGroupAddonVariants>["align"];
+ export type InputGroupAddonAlign = VariantProps<typeof inputGroupAddonVariants>['align'];
</script>
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let {
class: className,
children,
- align = "inline-start",
+ align = 'inline-start',
...restProps
}: HTMLAttributes<HTMLDivElement> & {
align?: InputGroupAddonAlign;
@@ -42,10 +38,10 @@
data-align={align}
class={cn(inputGroupAddonVariants({ align }), className)}
onclick={(e) => {
- if ((e.target as HTMLElement).closest("button")) {
+ if ((e.target as HTMLElement).closest('button')) {
return;
}
- e.currentTarget.parentElement?.querySelector("input")?.focus();
+ e.currentTarget.parentElement?.querySelector('input')?.focus();
}}
{...restProps}
>
diff --git a/frontend/src/lib/components/ui/input-group/input-group-button.svelte b/frontend/src/lib/components/ui/input-group/input-group-button.svelte
index 361c8d424..b4c69a3a8 100644
--- a/frontend/src/lib/components/ui/input-group/input-group-button.svelte
+++ b/frontend/src/lib/components/ui/input-group/input-group-button.svelte
@@ -1,47 +1,41 @@
<script lang="ts" module>
- import { tv, type VariantProps } from "tailwind-variants";
+ import { tv, type VariantProps } from 'tailwind-variants';
const inputGroupButtonVariants = tv({
- base: "flex items-center gap-2 text-sm shadow-none",
+ base: 'flex items-center gap-2 text-sm shadow-none',
variants: {
size: {
xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",
- sm: "h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5",
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
- "icon-sm": "size-8 p-0 has-[>svg]:p-0",
- },
+ sm: 'h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5',
+ 'icon-xs': 'size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0',
+ 'icon-sm': 'size-8 p-0 has-[>svg]:p-0'
+ }
},
defaultVariants: {
- size: "xs",
- },
+ size: 'xs'
+ }
});
- export type InputGroupButtonSize = VariantProps<typeof inputGroupButtonVariants>["size"];
+ export type InputGroupButtonSize = VariantProps<typeof inputGroupButtonVariants>['size'];
</script>
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { ComponentProps } from "svelte";
- import { Button } from "$lib/components/ui/button/index.js";
+ import { cn } from '$lib/utils.js';
+ import type { ComponentProps } from 'svelte';
+ import { Button } from '$lib/components/ui/button/index.js';
let {
class: className,
children,
- type = "button",
- variant = "ghost",
- size = "xs",
+ type = 'button',
+ variant = 'ghost',
+ size = 'xs',
...restProps
- }: Omit<ComponentProps<typeof Button>, "href" | "size"> & {
+ }: Omit<ComponentProps<typeof Button>, 'href' | 'size'> & {
size?: InputGroupButtonSize;
} = $props();
</script>
-<Button
- {type}
- data-size={size}
- {variant}
- class={cn(inputGroupButtonVariants({ size }), className)}
- {...restProps}
->
+<Button {type} data-size={size} {variant} class={cn(inputGroupButtonVariants({ size }), className)} {...restProps}>
{@render children?.()}
</Button>
diff --git a/frontend/src/lib/components/ui/input-group/input-group-input.svelte b/frontend/src/lib/components/ui/input-group/input-group-input.svelte
index 827042021..112fbeab5 100644
--- a/frontend/src/lib/components/ui/input-group/input-group-input.svelte
+++ b/frontend/src/lib/components/ui/input-group/input-group-input.svelte
@@ -1,21 +1,14 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { ComponentProps } from "svelte";
- import { Input } from "$lib/components/ui/input/index.js";
+ import { cn } from '$lib/utils.js';
+ import type { ComponentProps } from 'svelte';
+ import { Input } from '$lib/components/ui/input/index.js';
- let {
- value = $bindable(),
- class: className,
- ...props
- }: ComponentProps<typeof Input> = $props();
+ let { value = $bindable(), class: className, ...props }: ComponentProps<typeof Input> = $props();
</script>
<Input
data-slot="input-group-control"
- class={cn(
- "flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",
- className
- )}
+ class={cn('flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent', className)}
bind:value
{...props}
/>
diff --git a/frontend/src/lib/components/ui/input-group/input-group-text.svelte b/frontend/src/lib/components/ui/input-group/input-group-text.svelte
index c61dcb9dc..79dcc8dfe 100644
--- a/frontend/src/lib/components/ui/input-group/input-group-text.svelte
+++ b/frontend/src/lib/components/ui/input-group/input-group-text.svelte
@@ -1,13 +1,13 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let { class: className, children, ...restProps }: HTMLAttributes<HTMLSpanElement> = $props();
</script>
<span
class={cn(
- "text-muted-foreground flex items-center gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
+ "text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/input-group/input-group-textarea.svelte b/frontend/src/lib/components/ui/input-group/input-group-textarea.svelte
index 7a8c4d7e3..3269d4449 100644
--- a/frontend/src/lib/components/ui/input-group/input-group-textarea.svelte
+++ b/frontend/src/lib/components/ui/input-group/input-group-textarea.svelte
@@ -1,19 +1,15 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import { Textarea } from "$lib/components/ui/textarea/index.js";
- import type { ComponentProps } from "svelte";
+ import { cn } from '$lib/utils.js';
+ import { Textarea } from '$lib/components/ui/textarea/index.js';
+ import type { ComponentProps } from 'svelte';
- let {
- value = $bindable(),
- class: className,
- ...props
- }: ComponentProps<typeof Textarea> = $props();
+ let { value = $bindable(), class: className, ...props }: ComponentProps<typeof Textarea> = $props();
</script>
<Textarea
data-slot="input-group-control"
class={cn(
- "flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
+ 'flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent',
className
)}
bind:value
diff --git a/frontend/src/lib/components/ui/input-group/input-group.svelte b/frontend/src/lib/components/ui/input-group/input-group.svelte
index 558d3ba20..ce7e371ef 100644
--- a/frontend/src/lib/components/ui/input-group/input-group.svelte
+++ b/frontend/src/lib/components/ui/input-group/input-group.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
let { class: className, children, ...props }: HTMLAttributes<HTMLDivElement> = $props();
</script>
@@ -9,20 +9,20 @@
data-slot="input-group"
role="group"
class={cn(
- "group/input-group border-input dark:bg-input/30 shadow-xs relative flex w-full items-center rounded-md border outline-none transition-[color,box-shadow]",
- "h-9 has-[>textarea]:h-auto",
+ 'group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none',
+ 'h-9 has-[>textarea]:h-auto',
// Variants based on alignment.
- "has-[>[data-align=inline-start]]:[&>input]:pl-2",
- "has-[>[data-align=inline-end]]:[&>input]:pr-2",
- "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3",
- "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3",
+ 'has-[>[data-align=inline-start]]:[&>input]:pl-2',
+ 'has-[>[data-align=inline-end]]:[&>input]:pr-2',
+ 'has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3',
+ 'has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3',
// Focus state.
- "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]",
+ 'has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]',
// Error state.
- "has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",
+ 'has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40',
className
)}
diff --git a/frontend/src/lib/components/ui/radio-group/index.ts b/frontend/src/lib/components/ui/radio-group/index.ts
index 90b33fe5b..a8bb80f94 100644
--- a/frontend/src/lib/components/ui/radio-group/index.ts
+++ b/frontend/src/lib/components/ui/radio-group/index.ts
@@ -1,10 +1,10 @@
-import Root from "./radio-group.svelte";
-import Item from "./radio-group-item.svelte";
+import Root from './radio-group.svelte';
+import Item from './radio-group-item.svelte';
export {
Root,
Item,
//
Root as RadioGroup,
- Item as RadioGroupItem,
+ Item as RadioGroupItem
};
diff --git a/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte b/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
index 2cb0710b4..5368f0dbc 100644
--- a/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
+++ b/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
@@ -1,20 +1,16 @@
<script lang="ts">
- import { RadioGroup as RadioGroupPrimitive } from "bits-ui";
- import CircleIcon from "@lucide/svelte/icons/circle";
- import { cn, type WithoutChildrenOrChild } from "$lib/utils.js";
+ import { RadioGroup as RadioGroupPrimitive } from 'bits-ui';
+ import CircleIcon from '@lucide/svelte/icons/circle';
+ import { cn, type WithoutChildrenOrChild } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: WithoutChildrenOrChild<RadioGroupPrimitive.ItemProps> = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: WithoutChildrenOrChild<RadioGroupPrimitive.ItemProps> = $props();
</script>
<RadioGroupPrimitive.Item
bind:ref
data-slot="radio-group-item"
class={cn(
- "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 shadow-xs aspect-square size-4 shrink-0 rounded-full border outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
+ 'border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
className
)}
{...restProps}
@@ -22,9 +18,7 @@
{#snippet children({ checked })}
<div data-slot="radio-group-indicator" class="relative flex items-center justify-center">
{#if checked}
- <CircleIcon
- class="fill-primary absolute left-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2"
- />
+ <CircleIcon class="fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" />
{/if}
</div>
{/snippet}
diff --git a/frontend/src/lib/components/ui/radio-group/radio-group.svelte b/frontend/src/lib/components/ui/radio-group/radio-group.svelte
index da2912b04..2df9375be 100644
--- a/frontend/src/lib/components/ui/radio-group/radio-group.svelte
+++ b/frontend/src/lib/components/ui/radio-group/radio-group.svelte
@@ -1,19 +1,8 @@
<script lang="ts">
- import { RadioGroup as RadioGroupPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { RadioGroup as RadioGroupPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- value = $bindable(""),
- ...restProps
- }: RadioGroupPrimitive.RootProps = $props();
+ let { ref = $bindable(null), class: className, value = $bindable(''), ...restProps }: RadioGroupPrimitive.RootProps = $props();
</script>
-<RadioGroupPrimitive.Root
- bind:ref
- bind:value
- data-slot="radio-group"
- class={cn("grid gap-3", className)}
- {...restProps}
-/>
+<RadioGroupPrimitive.Root bind:ref bind:value data-slot="radio-group" class={cn('grid gap-3', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/select/select-content.svelte b/frontend/src/lib/components/ui/select/select-content.svelte
index 4469f1532..4753bd1d5 100644
--- a/frontend/src/lib/components/ui/select/select-content.svelte
+++ b/frontend/src/lib/components/ui/select/select-content.svelte
@@ -26,9 +26,9 @@
class={cn(
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
'max-h-(--bits-select-content-available-height) origin-(--bits-select-content-transform-origin)',
- 'max-w-[calc(100vw-2rem)] w-[var(--radix-popper-anchor-width)] min-w-[var(--radix-popper-anchor-width)]',
+ 'w-[var(--radix-popper-anchor-width)] max-w-[calc(100vw-2rem)] min-w-[var(--radix-popper-anchor-width)]',
'max-[768px]:max-w-[calc(100vw-1rem)]',
- '[&[data-side="right"]]:!left-auto [&[data-side="right"]]:!right-0',
+ '[&[data-side="right"]]:!right-0 [&[data-side="right"]]:!left-auto',
'[&[data-side="bottom"]]:!max-h-[min(var(--bits-select-content-available-height),_calc(100vh-2rem))]',
className
)}
diff --git a/frontend/src/lib/components/ui/sidebar/context.svelte.ts b/frontend/src/lib/components/ui/sidebar/context.svelte.ts
index 6cd3b2aa2..829b252e3 100644
--- a/frontend/src/lib/components/ui/sidebar/context.svelte.ts
+++ b/frontend/src/lib/components/ui/sidebar/context.svelte.ts
@@ -35,7 +35,7 @@ class SidebarState {
this.setOpen = props.setOpen;
this.#isTablet = new IsTablet();
this.props = props;
-
+
// Sync the open state based on pinning preference and screen size
$effect(() => {
// On tablet, always collapse regardless of pinning preference
@@ -111,8 +111,6 @@ class SidebarState {
}
};
-
-
toggle = () => {
if (!this.#isTablet.current) {
// On desktop, toggle the pinning preference
@@ -142,4 +140,3 @@ export function setSidebar(props: SidebarStateProps): SidebarState {
export function useSidebar(): SidebarState {
return getContext(Symbol.for(SYMBOL_KEY));
}
-
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte
index 9b4a0dd8c..e2373883b 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte
@@ -9,7 +9,10 @@
bind:this={ref}
data-slot="sidebar-content"
data-sidebar="content"
- class={cn('flex min-h-0 flex-1 flex-col gap-2 overflow-x-hidden overflow-y-auto group-data-[collapsible=icon]:overflow-hidden group-data-[collapsible=icon]:group-data-[hovered=true]:overflow-x-hidden group-data-[collapsible=icon]:group-data-[hovered=true]:overflow-y-auto', className)}
+ class={cn(
+ 'flex min-h-0 flex-1 flex-col gap-2 overflow-x-hidden overflow-y-auto group-data-[collapsible=icon]:overflow-hidden group-data-[collapsible=icon]:group-data-[hovered=true]:overflow-x-hidden group-data-[collapsible=icon]:group-data-[hovered=true]:overflow-y-auto',
+ className
+ )}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte
index dfde865cf..ef1b31931 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte
@@ -1,12 +1,12 @@
<script lang="ts">
-import * as Tooltip from '$lib/components/ui/tooltip/index.js';
-import { cn, type WithElementRef } from '$lib/utils.js';
-import type { HTMLAttributes } from 'svelte/elements';
-import { SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON } from './constants.js';
-import { setSidebar } from './context.svelte.js';
-import { IsTablet } from '$lib/hooks/is-tablet.svelte.js';
-import { IsMobile } from '$lib/hooks/is-mobile.svelte.js';
-import { PersistedState } from 'runed';
+ import * as Tooltip from '$lib/components/ui/tooltip/index.js';
+ import { cn, type WithElementRef } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
+ import { SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON } from './constants.js';
+ import { setSidebar } from './context.svelte.js';
+ import { IsTablet } from '$lib/hooks/is-tablet.svelte.js';
+ import { IsMobile } from '$lib/hooks/is-mobile.svelte.js';
+ import { PersistedState } from 'runed';
const persistedPinned = new PersistedState('sidebar-pinned', true);
@@ -50,7 +50,7 @@ import { PersistedState } from 'runed';
if (isTablet.current && !isMobile.current && value === true) {
return;
}
-
+
open = value;
onOpenChange(value);
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar.svelte b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
index edb2048dc..793787a41 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
@@ -56,7 +56,7 @@
<div
data-slot="sidebar-container"
class={cn(
- 'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex overflow-x-hidden',
+ 'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) overflow-x-hidden transition-[left,right,width] duration-200 ease-linear md:flex',
side === 'left'
? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'
: 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',
diff --git a/frontend/src/lib/components/ui/snippet/snippet.svelte b/frontend/src/lib/components/ui/snippet/snippet.svelte
index 050bf00c1..fad0e5ae9 100644
--- a/frontend/src/lib/components/ui/snippet/snippet.svelte
+++ b/frontend/src/lib/components/ui/snippet/snippet.svelte
@@ -36,12 +36,12 @@
<div class={cn(style({ variant, className: className }))}>
{#if typeof text == 'string'}
- <pre class={cn('overflow-y-auto whitespace-nowrap text-left font-mono text-sm font-light')}>
+ <pre class={cn('overflow-y-auto text-left font-mono text-sm font-light whitespace-nowrap')}>
{text}
</pre>
{:else}
{#each text as line, i (i)}
- <pre class={cn('overflow-y-auto whitespace-nowrap text-left font-mono text-sm font-light')}>
+ <pre class={cn('overflow-y-auto text-left font-mono text-sm font-light whitespace-nowrap')}>
{line}
</pre>
{/each}
@@ -50,7 +50,7 @@
<CopyButton
size="icon"
variant="ghost"
- class="absolute right-2 top-1/2 size-7 -translate-y-1/2 transition-opacity ease-in-out hover:bg-transparent hover:text-opacity-80 dark:hover:bg-transparent"
+ class="hover:text-opacity-80 absolute top-1/2 right-2 size-7 -translate-y-1/2 transition-opacity ease-in-out hover:bg-transparent dark:hover:bg-transparent"
text={typeof text === 'string' ? text : text.join('\n')}
{onCopy}
/>
diff --git a/frontend/src/lib/components/ui/spinner/index.ts b/frontend/src/lib/components/ui/spinner/index.ts
index f8b1cedde..2e459c671 100644
--- a/frontend/src/lib/components/ui/spinner/index.ts
+++ b/frontend/src/lib/components/ui/spinner/index.ts
@@ -1 +1 @@
-export { default as Spinner } from "./spinner.svelte";
+export { default as Spinner } from './spinner.svelte';
diff --git a/frontend/src/lib/components/ui/spinner/spinner.svelte b/frontend/src/lib/components/ui/spinner/spinner.svelte
index 37acac16a..092debc60 100644
--- a/frontend/src/lib/components/ui/spinner/spinner.svelte
+++ b/frontend/src/lib/components/ui/spinner/spinner.svelte
@@ -1,16 +1,11 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import Loader2Icon from "@lucide/svelte/icons/loader-2";
- import type { ComponentProps } from "svelte";
+ import { cn } from '$lib/utils.js';
+ import Loader2Icon from '@lucide/svelte/icons/loader-2';
+ import type { ComponentProps } from 'svelte';
type Props = ComponentProps<typeof Loader2Icon>;
let { class: className, ...restProps }: Props = $props();
</script>
-<Loader2Icon
- role="status"
- aria-label="Loading"
- class={cn("size-4 animate-spin", className)}
- {...restProps}
-/>
+<Loader2Icon role="status" aria-label="Loading" class={cn('size-4 animate-spin', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/tabs/tabs-content.svelte b/frontend/src/lib/components/ui/tabs/tabs-content.svelte
index 68c3868c2..d8648e19e 100644
--- a/frontend/src/lib/components/ui/tabs/tabs-content.svelte
+++ b/frontend/src/lib/components/ui/tabs/tabs-content.svelte
@@ -8,7 +8,7 @@
<TabsPrimitive.Content
bind:ref
class={cn(
- 'ring-offset-background focus-visible:ring-ring h-full min-h-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
+ 'ring-offset-background focus-visible:ring-ring h-full min-h-0 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/tooltip/index.ts b/frontend/src/lib/components/ui/tooltip/index.ts
index 313a7f069..273d831e6 100644
--- a/frontend/src/lib/components/ui/tooltip/index.ts
+++ b/frontend/src/lib/components/ui/tooltip/index.ts
@@ -1,6 +1,6 @@
-import { Tooltip as TooltipPrimitive } from "bits-ui";
-import Trigger from "./tooltip-trigger.svelte";
-import Content from "./tooltip-content.svelte";
+import { Tooltip as TooltipPrimitive } from 'bits-ui';
+import Trigger from './tooltip-trigger.svelte';
+import Content from './tooltip-content.svelte';
const Root = TooltipPrimitive.Root;
const Provider = TooltipPrimitive.Provider;
@@ -17,5 +17,5 @@ export {
Content as TooltipContent,
Trigger as TooltipTrigger,
Provider as TooltipProvider,
- Portal as TooltipPortal,
+ Portal as TooltipPortal
};
diff --git a/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte b/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte
index e495efe5f..60d68f516 100644
--- a/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte
+++ b/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte
@@ -1,12 +1,12 @@
<script lang="ts">
- import { Tooltip as TooltipPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { Tooltip as TooltipPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
let {
ref = $bindable(null),
class: className,
sideOffset = 0,
- side = "top",
+ side = 'top',
children,
arrowClasses,
...restProps
@@ -22,7 +22,7 @@
{sideOffset}
{side}
class={cn(
- "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--bits-tooltip-content-transform-origin) z-50 w-fit text-balance rounded-md px-3 py-1.5 text-xs",
+ 'bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--bits-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance',
className
)}
{...restProps}
@@ -32,11 +32,11 @@
{#snippet child({ props })}
<div
class={cn(
- "bg-primary z-50 size-2.5 rotate-45 rounded-[2px]",
- "data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_2px)]",
- "data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(-50%_+_1px)]",
- "data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2",
- "data-[side=left]:-translate-y-[calc(50%_-_3px)]",
+ 'bg-primary z-50 size-2.5 rotate-45 rounded-[2px]',
+ 'data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_2px)]',
+ 'data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(-50%_+_1px)]',
+ 'data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2',
+ 'data-[side=left]:-translate-y-[calc(50%_-_3px)]',
arrowClasses
)}
{...props}
diff --git a/frontend/src/lib/components/ui/tooltip/tooltip-trigger.svelte b/frontend/src/lib/components/ui/tooltip/tooltip-trigger.svelte
index 1acdaa47b..5631d1b4c 100644
--- a/frontend/src/lib/components/ui/tooltip/tooltip-trigger.svelte
+++ b/frontend/src/lib/components/ui/tooltip/tooltip-trigger.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { Tooltip as TooltipPrimitive } from "bits-ui";
+ import { Tooltip as TooltipPrimitive } from 'bits-ui';
let { ref = $bindable(null), ...restProps }: TooltipPrimitive.TriggerProps = $props();
</script>
diff --git a/frontend/src/lib/hooks/use-scroll-direction.svelte.ts b/frontend/src/lib/hooks/use-scroll-direction.svelte.ts
index 3d2a80df7..48990846c 100644
--- a/frontend/src/lib/hooks/use-scroll-direction.svelte.ts
+++ b/frontend/src/lib/hooks/use-scroll-direction.svelte.ts
@@ -11,32 +11,32 @@ export class ScrollDirectionDetector {
constructor(threshold = 10) {
this.scrollThreshold = threshold;
-
+
onMount(() => {
this.lastScrollY = window.scrollY;
-
+
const handleScroll = this.throttle(() => {
const currentScrollY = window.scrollY;
const scrollDiff = currentScrollY - this.lastScrollY;
-
+
// Only update direction if scroll difference exceeds threshold
if (Math.abs(scrollDiff) > this.scrollThreshold) {
const newDirection = scrollDiff > 0 ? 'down' : 'up';
-
+
// Only update if direction actually changed to avoid unnecessary re-renders
if (this.scrollDirection !== newDirection) {
this.scrollDirection = newDirection;
}
this.lastScrollY = currentScrollY;
}
-
+
this.isScrolling = true;
-
+
// Clear existing timeout
if (this.scrollTimeout) {
clearTimeout(this.scrollTimeout);
}
-
+
// Set idle state after scrolling stops
this.scrollTimeout = window.setTimeout(() => {
if (this.scrollDirection !== 'idle') {
@@ -45,9 +45,9 @@ export class ScrollDirectionDetector {
this.isScrolling = false;
}, 150);
}, 16); // ~60fps throttling
-
+
window.addEventListener('scroll', handleScroll, { passive: true });
-
+
return () => {
window.removeEventListener('scroll', handleScroll);
if (this.scrollTimeout) {
@@ -75,7 +75,7 @@ export class ScrollDirectionDetector {
if (!inThrottle) {
func.apply(this, args);
inThrottle = true;
- setTimeout(() => inThrottle = false, limit);
+ setTimeout(() => (inThrottle = false), limit);
}
}) as T;
}
diff --git a/frontend/src/lib/hooks/use-swipe-gesture.svelte.ts b/frontend/src/lib/hooks/use-swipe-gesture.svelte.ts
index 62f78ebcc..089c42a2e 100644
--- a/frontend/src/lib/hooks/use-swipe-gesture.svelte.ts
+++ b/frontend/src/lib/hooks/use-swipe-gesture.svelte.ts
@@ -18,10 +18,7 @@ export class SwipeGestureDetector {
private cleanupFn: (() => void) | null = null;
private isInteractiveTouch = false;
- constructor(
- onSwipe: (direction: SwipeDirection, details: SwipeDetails) => void,
- options: SwipeGestureOptions = {}
- ) {
+ constructor(onSwipe: (direction: SwipeDirection, details: SwipeDetails) => void, options: SwipeGestureOptions = {}) {
this.onSwipe = onSwipe;
this.options = {
threshold: options.threshold ?? 30,
@@ -54,7 +51,7 @@ export class SwipeGestureDetector {
this.startX = touch.clientX;
this.startY = touch.clientY;
this.startTime = Date.now();
-
+
// Store if this started on an interactive element
const target = e.target as HTMLElement;
const isInteractive = target.closest('button, a, [role="button"], input, textarea, select');
@@ -81,14 +78,14 @@ export class SwipeGestureDetector {
// Lower both thresholds when user achieves one of them
const meetsDistanceThreshold = distance >= this.options.threshold;
const meetsVelocityThreshold = velocity >= this.options.velocity;
-
+
// More responsive: allow smaller distance if velocity is good, or smaller velocity if distance is good
const responsiveDistanceThreshold = meetsVelocityThreshold ? this.options.threshold * 0.6 : this.options.threshold;
const responsiveVelocityThreshold = meetsDistanceThreshold ? this.options.velocity * 0.6 : this.options.velocity;
-
+
const meetsAdjustedDistance = distance >= responsiveDistanceThreshold;
const meetsAdjustedVelocity = velocity >= responsiveVelocityThreshold;
-
+
if (!meetsAdjustedDistance && !meetsAdjustedVelocity) return;
// If the gesture started on an interactive element, require more deliberate movement
@@ -99,10 +96,10 @@ export class SwipeGestureDetector {
// 2. Good velocity with some distance (at least 15px)
const minDistanceForInteractive = 25;
const minDistanceWithVelocity = 15;
-
+
const hasSignificantDistance = distance >= minDistanceForInteractive;
const hasGoodVelocityWithDistance = distance >= minDistanceWithVelocity && velocity >= this.options.velocity;
-
+
if (!hasSignificantDistance && !hasGoodVelocityWithDistance) {
return; // Likely a tap, not a swipe
}
@@ -129,14 +126,14 @@ export class SwipeGestureDetector {
// Stop momentum and prevent default for valid swipe gestures only if body isn't already locked
const shouldLockScrolling = document.body.style.overflow !== 'hidden';
-
+
if (shouldLockScrolling) {
document.body.style.overflow = 'hidden';
document.documentElement.style.overflow = 'hidden';
}
-
+
this.onSwipe(direction, details);
-
+
// Restore scrolling after gesture is processed, but only if we locked it
if (shouldLockScrolling) {
setTimeout(() => {
@@ -144,7 +141,7 @@ export class SwipeGestureDetector {
document.documentElement.style.overflow = '';
}, 100);
}
-
+
// For interactive elements, only prevent default if this was clearly a swipe gesture
// This allows button clicks to still work for small movements
if (this.isInteractiveTouch) {
diff --git a/frontend/src/lib/layouts/index.ts b/frontend/src/lib/layouts/index.ts
index 561e98030..c61fac28f 100644
--- a/frontend/src/lib/layouts/index.ts
+++ b/frontend/src/lib/layouts/index.ts
@@ -1,3 +1,13 @@
-export { default as ResourcePageLayout, type ActionButton, type StatCardConfig, type StatCardsColumns } from './resource-page-layout.svelte';
+export {
+ default as ResourcePageLayout,
+ type ActionButton,
+ type StatCardConfig,
+ type StatCardsColumns
+} from './resource-page-layout.svelte';
export { default as TabbedPageLayout } from './tabbed-page-layout.svelte';
-export { default as SettingsPageLayout, type SettingsActionButton, type SettingsStatCard, type SettingsPageType } from './settings-page-layout.svelte';
+export {
+ default as SettingsPageLayout,
+ type SettingsActionButton,
+ type SettingsStatCard,
+ type SettingsPageType
+} from './settings-page-layout.svelte';
diff --git a/frontend/src/lib/layouts/tabbed-page-layout.svelte b/frontend/src/lib/layouts/tabbed-page-layout.svelte
index 8bf53b691..8f01f6c66 100644
--- a/frontend/src/lib/layouts/tabbed-page-layout.svelte
+++ b/frontend/src/lib/layouts/tabbed-page-layout.svelte
@@ -79,7 +79,7 @@
</div>
{#if showFloatingHeader}
- <div class="fixed left-1/2 top-4 z-30 -translate-x-1/2 transition-all duration-300 ease-in-out">
+ <div class="fixed top-4 left-1/2 z-30 -translate-x-1/2 transition-all duration-300 ease-in-out">
<div class="bg-background/90 border-border/50 rounded-lg border px-4 py-3 shadow-xl backdrop-blur-xl">
<div class="flex items-center gap-4">
<div class="min-w-0">
diff --git a/frontend/src/routes/auth/login/+page.svelte b/frontend/src/routes/auth/login/+page.svelte
index 42a6cdb2e..8a590cc84 100644
--- a/frontend/src/routes/auth/login/+page.svelte
+++ b/frontend/src/routes/auth/login/+page.svelte
@@ -218,8 +218,8 @@
</div>
</div>
-<div class="fixed bottom-0 left-0 right-0 p-4">
- <div class="text-muted-foreground text-balance text-center text-xs">
+<div class="fixed right-0 bottom-0 left-0 p-4">
+ <div class="text-muted-foreground text-center text-xs text-balance">
<div class="flex items-center justify-center gap-4">
<a
href="https://github.com/ofkm/arcane"
diff --git a/frontend/src/routes/containers/[containerId]/+page.svelte b/frontend/src/routes/containers/[containerId]/+page.svelte
index 8f0b17d67..6dba1d0bd 100644
--- a/frontend/src/routes/containers/[containerId]/+page.svelte
+++ b/frontend/src/routes/containers/[containerId]/+page.svelte
@@ -264,11 +264,11 @@
const backUrl = $derived.by(() => {
const from = page.url.searchParams.get('from');
const projectId = page.url.searchParams.get('projectId');
-
+
if (from === 'project' && projectId) {
return `/projects/${projectId}`;
}
-
+
return '/containers';
});
</script>
diff --git a/frontend/src/routes/containers/container-table.svelte b/frontend/src/routes/containers/container-table.svelte
index 4062cc1e9..c60aef983 100644
--- a/frontend/src/routes/containers/container-table.svelte
+++ b/frontend/src/routes/containers/container-table.svelte
@@ -303,7 +303,7 @@
<NetworkIcon class="size-3.5 text-sky-500" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-[10px] font-medium uppercase tracking-wide">
+ <div class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">
{m.ports()}
</div>
<div class="mt-1">
diff --git a/frontend/src/routes/customize/+page.svelte b/frontend/src/routes/customize/+page.svelte
index a5185a174..7046f7837 100644
--- a/frontend/src/routes/customize/+page.svelte
+++ b/frontend/src/routes/customize/+page.svelte
@@ -253,7 +253,7 @@
<div
class="from-background/60 via-background/40 to-background/60 relative overflow-hidden rounded-xl border bg-gradient-to-br p-4 shadow-sm sm:p-6"
>
- <div class="bg-primary/10 pointer-events-none absolute -right-10 -top-10 size-40 rounded-full blur-3xl"></div>
+ <div class="bg-primary/10 pointer-events-none absolute -top-10 -right-10 size-40 rounded-full blur-3xl"></div>
<div class="bg-muted/40 pointer-events-none absolute -bottom-10 -left-10 size-40 rounded-full blur-3xl"></div>
<div class="relative">
<div class="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
@@ -276,15 +276,15 @@
</div>
<div class="relative mt-4 w-full sm:mt-6 sm:max-w-md">
- <SearchIcon class="text-muted-foreground absolute left-3 top-1/2 z-10 size-4 -translate-y-1/2" />
+ <SearchIcon class="text-muted-foreground absolute top-1/2 left-3 z-10 size-4 -translate-y-1/2" />
<input
type="text"
placeholder={m.customize_search_placeholder()}
bind:value={searchQuery}
- class="bg-background/50 border-input ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 pl-10 text-sm backdrop-blur-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
+ class="bg-background/50 border-input ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 pl-10 text-sm backdrop-blur-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50"
/>
{#if showSearchResults}
- <Button variant="ghost" size="sm" onclick={clearSearch} class="absolute right-2 top-1/2 h-6 w-6 -translate-y-1/2 p-0">
+ <Button variant="ghost" size="sm" onclick={clearSearch} class="absolute top-1/2 right-2 h-6 w-6 -translate-y-1/2 p-0">
×
</Button>
{/if}
@@ -307,7 +307,7 @@
<Icon class="size-5 sm:size-6" />
</div>
<div class="min-w-0 flex-1">
- <h3 class="text-sm font-semibold leading-tight sm:text-base">{category.title}</h3>
+ <h3 class="text-sm leading-tight font-semibold sm:text-base">{category.title}</h3>
<p class="text-muted-foreground mt-1 text-xs leading-relaxed sm:text-sm">{category.description}</p>
</div>
</div>
diff --git a/frontend/src/routes/customize/templates/+page.svelte b/frontend/src/routes/customize/templates/+page.svelte
index ae264b588..2ca290c48 100644
--- a/frontend/src/routes/customize/templates/+page.svelte
+++ b/frontend/src/routes/customize/templates/+page.svelte
@@ -198,7 +198,7 @@
{registry.enabled ? m.common_enabled() : m.common_disabled()}
</Badge>
</div>
- <p class="text-muted-foreground break-all text-sm">{registry.url}</p>
+ <p class="text-muted-foreground text-sm break-all">{registry.url}</p>
{#if registry.description}
<p class="text-muted-foreground mt-1 text-sm">{registry.description}</p>
{/if}
diff --git a/frontend/src/routes/customize/variables/+page.svelte b/frontend/src/routes/customize/variables/+page.svelte
index 52903d24a..7d3b1d14b 100644
--- a/frontend/src/routes/customize/variables/+page.svelte
+++ b/frontend/src/routes/customize/variables/+page.svelte
@@ -196,7 +196,7 @@
<div class="flex items-center gap-2">
<div class="relative w-full sm:w-52">
- <SearchIcon class="text-muted-foreground pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2" />
+ <SearchIcon class="text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2" />
<Input type="text" placeholder={m.common_search()} bind:value={searchQuery} class="h-9 pl-10" />
</div>
<Button type="button" size="sm" onclick={addEnvVar} disabled={isLoading} class="shrink-0">
diff --git a/frontend/src/routes/dashboard/dash-image-table.svelte b/frontend/src/routes/dashboard/dash-image-table.svelte
index f16a1f89f..e1dc70f98 100644
--- a/frontend/src/routes/dashboard/dash-image-table.svelte
+++ b/frontend/src/routes/dashboard/dash-image-table.svelte
@@ -91,7 +91,7 @@
fields={[
{
label: m.images_size(),
- getValue: (item: ImageSummaryDto) => bytes.format(item.size),
+ getValue: (item: ImageSummaryDto) => bytes.format(item.size)
}
]}
compact
diff --git a/frontend/src/routes/environments/[id]/+page.svelte b/frontend/src/routes/environments/[id]/+page.svelte
index d520c8070..21985fd13 100644
--- a/frontend/src/routes/environments/[id]/+page.svelte
+++ b/frontend/src/routes/environments/[id]/+page.svelte
@@ -149,7 +149,7 @@
<div class="lg:col-span-1">
<Card.Root class="flex flex-col gap-6 py-3">
<Card.Header
- class="@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6"
+ class="@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6"
>
<Card.Title class="text-lg">{m.environments_sections_title()}</Card.Title>
</Card.Header>
@@ -178,7 +178,7 @@
<div class="space-y-6">
<Card.Root class="flex flex-col gap-6 py-3">
<Card.Header
- class="@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6"
+ class="@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6"
>
<Card.Title class="flex items-center gap-2">
<MonitorIcon class="size-5" />
@@ -235,7 +235,7 @@
<!-- Docker Settings -->
<div class="mb-6">
- <h4 class="text-muted-foreground mb-3 text-sm font-semibold uppercase tracking-wide">{m.docker_title()}</h4>
+ <h4 class="text-muted-foreground mb-3 text-sm font-semibold tracking-wide uppercase">{m.docker_title()}</h4>
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
<div>
<Label class="text-muted-foreground text-sm font-medium">{m.docker_enable_polling_label()}</Label>
@@ -280,7 +280,7 @@
<!-- General Settings -->
<div class="mb-6">
- <h4 class="text-muted-foreground mb-3 text-sm font-semibold uppercase tracking-wide">{m.general_title()}</h4>
+ <h4 class="text-muted-foreground mb-3 text-sm font-semibold tracking-wide uppercase">{m.general_title()}</h4>
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
<div>
<Label class="text-muted-foreground text-sm font-medium">{m.general_projects_directory_label()}</Label>
@@ -309,7 +309,7 @@
<!-- Security Settings -->
{#if environment.id === '0' && settings.authLocalEnabled !== undefined}
<div class="mb-6">
- <h4 class="text-muted-foreground mb-3 text-sm font-semibold uppercase tracking-wide">
+ <h4 class="text-muted-foreground mb-3 text-sm font-semibold tracking-wide uppercase">
{m.security_title()}
</h4>
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
@@ -346,7 +346,7 @@
<!-- Navigation Settings -->
{#if environment.id === '0' && settings.mobileNavigationMode !== undefined}
<div>
- <h4 class="text-muted-foreground mb-3 text-sm font-semibold uppercase tracking-wide">
+ <h4 class="text-muted-foreground mb-3 text-sm font-semibold tracking-wide uppercase">
{m.navigation_title()}
</h4>
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
@@ -393,7 +393,7 @@
<div class="space-y-6">
<Card.Root class="flex flex-col gap-6 py-3">
<Card.Header
- class="@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6"
+ class="@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6"
>
<Card.Title class="flex items-center gap-2">
<GlobeIcon class="h-5 w-5" />
@@ -407,7 +407,7 @@
</div>
<div>
<Label class="text-muted-foreground text-sm font-medium">{m.environments_api_url()}</Label>
- <div class="bg-muted mt-1 break-all rounded-md px-3 py-2 font-mono text-sm">{environment.apiUrl}</div>
+ <div class="bg-muted mt-1 rounded-md px-3 py-2 font-mono text-sm break-all">{environment.apiUrl}</div>
</div>
<div class="pt-4">
<Button onclick={testConnection} disabled={isTestingConnection} class="w-full">
@@ -427,7 +427,7 @@
<div class="space-y-6">
<Card.Root class="flex flex-col gap-6 py-3">
<Card.Header
- class="@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6"
+ class="@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6"
>
<Card.Title class="flex items-center gap-2">
<SettingsIcon class="h-5 w-5" />
@@ -466,7 +466,7 @@
</div>
{#if isRefreshing}
- <div class="fixed bottom-4 right-4 flex items-center gap-2 rounded-lg bg-blue-600 px-3 py-2 text-white shadow-lg">
+ <div class="fixed right-4 bottom-4 flex items-center gap-2 rounded-lg bg-blue-600 px-3 py-2 text-white shadow-lg">
<RefreshCwIcon class="h-4 w-4 animate-spin" />
<span class="text-sm">{m.environments_refreshing()}</span>
</div>
diff --git a/frontend/src/routes/environments/environment-table.svelte b/frontend/src/routes/environments/environment-table.svelte
index d188d8e72..3dc520ee8 100644
--- a/frontend/src/routes/environments/environment-table.svelte
+++ b/frontend/src/routes/environments/environment-table.svelte
@@ -169,7 +169,7 @@
<MonitorIcon class="text-muted-foreground size-4" />
</div>
<div
- class="border-background absolute -right-1 -top-1 size-3 rounded-full border-2 {item.status === 'online'
+ class="border-background absolute -top-1 -right-1 size-3 rounded-full border-2 {item.status === 'online'
? 'bg-green-500'
: 'bg-red-500'}"
></div>
diff --git a/frontend/src/routes/images/image-table.svelte b/frontend/src/routes/images/image-table.svelte
index 7937fee3e..5821c50c6 100644
--- a/frontend/src/routes/images/image-table.svelte
+++ b/frontend/src/routes/images/image-table.svelte
@@ -273,7 +273,7 @@
<div class="flex flex-wrap gap-x-4 gap-y-3 border-t pt-3">
{#if (mobileFieldVisibility.updates ?? true) && item.updateInfo !== undefined}
<div class="flex min-w-0 flex-1 basis-[180px] flex-col">
- <div class="text-muted-foreground text-[10px] font-medium uppercase tracking-wide">
+ <div class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">
{m.images_updates()}
</div>
<div class="mt-0.5">
diff --git a/frontend/src/routes/onboarding/docker/+page.svelte b/frontend/src/routes/onboarding/docker/+page.svelte
index e78a01cb8..eb22509c3 100644
--- a/frontend/src/routes/onboarding/docker/+page.svelte
+++ b/frontend/src/routes/onboarding/docker/+page.svelte
@@ -117,7 +117,7 @@
<div class="grid gap-6 md:grid-cols-2">
<Card.Root class="flex flex-col gap-6 py-3">
<Card.Header
- class="@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6"
+ class="@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6"
>
<Card.Title>{m.docker_title()}</Card.Title>
<Card.Description>{m.docker_description()}</Card.Description>
@@ -184,7 +184,7 @@
<Card.Root class="flex flex-col gap-6 py-3">
<Card.Header
- class="@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6"
+ class="@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6"
>
<Card.Title>{m.docker_prune_action_label()}</Card.Title>
<Card.Description>{pruneModeDescription}</Card.Description>
diff --git a/frontend/src/routes/projects/components/EditableName.svelte b/frontend/src/routes/projects/components/EditableName.svelte
index 6509bf05e..e2cf04c9b 100644
--- a/frontend/src/routes/projects/components/EditableName.svelte
+++ b/frontend/src/routes/projects/components/EditableName.svelte
@@ -47,7 +47,7 @@
bind:ref
bind:value
{placeholder}
- class="h-8 min-w-[120px] max-w-[280px] px-2 text-left text-base font-semibold {error ? 'border-destructive' : ''}"
+ class="h-8 max-w-[280px] min-w-[120px] px-2 text-left text-base font-semibold {error ? 'border-destructive' : ''}"
autofocus
onkeydown={(e) => {
if (e.key === 'Enter') {
@@ -97,7 +97,7 @@
<h1 class="m-0 w-full">
<button
type="button"
- class="hover:bg-muted/50 focus:ring-ring min-h-[32px] w-full rounded bg-transparent px-1 py-1 text-center text-base font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
+ class="hover:bg-muted/50 focus:ring-ring min-h-[32px] w-full rounded bg-transparent px-1 py-1 text-center text-base font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
title={canEdit ? `${value || placeholder} (tap to edit)` : value || placeholder}
onclick={beginEdit}
disabled={!canEdit}
@@ -108,14 +108,14 @@
{#if canEdit}
<div class="flex items-center justify-center">
- <span class="text-muted-foreground flex items-center gap-0.5 whitespace-nowrap text-[8px] opacity-30">
+ <span class="text-muted-foreground flex items-center gap-0.5 text-[8px] whitespace-nowrap opacity-30">
<PencilIcon class="size-1.5" />
{m.tap_to_edit()}
</span>
</div>
{:else}
<div class="flex items-center justify-center">
- <span class="text-muted-foreground inline-flex cursor-help items-center gap-0.5 whitespace-nowrap text-[8px] opacity-40">
+ <span class="text-muted-foreground inline-flex cursor-help items-center gap-0.5 text-[8px] whitespace-nowrap opacity-40">
<InfoIcon class="size-1.5" />
{m.cannot_edit()}
</span>
@@ -126,7 +126,7 @@
<h1 class="m-0 max-w-[360px]">
<button
type="button"
- class="w-full truncate bg-transparent px-0 py-0 text-left text-lg font-semibold leading-none {!value && placeholder
+ class="w-full truncate bg-transparent px-0 py-0 text-left text-lg leading-none font-semibold {!value && placeholder
? 'text-muted-foreground'
: ''}"
title={value || placeholder}
diff --git a/frontend/src/routes/projects/new/+page.svelte b/frontend/src/routes/projects/new/+page.svelte
index 8bd6c5e30..35a583c99 100644
--- a/frontend/src/routes/projects/new/+page.svelte
+++ b/frontend/src/routes/projects/new/+page.svelte
@@ -290,7 +290,7 @@
type="button"
variant="ghost"
size="sm"
- class="h-auto w-full justify-start whitespace-normal break-all p-2 text-left font-mono text-xs"
+ class="h-auto w-full justify-start p-2 text-left font-mono text-xs break-all whitespace-normal"
onclick={() => useExample(command)}
>
<CopyIcon class="mr-2 size-3 shrink-0" />