Skip to content

Modern Docker Management, Designed for Everyone

chore: use oxfmt for all packages instead of prettier

Kyle Mendell803ba2124e6b
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 15aa63961..290c1cbe5 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -28,7 +28,7 @@
"extensions": [
"golang.go",
"dbaeumer.vscode-eslint",
- "esbenp.prettier-vscode",
+ "oxc.oxc-vscode",
"svelte.svelte-vscode",
"bradlc.vscode-tailwindcss",
"ms-azuretools.vscode-docker",
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 7167623c9..cad7f926a 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,3 +1,3 @@
{
- "recommendations": ["actboy168.tasks", "svelte.svelte-vscode", "golang.go", "inlang.vs-code-extension"]
+ "recommendations": ["actboy168.tasks", "svelte.svelte-vscode", "oxc.oxc-vscode", "golang.go", "inlang.vs-code-extension"]
}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 470dd7502..82d2bf7d5 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -18,7 +18,21 @@
"stdversion": false
}
},
- "prettier.documentSelectors": ["**/*.svelte"],
+ "[svelte]": {
+ "editor.defaultFormatter": "oxc.oxc-vscode"
+ },
+ "[javascript]": {
+ "editor.defaultFormatter": "oxc.oxc-vscode"
+ },
+ "[javascriptreact]": {
+ "editor.defaultFormatter": "oxc.oxc-vscode"
+ },
+ "[typescript]": {
+ "editor.defaultFormatter": "oxc.oxc-vscode"
+ },
+ "[typescriptreact]": {
+ "editor.defaultFormatter": "oxc.oxc-vscode"
+ },
"tasks.statusbar.default.hide": true,
"tasks.statusbar.limit": 8,
"github.copilot.chat.summarizeAgentConversationHistory.enabled": false,
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 4f3271d98..76d5298c6 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -195,7 +195,7 @@ just gomod tidy all
Both services include development-time linting and formatting:
-- **Frontend**: ESLint + Prettier (configured in VS Code)
+- **Frontend**: Svelte/TypeScript checks + Oxfmt (configured in VS Code)
- **Backend**: Go fmt + Go vet (built into Air hot reload)
### Manual Commands
diff --git a/Justfile b/Justfile
index 816184515..4b3487594 100644
--- a/Justfile
+++ b/Justfile
@@ -158,57 +158,14 @@ _build-image-manager tag="ghcr.io/getarcaneapp/arcane:development" flag='':
_build-image-agent tag="ghcr.io/getarcaneapp/agent:development" flag='':
docker buildx build {{ if flag == "--push" { "--push" } else { "" } }} --platform linux/arm64,linux/amd64,linux/arm/v7 -f 'docker/Dockerfile-agent' --build-arg ENABLED_FEATURES="{{ env('ENABLED_FEATURES', env('BUILD_FEATURES', '')) }}" -t "{{ tag }}" .
-# Build + push both manager and agent multi-arch images for a beta release.
-#
-# Tag pattern: ghcr.io/getarcaneapp/{manager,agent}:<release>-beta
-# Version flag: <release>.0.0-beta (compiled into the binary via -ldflags),
-# unless an explicit version is supplied as the second arg.
-#
-# Examples:
-# just build v2 tags :v2-beta, VERSION=v2.0.0-beta
-# just build v2 v2.0.0-beta.2 tags :v2-beta, VERSION=v2.0.0-beta.2
-[group('build')]
-_build-release release version="":
- #!/usr/bin/env bash
- set -euo pipefail
-
- if [ -z "{{ release }}" ]; then
- echo "Release shortcut is required, e.g. 'just build v2'" >&2
- exit 1
- fi
-
- image_tag="{{ release }}-beta"
- version="{{ if version != "" { version } else { release + ".0.0-beta" } }}"
-
- echo "==> Building manager image ghcr.io/getarcaneapp/manager:${image_tag} (VERSION=${version})"
- docker buildx build \
- --tag "ghcr.io/getarcaneapp/manager:${image_tag}" \
- --push \
- --platform linux/amd64,linux/arm64 \
- --build-arg VERSION="${version}" \
- -f docker/Dockerfile .
-
- echo "==> Building agent image ghcr.io/getarcaneapp/agent:${image_tag} (VERSION=${version})"
- docker buildx build \
- --tag "ghcr.io/getarcaneapp/agent:${image_tag}" \
- --push \
- --platform linux/amd64,linux/arm64 \
- --build-arg VERSION="${version}" \
- -f docker/Dockerfile-agent .
-
- echo ""
- echo "✓ Pushed manager + agent images tagged :${image_tag} (VERSION=${version})"
-
# Build targets:
# just build single {frontend|backend|all}
-# just build image {manager|agent} [tag] [--push]
-# just build <release> [version] e.g. just build v2 -> push manager+agent :v2-beta with VERSION=v2.0.0-beta
+# just build image {manager|agent} [tag] [--push]
[group('build')]
build buildtype type="" tag="" flag="":
@if [ "{{ buildtype }}" = "single" ]; then just _build-{{ type }}; \
elif [ "{{ buildtype }}" = "image" ]; then just _build-image-{{ type }} "{{ if tag != "" { tag } else if type == "manager" { "arcane:latest" } else { "arcane-agent:latest" } }}" "{{ flag }}"; \
- elif echo "{{ buildtype }}" | grep -qE '^v[0-9]'; then just _build-release "{{ buildtype }}" "{{ type }}"; \
- else echo "Unknown build target: {{ buildtype }}. Try: just build single|image|<release>" >&2; exit 1; \
+ else echo "Unknown build target: {{ buildtype }}. Try: just build single|image" >&2; exit 1; \
fi
# -----------------------------------------------------------------------------
@@ -278,15 +235,15 @@ test target="all":
# Quality: format, lint, and fixes
# -----------------------------------------------------------------------------
-# Format frontend (Prettier), test/email TypeScript (oxfmt), and Go modules (gofmt)
+# Format frontend/test/email TypeScript with oxfmt and Go modules with gofmt
[group('quality')]
_format-frontend:
pnpm -C frontend format
[group('quality')]
_format-js:
- pnpm -C tests exec oxfmt "**/*.{ts,tsx,js,jsx,mts,cts}"
- pnpm -C email-templates exec oxfmt "**/*.{ts,tsx,js,jsx,mts,cts}"
+ pnpm -C tests format
+ pnpm -C email-templates format
[group('quality')]
_format-go:
@@ -304,8 +261,8 @@ _format-check-frontend:
[group('quality')]
_format-check-js:
- pnpm -C tests exec oxfmt --check "**/*.{ts,tsx,js,jsx,mts,cts}"
- pnpm -C email-templates exec oxfmt --check "**/*.{ts,tsx,js,jsx,mts,cts}"
+ pnpm -C tests format:check
+ pnpm -C email-templates format:check
[group('quality')]
_format-check-go:
diff --git a/email-templates/package.json b/email-templates/package.json
index b71b6527a..c50ad7926 100644
--- a/email-templates/package.json
+++ b/email-templates/package.json
@@ -1,26 +1,28 @@
{
- "name": "arcane-email-templates",
- "version": "1.0.0",
- "scripts": {
- "preinstall": "npx only-allow pnpm",
- "build": "tsx build.ts",
- "build:watch": "tsx watch build.ts",
- "check": "tsc --noEmit",
- "dev": "email dev --port 3030",
- "export": "email export"
- },
- "dependencies": {
- "react": "^19.2.7",
- "react-dom": "^19.2.7",
- "react-email": "6.8.1",
- "tailwind-merge": "^3.6.0"
- },
- "devDependencies": {
- "@types/node": "^26.1.0",
- "@types/react": "^19.2.17",
- "@types/react-dom": "^19.2.3",
- "oxfmt": "^0.58.0",
- "tsx": "^4.23.1",
+ "name": "arcane-email-templates",
+ "version": "1.0.0",
+ "scripts": {
+ "preinstall": "npx only-allow pnpm",
+ "build": "tsx build.ts",
+ "build:watch": "tsx watch build.ts",
+ "check": "tsc --noEmit",
+ "dev": "email dev --port 3030",
+ "export": "email export",
+ "format": "oxfmt",
+ "format:check": "oxfmt --check"
+ },
+ "dependencies": {
+ "react": "^19.2.7",
+ "react-dom": "^19.2.7",
+ "react-email": "6.8.1",
+ "tailwind-merge": "^3.6.0"
+ },
+ "devDependencies": {
+ "@types/node": "^26.1.0",
+ "@types/react": "^19.2.17",
+ "@types/react-dom": "^19.2.3",
+ "oxfmt": "^0.58.0",
+ "tsx": "^4.23.1",
"typescript": "^6.0.3"
- }
+ }
}
diff --git a/email-templates/tsconfig.json b/email-templates/tsconfig.json
index 9ad2ca321..1217aa058 100644
--- a/email-templates/tsconfig.json
+++ b/email-templates/tsconfig.json
@@ -1,25 +1,19 @@
{
- "compilerOptions": {
- "target": "ES2020",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
- "strict": true,
- "esModuleInterop": true,
- "skipLibCheck": true,
- "forceConsistentCasingInFileNames": true,
- "allowSyntheticDefaultImports": true,
- "resolveJsonModule": true,
- "isolatedModules": true,
- "noEmit": true,
- "jsx": "react-jsx",
- "types": ["node"]
- },
- "include": [
- "**/*.ts",
- "**/*.tsx"
- ],
- "exclude": [
- "node_modules",
- "dist"
- ]
-}
\ No newline at end of file
+ "compilerOptions": {
+ "target": "ES2020",
+ "module": "NodeNext",
+ "moduleResolution": "NodeNext",
+ "strict": true,
+ "esModuleInterop": true,
+ "skipLibCheck": true,
+ "forceConsistentCasingInFileNames": true,
+ "allowSyntheticDefaultImports": true,
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "noEmit": true,
+ "jsx": "react-jsx",
+ "types": ["node"]
+ },
+ "include": ["**/*.ts", "**/*.tsx"],
+ "exclude": ["node_modules", "dist"]
+}
diff --git a/frontend/.oxfmtrc.json b/frontend/.oxfmtrc.json
new file mode 100644
index 000000000..066f129f1
--- /dev/null
+++ b/frontend/.oxfmtrc.json
@@ -0,0 +1,25 @@
+{
+ "$schema": "./node_modules/oxfmt/configuration_schema.json",
+ "useTabs": true,
+ "singleQuote": true,
+ "trailingComma": "none",
+ "printWidth": 130,
+ "sortPackageJson": false,
+ "svelte": true,
+ "sortTailwindcss": {
+ "stylesheet": "./src/routes/layout.css",
+ "attributes": ["class"],
+ "functions": ["clsx", "cn"],
+ "preserveWhitespace": true
+ },
+ "ignorePatterns": [
+ "package-lock.json",
+ "pnpm-lock.yaml",
+ "yarn.lock",
+ ".svelte-kit/**",
+ "build/**",
+ "messages/**",
+ "project.inlang/**",
+ "src/lib/paraglide/**"
+ ]
+}
diff --git a/frontend/.prettierignore b/frontend/.prettierignore
deleted file mode 100644
index 34bf0b5c5..000000000
--- a/frontend/.prettierignore
+++ /dev/null
@@ -1,17 +0,0 @@
-# Package Managers
-package-lock.json
-pnpm-lock.yaml
-yarn.lock
-
-# Compiled files
-.svelte-kit/
-build/
-backend/frontend/dist/**
-
-# Paraglide
-frontend/messages/
-messages/
-frontend/project.inlang
-project.inlang/
-frontend/src/lib/paraglide/**
-src/lib/paraglide/**
diff --git a/frontend/.prettierrc.yml b/frontend/.prettierrc.yml
deleted file mode 100644
index 4a000078a..000000000
--- a/frontend/.prettierrc.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-useTabs: true
-singleQuote: true
-trailingComma: none
-printWidth: 130
-plugins:
- - prettier-plugin-svelte
- - prettier-plugin-tailwindcss
- - "@prettier/plugin-oxc"
-overrides:
- - files: "*.svelte"
- options:
- parser: svelte
- - files:
- - "**/*.{ts,mts,cts,tsx}"
- options:
- plugins:
- - "@prettier/plugin-oxc"
- parser: oxc-ts
diff --git a/frontend/jsrepo.json b/frontend/jsrepo.json
deleted file mode 100644
index 683f7362f..000000000
--- a/frontend/jsrepo.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "$schema": "https://unpkg.com/[email protected]/schemas/project-config.json",
- "repos": ["@ieedan/shadcn-svelte-extras"],
- "includeTests": false,
- "includeDocs": false,
- "watermark": false,
- "formatter": "prettier",
- "configFiles": {},
- "paths": {
- "*": "$lib/ui/extras",
- "ui": "$lib/components/ui",
- "actions": "$lib/actions",
- "hooks": "$lib/hooks",
- "utils": "$lib/utils"
- }
-}
diff --git a/frontend/package.json b/frontend/package.json
index 924249368..82317e0d7 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -8,8 +8,8 @@
"build": "vite build",
"preview": "vite preview --port 3000",
"check": "pnpm paraglide:compile && svelte-kit sync && svelte-check-rs --tsconfig ./tsconfig.json",
- "format": "prettier --write ./src",
- "format:check": "prettier --check ./src",
+ "format": "oxfmt ./src",
+ "format:check": "oxfmt --check ./src",
"check:watch": "pnpm paraglide:compile && svelte-kit sync && svelte-check-rs --tsconfig ./tsconfig.json --watch",
"paraglide:compile": "paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide --strategy cookie preferredLanguage baseLocale --silent",
"fallow": "fallow"
@@ -44,9 +44,6 @@
"embla-carousel-svelte": "^8.6.0",
"ky": "^2.0.2",
"marked": "^18.0.6",
- "prettier": "^3.9.3",
- "prettier-plugin-svelte": "^4.1.1",
- "prettier-plugin-tailwindcss": "^0.8.0",
"svelte": "^5.56.4",
"svelte-codemirror-editor": "^2.1.0",
"svelte-easy-crop": "^5.0.1",
@@ -56,7 +53,6 @@
"@iconify/json": "^2.2.499",
"@inlang/paraglide-js": "2.21.0",
"@internationalized/date": "^3.12.2",
- "@prettier/plugin-oxc": "^0.2.1",
"@sveltejs/adapter-static": "^4.0.0-next.1",
"@sveltejs/vite-plugin-svelte": "^7.2.0",
"@tailwindcss/vite": "^4.3.2",
@@ -69,6 +65,7 @@
"formsnap": "^2.0.1",
"isomorphic-dompurify": "^3.18.0",
"mode-watcher": "^1.1.0",
+ "oxfmt": "^0.58.0",
"paneforge": "^1.0.2",
"runed": "^0.37.1",
"shadcn-svelte": "^1.4.1",
diff --git a/frontend/src/lib/components/ComposeTemplateEditor.svelte b/frontend/src/lib/components/ComposeTemplateEditor.svelte
index 8d090220b..39bdb2057 100644
--- a/frontend/src/lib/components/ComposeTemplateEditor.svelte
+++ b/frontend/src/lib/components/ComposeTemplateEditor.svelte
@@ -84,7 +84,7 @@
</Card.Content>
{#if composeError}
<Card.Footer class="pt-0">
- <p class="text-destructive text-xs font-medium">{composeError}</p>
+ <p class="text-xs font-medium text-destructive">{composeError}</p>
</Card.Footer>
{/if}
</Card.Root>
@@ -122,7 +122,7 @@
</Card.Content>
{#if envError}
<Card.Footer class="pt-0">
- <p class="text-destructive text-xs font-medium">{envError}</p>
+ <p class="text-xs font-medium text-destructive">{envError}</p>
</Card.Footer>
{/if}
</Card.Root>
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 869d842ab..95fc76729 100644
--- a/frontend/src/lib/components/accent-color/accent-color-picker.svelte
+++ b/frontend/src/lib/components/accent-color/accent-color-picker.svelte
@@ -78,9 +78,9 @@
>
{#if isCustomColorSelection}
<div
- class="bg-muted absolute inset-0 flex items-center justify-center rounded-full border-2 border-dashed border-gray-300"
+ class="absolute inset-0 flex items-center justify-center rounded-full border-2 border-dashed border-gray-300 bg-muted"
>
- <AddIcon class="text-muted-foreground size-4" />
+ <AddIcon class="size-4 text-muted-foreground" />
</div>
{:else if isSelected}
<div class="absolute inset-0 flex items-center justify-center">
@@ -89,7 +89,7 @@
{/if}
</div>
<div
- class="text-muted-foreground group-hover/item:text-foreground bg-background absolute top-12 left-1/2 z-[var(--arcane-z-sticky)] 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"
+ class="absolute top-12 left-1/2 z-[var(--arcane-z-sticky)] max-w-0 -translate-x-1/2 transform overflow-hidden rounded-md border bg-background px-2 py-1 text-xs whitespace-nowrap text-muted-foreground opacity-0 shadow-sm transition-all duration-300 ease-out group-hover/item:max-w-[100px] group-hover/item:text-foreground 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 d3066fa3b..ea3a8dab0 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 mt-1 rounded-lg border-1 transition-all duration-200 ease-in-out': true,
+ 'mt-1 rounded-lg border-1 border-border 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/action-button-group/action-button-group.svelte b/frontend/src/lib/components/action-button-group/action-button-group.svelte
index 5f0c6fa81..43d258607 100644
--- a/frontend/src/lib/components/action-button-group/action-button-group.svelte
+++ b/frontend/src/lib/components/action-button-group/action-button-group.svelte
@@ -144,7 +144,7 @@
<div class="flex w-full items-center justify-between gap-2">
<span>{button.loading ? button.loadingLabel || button.label : button.label}</span>
{#if button.badge !== undefined}
- <span class="text-muted-foreground text-[10px]">({button.badge})</span>
+ <span class="text-[10px] text-muted-foreground">({button.badge})</span>
{/if}
</div>
{/snippet}
@@ -176,7 +176,7 @@
{#snippet buttonContent(button: ActionButton)}
{#if button.badge !== undefined}
- <span class="text-muted-foreground rounded-full border px-1 py-0.5 text-[10px]">
+ <span class="rounded-full border px-1 py-0.5 text-[10px] text-muted-foreground">
{button.badge}
</span>
{/if}
@@ -207,7 +207,7 @@
<DropdownMenu.Root>
<DropdownMenu.Trigger
class={cn(
- 'border-input bg-background hover:bg-accent hover:text-accent-foreground inline-flex items-center justify-center rounded-md border transition-colors outline-none',
+ 'inline-flex items-center justify-center rounded-md border border-input bg-background transition-colors outline-none hover:bg-accent hover:text-accent-foreground',
size === 'sm' ? 'size-8' : 'size-9'
)}
aria-label={m.common_open_menu()}
diff --git a/frontend/src/lib/components/action-buttons.svelte b/frontend/src/lib/components/action-buttons.svelte
index fcf66794f..f66157f58 100644
--- a/frontend/src/lib/components/action-buttons.svelte
+++ b/frontend/src/lib/components/action-buttons.svelte
@@ -500,14 +500,14 @@
{#snippet ActionsMenu()}
<DropdownMenu.Root>
- <DropdownMenu.Trigger class="bg-background/70 inline-flex size-9 items-center justify-center rounded-lg border">
+ <DropdownMenu.Trigger class="inline-flex size-9 items-center justify-center rounded-lg border bg-background/70">
<span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon />
</DropdownMenu.Trigger>
<DropdownMenu.Content
align="end"
- class="bg-popover/20 z-[var(--arcane-z-surface)] min-w-[180px] rounded-xl border p-1 shadow-lg backdrop-blur-md"
+ class="z-[var(--arcane-z-surface)] min-w-[180px] rounded-xl border bg-popover/20 p-1 shadow-lg backdrop-blur-md"
>
<DropdownMenu.Group>
{#if !isRunning && canStart}
diff --git a/frontend/src/lib/components/activity/activity-center-trigger.svelte b/frontend/src/lib/components/activity/activity-center-trigger.svelte
index 4c48fd7cb..216ba054c 100644
--- a/frontend/src/lib/components/activity/activity-center-trigger.svelte
+++ b/frontend/src/lib/components/activity/activity-center-trigger.svelte
@@ -39,10 +39,10 @@
title={m.activity_center_open()}
aria-label={m.activity_center_open()}
class={cn(
- 'group focus-visible:ring-ring relative flex items-center transition-colors focus-visible:ring-2 focus-visible:outline-hidden',
+ 'group relative flex items-center transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden',
collapsed
? 'mx-auto h-9 w-9 justify-center rounded-xl'
- : 'text-sidebar-foreground/80 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground h-8 w-full rounded-md px-2',
+ : 'h-8 w-full rounded-md px-2 text-sidebar-foreground/80 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
className
)}
>
@@ -69,7 +69,7 @@
</span>
{:else if isActive}
<span
- class="bg-primary text-primary-foreground ring-sidebar absolute -top-0.5 -right-0.5 flex min-w-4 items-center justify-center rounded-full px-1 text-[10px] leading-4 font-bold tabular-nums ring-2"
+ class="absolute -top-0.5 -right-0.5 flex min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] leading-4 font-bold text-primary-foreground tabular-nums ring-2 ring-sidebar"
>
{activeCount > 9 ? m.activity_count_many() : activeCount}
</span>
@@ -82,7 +82,7 @@
title={m.activity_center_open()}
aria-label={m.activity_center_open()}
class={cn(
- 'text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:ring-ring relative flex items-center gap-3 rounded-lg transition-colors focus-visible:ring-2 focus-visible:outline-hidden',
+ 'relative flex items-center gap-3 rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden',
mobile
? 'w-full px-4 py-3 text-sm font-medium'
: collapsed
@@ -97,7 +97,7 @@
<span
aria-live="polite"
aria-atomic="true"
- class="bg-primary text-primary-foreground absolute -top-2 -right-2 flex min-w-4 items-center justify-center rounded-full px-1 text-[10px] leading-4 font-bold tabular-nums"
+ class="absolute -top-2 -right-2 flex min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] leading-4 font-bold text-primary-foreground tabular-nums"
>
{activeCount > 9 ? m.activity_count_many() : activeCount}
</span>
@@ -106,7 +106,7 @@
{#if !collapsed || mobile}
<span class="min-w-0 flex-1 truncate text-left">{m.activity_center_title()}</span>
{#if activeCount > 0}
- <span class="text-primary text-xs font-semibold tabular-nums">{m.activity_active_count({ count: activeCount })}</span>
+ <span class="text-xs font-semibold text-primary tabular-nums">{m.activity_active_count({ count: activeCount })}</span>
{/if}
{/if}
</button>
diff --git a/frontend/src/lib/components/activity/activity-center.svelte b/frontend/src/lib/components/activity/activity-center.svelte
index d16f4808b..0d380763a 100644
--- a/frontend/src/lib/components/activity/activity-center.svelte
+++ b/frontend/src/lib/components/activity/activity-center.svelte
@@ -64,17 +64,17 @@
contentClass="w-[min(94vw,760px)] sm:max-w-[760px]"
class="flex min-h-0 flex-1 flex-col pt-3 pb-0"
>
- <div class="border-border/60 flex flex-wrap items-center justify-between gap-3 border-b px-4 py-3">
+ <div class="flex flex-wrap items-center justify-between gap-3 border-b border-border/60 px-4 py-3">
<div class="flex min-w-0 items-center gap-2">
{#if activityStore.activeCount > 0}
- <span class="bg-primary/10 text-primary rounded-md px-2 py-1 text-xs font-semibold tabular-nums">
+ <span class="rounded-md bg-primary/10 px-2 py-1 text-xs font-semibold text-primary tabular-nums">
{m.activity_active_count({ count: activityStore.activeCount })}
</span>
{/if}
</div>
<div class="flex items-center gap-2">
- <div class="bg-muted/40 inline-flex rounded-md p-0.5">
+ <div class="inline-flex rounded-md bg-muted/40 p-0.5">
{#each filters as filter (filter)}
<button
type="button"
@@ -95,7 +95,7 @@
onclick={() => activityStore.refresh()}
title={m.common_refresh()}
aria-label={m.common_refresh()}
- class="text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:ring-ring flex size-8 items-center justify-center rounded-md transition-colors focus-visible:ring-2 focus-visible:outline-hidden"
+ class="flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden"
>
<RefreshIcon class={cn('size-4', activityStore.loading && 'animate-spin')} aria-hidden="true" />
</button>
@@ -105,7 +105,7 @@
onclick={clearHistoryInternal}
title={m.activity_clear_history()}
aria-label={m.activity_clear_history()}
- class="text-muted-foreground hover:bg-destructive/10 hover:text-destructive focus-visible:ring-ring flex size-8 items-center justify-center rounded-md transition-colors focus-visible:ring-2 focus-visible:outline-hidden"
+ class="flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden"
>
<TrashIcon class="size-4" aria-hidden="true" />
</button>
@@ -115,8 +115,8 @@
<div class="min-h-[68vh] flex-1 overflow-y-auto">
{#if activityStore.environmentFailures.length > 0}
- <div class="border-border/60 bg-muted/25 border-b px-4 py-3">
- <div class="text-muted-foreground flex items-start gap-2 text-xs">
+ <div class="border-b border-border/60 bg-muted/25 px-4 py-3">
+ <div class="flex items-start gap-2 text-xs text-muted-foreground">
<AlertTriangleIcon class="mt-0.5 size-4 shrink-0 text-amber-500" aria-hidden="true" />
<div class="min-w-0 flex-1 space-y-1">
{#each activityStore.environmentFailures as failure (failure.environmentId)}
@@ -128,7 +128,7 @@
<button
type="button"
onclick={() => activityStore.retryStream()}
- class="text-primary hover:text-primary/80 shrink-0 text-xs font-medium underline"
+ class="shrink-0 text-xs font-medium text-primary underline hover:text-primary/80"
>
{m.common_retry()}
</button>
@@ -139,16 +139,16 @@
{#if activityStore.loading && activityStore.activities.length === 0}
<div class="flex min-h-96 items-center justify-center p-6 text-center">
<div class="space-y-2">
- <ActivityIcon class="text-muted-foreground mx-auto size-8 animate-pulse" aria-hidden="true" />
- <p class="text-muted-foreground text-sm">{m.common_loading()}</p>
+ <ActivityIcon class="mx-auto size-8 animate-pulse text-muted-foreground" aria-hidden="true" />
+ <p class="text-sm text-muted-foreground">{m.common_loading()}</p>
</div>
</div>
{:else if activityStore.filteredActivities.length === 0}
<div class="flex min-h-96 items-center justify-center p-6 text-center">
<div class="max-w-56 space-y-2">
- <ActivityIcon class="text-muted-foreground/50 mx-auto size-9" aria-hidden="true" />
+ <ActivityIcon class="mx-auto size-9 text-muted-foreground/50" aria-hidden="true" />
<h3 class="text-sm font-semibold">{m.activity_empty_title()}</h3>
- <p class="text-muted-foreground text-xs leading-relaxed">{m.activity_empty_description()}</p>
+ <p class="text-xs leading-relaxed text-muted-foreground">{m.activity_empty_description()}</p>
</div>
</div>
{:else}
@@ -159,13 +159,13 @@
<div class="group/activity relative">
<Collapsible.Root open={expanded} onOpenChange={(open) => activityStore.setActivityExpanded(activity.id, open)}>
<Collapsible.Trigger
- class="focus-visible:ring-ring block w-full cursor-pointer appearance-none border-0 bg-transparent p-0 text-left focus-visible:ring-2 focus-visible:outline-hidden focus-visible:ring-inset"
+ class="block w-full cursor-pointer appearance-none border-0 bg-transparent p-0 text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden focus-visible:ring-inset"
aria-label={m.activity_center_title()}
>
<ActivityListItem {activity} {expanded} />
</Collapsible.Trigger>
<Collapsible.Content
- class="data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-top-1 data-[state=open]:slide-in-from-top-1 overflow-hidden"
+ class="overflow-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-1 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:slide-in-from-top-1"
>
<ActivityDetailPanel {activity} />
</Collapsible.Content>
@@ -178,7 +178,7 @@
disabled={activityStore.isCancelling(activity.id)}
title={m.activity_cancel()}
aria-label={m.activity_cancel()}
- class="text-muted-foreground hover:bg-destructive/10 hover:text-destructive focus-visible:ring-ring bg-background/70 absolute top-1/2 right-11 z-[var(--arcane-z-raised)] flex size-7 -translate-y-1/2 items-center justify-center rounded-md opacity-0 backdrop-blur-sm transition focus-visible:opacity-100 focus-visible:ring-2 focus-visible:outline-hidden group-hover/activity:opacity-100 disabled:pointer-events-none disabled:opacity-40"
+ class="absolute top-1/2 right-11 z-[var(--arcane-z-raised)] flex size-7 -translate-y-1/2 items-center justify-center rounded-md bg-background/70 text-muted-foreground opacity-0 backdrop-blur-sm transition group-hover/activity:opacity-100 hover:bg-destructive/10 hover:text-destructive focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-40"
>
<CloseIcon class="size-4" aria-hidden="true" />
</button>
diff --git a/frontend/src/lib/components/activity/activity-detail-panel.svelte b/frontend/src/lib/components/activity/activity-detail-panel.svelte
index 2bfac7b01..297158a59 100644
--- a/frontend/src/lib/components/activity/activity-detail-panel.svelte
+++ b/frontend/src/lib/components/activity/activity-detail-panel.svelte
@@ -94,12 +94,12 @@
}
</script>
-<div class="bg-muted/25 border-border/50 border-b px-4 py-3">
- <div class="border-border/60 bg-background overflow-hidden rounded-lg border shadow-sm">
+<div class="border-b border-border/50 bg-muted/25 px-4 py-3">
+ <div class="overflow-hidden rounded-lg border border-border/60 bg-background shadow-sm">
<div class="space-y-4 px-5 py-4">
<div class="flex min-w-0 items-start justify-between gap-4">
<div class="flex min-w-0 items-start gap-3">
- <div class="bg-primary/10 text-primary flex size-9 shrink-0 items-center justify-center rounded-md">
+ <div class="flex size-9 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary">
<IconComponent class="size-4.5" aria-hidden="true" />
</div>
<div class="min-w-0">
@@ -109,7 +109,7 @@
>{activityStatusLabel(liveActivity.status)}</Badge
>
</div>
- <p class="text-muted-foreground mt-1 truncate text-xs">{activityTarget}</p>
+ <p class="mt-1 truncate text-xs text-muted-foreground">{activityTarget}</p>
</div>
</div>
{#if cancelable}
@@ -118,7 +118,7 @@
type="button"
onclick={() => confirmCancelActivity(liveActivity.id)}
disabled={activityStore.isCancelling(liveActivity.id)}
- class="border-border/60 text-muted-foreground hover:bg-destructive/10 hover:text-destructive hover:border-destructive/30 focus-visible:ring-ring inline-flex shrink-0 items-center gap-1.5 rounded-md border px-2.5 py-1.5 text-xs font-medium transition focus-visible:ring-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
+ class="inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border/60 px-2.5 py-1.5 text-xs font-medium text-muted-foreground transition hover:border-destructive/30 hover:bg-destructive/10 hover:text-destructive focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
>
<CloseIcon class="size-3.5" aria-hidden="true" />
{m.activity_cancel()}
@@ -145,48 +145,48 @@
/>
</div>
- <div class="text-muted-foreground flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs">
+ <div class="flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs text-muted-foreground">
<div class="flex items-center gap-1.5">
<span>{m.common_started()}</span>
- <span class="text-foreground font-medium tabular-nums">{formatDateTimeInternal(liveActivity.startedAt)}</span>
+ <span class="font-medium text-foreground tabular-nums">{formatDateTimeInternal(liveActivity.startedAt)}</span>
</div>
<span class="text-border">•</span>
<div class="flex items-center gap-1.5">
<span>{m.common_finished()}</span>
- <span class="text-foreground font-medium tabular-nums">{formatDateTimeInternal(liveActivity.endedAt)}</span>
+ <span class="font-medium text-foreground tabular-nums">{formatDateTimeInternal(liveActivity.endedAt)}</span>
</div>
<span class="text-border">•</span>
<div class="flex items-center gap-1.5">
<span>{m.activity_duration()}</span>
- <span class="text-foreground font-medium tabular-nums">{formatDurationInternal(liveActivity)}</span>
+ <span class="font-medium text-foreground tabular-nums">{formatDurationInternal(liveActivity)}</span>
</div>
{#if sourceEnvironmentName}
<span class="text-border">•</span>
<div class="flex items-center gap-1.5">
<span>{m.activity_source_environment()}</span>
- <span class="text-foreground font-medium">{sourceEnvironmentName}</span>
+ <span class="font-medium text-foreground">{sourceEnvironmentName}</span>
</div>
{/if}
{#if startedByName}
<span class="text-border">•</span>
<div class="flex items-center gap-1.5">
<span>{m.activity_started_by_label()}</span>
- <span class="text-foreground font-medium">{startedByName}</span>
+ <span class="font-medium text-foreground">{startedByName}</span>
</div>
{/if}
</div>
{#if liveActivity.error}
- <div class="border-destructive/30 bg-destructive/10 text-destructive rounded-md border p-3 text-sm">
+ <div class="rounded-md border border-destructive/30 bg-destructive/10 p-3 text-sm text-destructive">
{liveActivity.error}
</div>
{/if}
</div>
- <div class="border-border/60 border-t">
+ <div class="border-t border-border/60">
<div class="flex items-center justify-between px-5 py-2.5">
<div class="flex items-center gap-2">
- <TerminalIcon class="text-muted-foreground size-4" aria-hidden="true" />
+ <TerminalIcon class="size-4 text-muted-foreground" aria-hidden="true" />
<span class="text-sm font-semibold">{m.activity_output_title()}</span>
</div>
<CopyButton text={outputText} variant="ghost" size="default" class="h-8 px-2 text-xs" tabindex={0}>
@@ -204,7 +204,7 @@
<button
type="button"
onclick={() => activityStore.retryLoadDetail(activity.id)}
- class="text-primary hover:text-primary/80 text-xs underline"
+ class="text-xs text-primary underline hover:text-primary/80"
>
{m.common_retry()}
</button>
diff --git a/frontend/src/lib/components/activity/activity-list-item.svelte b/frontend/src/lib/components/activity/activity-list-item.svelte
index 86d0c25a9..74eede5f1 100644
--- a/frontend/src/lib/components/activity/activity-list-item.svelte
+++ b/frontend/src/lib/components/activity/activity-list-item.svelte
@@ -48,7 +48,7 @@
<div
class={cn(
- 'group border-border/40 hover:bg-muted/30 relative grid w-full grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 border-b px-4 py-3 text-left transition-colors last:border-b-0',
+ 'group relative grid w-full grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 border-b border-border/40 px-4 py-3 text-left transition-colors last:border-b-0 hover:bg-muted/30',
expanded && 'bg-muted/40'
)}
>
@@ -63,7 +63,7 @@
<div
class={cn(
- 'bg-muted/80 text-muted-foreground mt-0.5 flex size-8 items-center justify-center rounded-md',
+ 'mt-0.5 flex size-8 items-center justify-center rounded-md bg-muted/80 text-muted-foreground',
isActive && 'bg-primary/10 text-primary',
expanded && 'bg-primary/10 text-primary'
)}
@@ -74,13 +74,13 @@
<div class="flex min-w-0 items-start justify-between gap-3">
<div class="min-w-0 flex-1">
<div class="flex min-w-0 items-center gap-2">
- <span class="text-foreground truncate text-sm font-semibold">{activityTypeLabel(activity.type)}</span>
+ <span class="truncate text-sm font-semibold text-foreground">{activityTypeLabel(activity.type)}</span>
{#if relativeTime}
- <span class="text-muted-foreground/70 shrink-0 text-[11px]">· {relativeTime}</span>
+ <span class="shrink-0 text-[11px] text-muted-foreground/70">· {relativeTime}</span>
{/if}
</div>
- <div class="text-muted-foreground truncate text-xs">{targetName}</div>
- <div class="text-muted-foreground/80 flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-0.5 text-[11px]">
+ <div class="truncate text-xs text-muted-foreground">{targetName}</div>
+ <div class="flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-0.5 text-[11px] text-muted-foreground/80">
{#if sourceEnvironmentName}
<span class="truncate">{sourceEnvironmentName}</span>
{/if}
@@ -94,11 +94,11 @@
</div>
<div class="space-y-1.5">
- <div class="text-muted-foreground line-clamp-2 text-xs leading-relaxed">{subtitle}</div>
+ <div class="line-clamp-2 text-xs leading-relaxed text-muted-foreground">{subtitle}</div>
{#if isActive && !expanded}
<div class="flex items-center gap-2">
<Progress value={hasProgress ? progressValue : 100} indeterminate={!hasProgress} class="h-1.5 rounded-full" />
- <span class="text-muted-foreground w-9 shrink-0 text-right text-[11px] tabular-nums">
+ <span class="w-9 shrink-0 text-right text-[11px] text-muted-foreground tabular-nums">
{#if hasProgress}
{m.activity_progress_percent({ progress: progressValue })}
{:else}
@@ -110,7 +110,7 @@
</div>
</div>
- <div class="text-muted-foreground mt-1 flex size-6 shrink-0 items-center justify-center">
+ <div class="mt-1 flex size-6 shrink-0 items-center justify-center text-muted-foreground">
<ArrowDownIcon class={cn('size-4 transition-transform duration-200', expanded && 'rotate-180')} aria-hidden="true" />
</div>
</div>
diff --git a/frontend/src/lib/components/agent-command-block.svelte b/frontend/src/lib/components/agent-command-block.svelte
index d1892df17..db7c489fa 100644
--- a/frontend/src/lib/components/agent-command-block.svelte
+++ b/frontend/src/lib/components/agent-command-block.svelte
@@ -15,7 +15,7 @@
<div class="space-y-2">
<div class="text-sm font-medium">{dockerRunLabel}</div>
<div class="relative">
- <pre class="bg-muted overflow-x-auto rounded-md p-3 text-xs {preClass}"><code>{dockerRun}</code></pre>
+ <pre class="overflow-x-auto rounded-md bg-muted p-3 text-xs {preClass}"><code>{dockerRun}</code></pre>
<div class="absolute top-2 right-2">
<CopyButton text={dockerRun} size="icon" class="size-7" />
</div>
@@ -25,7 +25,7 @@
<div class="space-y-2">
<div class="text-sm font-medium">{dockerComposeLabel}</div>
<div class="relative">
- <pre class="bg-muted overflow-x-auto rounded-md p-3 text-xs {preClass}"><code>{dockerCompose}</code></pre>
+ <pre class="overflow-x-auto rounded-md bg-muted p-3 text-xs {preClass}"><code>{dockerCompose}</code></pre>
<div class="absolute top-2 right-2">
<CopyButton text={dockerCompose} size="icon" class="size-7" />
</div>
diff --git a/frontend/src/lib/components/application-theme/application-theme-picker.svelte b/frontend/src/lib/components/application-theme/application-theme-picker.svelte
index 03c46b8f9..5c22556bd 100644
--- a/frontend/src/lib/components/application-theme/application-theme-picker.svelte
+++ b/frontend/src/lib/components/application-theme/application-theme-picker.svelte
@@ -113,7 +113,7 @@
</script>
<RadioGroup.Root class="space-y-3" value={selectedTheme} onValueChange={handleThemeChange}>
- <div class="bg-background/30 overflow-hidden rounded-xl border border-dashed p-2 sm:p-3">
+ <div class="overflow-hidden rounded-xl border border-dashed bg-background/30 p-2 sm:p-3">
<Carousel.Root
class="w-full"
opts={{ align: 'center', loop: true }}
@@ -136,10 +136,10 @@
<Card.Root
variant="outlined"
class={[
- 'border-border/70 bg-card h-full transition-[border-color,background-color,opacity,filter] duration-200',
+ 'h-full border-border/70 bg-card transition-[border-color,background-color,opacity,filter] duration-200',
selectedTheme === theme.value
? 'border-primary bg-primary/5 shadow-sm'
- : 'hover:border-primary/40 opacity-85 saturate-75'
+ : 'opacity-85 saturate-75 hover:border-primary/40'
]}
>
<Card.Content class="flex h-full flex-col gap-4 p-4">
@@ -186,7 +186,7 @@
<div class="size-2 rounded-full" style={`background-color: ${previewAccentColor};`}></div>
<div class="text-sm font-medium">{option.label}</div>
</div>
- <p class="text-muted-foreground text-xs leading-5">{option.description}</p>
+ <p class="text-xs leading-5 text-muted-foreground">{option.description}</p>
</div>
</Card.Content>
</Card.Root>
@@ -196,10 +196,10 @@
{/each}
</Carousel.Content>
<div
- class="from-background/95 via-background/55 pointer-events-none absolute inset-y-2 start-0 z-[var(--arcane-z-raised)] w-10 bg-gradient-to-r to-transparent backdrop-blur-[2px] sm:w-14"
+ class="pointer-events-none absolute inset-y-2 start-0 z-[var(--arcane-z-raised)] w-10 bg-gradient-to-r from-background/95 via-background/55 to-transparent backdrop-blur-[2px] sm:w-14"
></div>
<div
- class="from-background/95 via-background/55 pointer-events-none absolute inset-y-2 end-0 z-[var(--arcane-z-raised)] w-10 bg-gradient-to-l to-transparent backdrop-blur-[2px] sm:w-14"
+ class="pointer-events-none absolute inset-y-2 end-0 z-[var(--arcane-z-raised)] w-10 bg-gradient-to-l from-background/95 via-background/55 to-transparent backdrop-blur-[2px] sm:w-14"
></div>
<Carousel.Previous class="start-3 z-[var(--arcane-z-sticky)] hidden md:inline-flex" />
<Carousel.Next class="end-3 z-[var(--arcane-z-sticky)] hidden md:inline-flex" />
diff --git a/frontend/src/lib/components/arcane-button/arcane-button.svelte b/frontend/src/lib/components/arcane-button/arcane-button.svelte
index 2faf1adb5..a897187a6 100644
--- a/frontend/src/lib/components/arcane-button/arcane-button.svelte
+++ b/frontend/src/lib/components/arcane-button/arcane-button.svelte
@@ -102,7 +102,7 @@
}}
>
{#if type !== undefined && loading}
- <div class="bg-background/30 absolute inset-0 flex items-center justify-center rounded-[inherit] backdrop-blur-[1px]">
+ <div class="absolute inset-0 flex items-center justify-center rounded-[inherit] bg-background/30 backdrop-blur-[1px]">
<Spinner class="size-4" />
</div>
<span class="sr-only">{m.common_loading_label({ label: displayLoadingLabel })}</span>
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte b/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte
index b5e235ee3..4de63789e 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte
@@ -177,7 +177,7 @@
{#if cell.column.id === 'actions'}
<!-- Pinned row actions: a floating chip at the row's end, always present in its own gutter. -->
<div class="flex items-center justify-end py-1 pr-3 pl-2" data-row-select-ignore>
- <div class="bg-card/90 border-border/50 flex items-center gap-0.5 rounded-full border p-0.5 shadow-sm backdrop-blur-sm">
+ <div class="flex items-center gap-0.5 rounded-full border border-border/50 bg-card/90 p-0.5 shadow-sm backdrop-blur-sm">
<FlexRender {cell} />
</div>
</div>
@@ -199,7 +199,7 @@
{#if hasExpand}
<Table.Cell class="w-8 px-2" data-row-select-ignore>
<button
- class="text-muted-foreground hover:text-foreground flex items-center justify-center transition-transform duration-200"
+ class="flex items-center justify-center text-muted-foreground transition-transform duration-200 hover:text-foreground"
class:rotate-90={isExpanded}
onclick={(e) => {
e.stopPropagation();
@@ -256,7 +256,7 @@
class={cn(
'h-full w-full',
unstyled &&
- '[&_tr]:border-border/40! [&_thead]:bg-transparent! [&_thead]:backdrop-blur-none [&_tr]:bg-transparent! [&_tr]:hover:bg-transparent! [&_td]:bg-transparent! [&_tr:hover_td]:bg-transparent! [&_tr[data-state=selected]]:bg-transparent! [&_tr[data-state=selected]_td]:bg-transparent!'
+ '[&_td]:bg-transparent! [&_thead]:bg-transparent! [&_thead]:backdrop-blur-none [&_tr]:border-border/40! [&_tr]:bg-transparent! [&_tr]:hover:bg-transparent! [&_tr:hover_td]:bg-transparent! [&_tr[data-state=selected]]:bg-transparent! [&_tr[data-state=selected]_td]:bg-transparent!'
)}
>
<Table.Root class={shouldVirtualize ? 'table-fixed' : undefined}>
@@ -271,7 +271,7 @@
colspan={header.colSpan}
class={cn(
header.column.id === 'select' && selectCellClasses,
- header.column.id === 'actions' && cn(actionsCellClasses, 'bg-background z-[var(--arcane-z-page-floating)]')
+ header.column.id === 'actions' && cn(actionsCellClasses, 'z-[var(--arcane-z-page-floating)] bg-background')
)}
>
{#if !header.isPlaceholder}
@@ -312,15 +312,15 @@
<Table.Cell colspan={columnsCount - (selectionDisabled ? 0 : 1)} class="py-3 font-medium">
<div class="flex items-center gap-2">
{#if isCollapsed}
- <ArrowRightIcon class="text-muted-foreground size-4" />
+ <ArrowRightIcon class="size-4 text-muted-foreground" />
{:else}
- <ArrowDownIcon class="text-muted-foreground size-4" />
+ <ArrowDownIcon class="size-4 text-muted-foreground" />
{/if}
{#if IconComponent}
- <IconComponent class="text-muted-foreground size-4" />
+ <IconComponent class="size-4 text-muted-foreground" />
{/if}
<span>{group.groupName}</span>
- <span class="text-muted-foreground text-xs font-normal">({group.items.length})</span>
+ <span class="text-xs font-normal text-muted-foreground">({group.items.length})</span>
</div>
</Table.Cell>
</Table.Row>
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte b/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte
index 4449d8e84..31c43007b 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte
@@ -47,14 +47,14 @@
icon={FilterIcon}
customLabel={title}
class={cn(
- 'border-input hover:bg-card/60 h-8 border border-dashed hover:text-inherit',
- selectedValues.size > 0 && 'border-primary/40 bg-primary/10 border-solid text-foreground'
+ 'h-8 border border-dashed border-input hover:bg-card/60 hover:text-inherit',
+ selectedValues.size > 0 && 'border-solid border-primary/40 bg-primary/10 text-foreground'
)}
data-testid={`facet-${title.toLowerCase()}-trigger`}
>
{#if selectedValues.size > 0}
<Separator orientation="vertical" class="mx-1 h-4" />
- <div class="text-muted-foreground flex items-center gap-1 text-xs font-medium">
+ <div class="flex items-center gap-1 text-xs font-medium text-muted-foreground">
{#if selectedValues.size > 2}
<span>{selectedValues.size}</span>
{:else}
@@ -91,18 +91,18 @@
{#if showCheckboxes}
<div
class={cn(
- 'border-primary flex size-4 shrink-0 items-center justify-center rounded-sm border',
+ 'flex size-4 shrink-0 items-center justify-center rounded-sm border border-primary',
isSelected ? 'bg-primary text-primary-foreground' : 'opacity-50 [&_svg]:invisible'
)}
>
- <CheckIcon class="text-foreground size-6" />
+ <CheckIcon class="size-6 text-foreground" />
</div>
{/if}
{#if option.dotClass}
<span class="{option.dotClass} h-2 w-2 shrink-0 rounded-full" aria-hidden="true"></span>
{:else if option.icon}
{@const Icon = option.icon}
- <Icon class="text-muted-foreground shrink-0" />
+ <Icon class="shrink-0 text-muted-foreground" />
{/if}
<span class="truncate">{option.label}</span>
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-header.svelte b/frontend/src/lib/components/arcane-table/arcane-table-header.svelte
index 466820e15..13f6025a4 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-header.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-header.svelte
@@ -45,30 +45,30 @@
tone="ghost"
size="sm"
customLabel={title}
- class="data-[state=open]:bg-accent -ml-3 h-8"
+ class="-ml-3 h-8 data-[state=open]:bg-accent"
>
{#if column.getIsSorted() === 'desc'}
- <ArrowDownIcon class="text-foreground size-4" />
+ <ArrowDownIcon class="size-4 text-foreground" />
{:else if column.getIsSorted() === 'asc'}
- <ArrowUpIcon class="text-foreground size-4" />
+ <ArrowUpIcon class="size-4 text-foreground" />
{:else}
- <ArrowsUpDownIcon class="text-muted-foreground/70 size-4" />
+ <ArrowsUpDownIcon class="size-4 text-muted-foreground/70" />
{/if}
</ArcaneButton>
{/snippet}
</DropdownMenu.Trigger>
<DropdownMenu.Content align="start">
<DropdownMenu.Item onclick={() => column.toggleSorting(false)}>
- <ArrowUpIcon class="text-muted-foreground/70 mr-2 size-4" />
+ <ArrowUpIcon class="mr-2 size-4 text-muted-foreground/70" />
{m.common_sort_asc()}
</DropdownMenu.Item>
<DropdownMenu.Item onclick={() => column.toggleSorting(true)}>
- <ArrowDownIcon class="text-muted-foreground/70 mr-2 size-4" />
+ <ArrowDownIcon class="mr-2 size-4 text-muted-foreground/70" />
{m.common_sort_desc()}
</DropdownMenu.Item>
<DropdownMenu.Separator />
<DropdownMenu.Item onclick={() => column.toggleVisibility(false)}>
- <EyeOffIcon class="text-muted-foreground/70 mr-2 size-4" />
+ <EyeOffIcon class="mr-2 size-4 text-muted-foreground/70" />
{m.common_hide()}
</DropdownMenu.Item>
</DropdownMenu.Content>
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte b/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte
index 833263759..09903dc6d 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte
@@ -84,7 +84,7 @@
</div>
{/snippet}
-<div class="divide-border/30 divide-y">
+<div class="divide-y divide-border/30">
{#if isGrouped && groupedRows}
<div class="space-y-4 py-2">
{#each groupedRows as group (group.groupName)}
@@ -97,11 +97,11 @@
description={`${group.items.length} ${group.items.length === 1 ? 'item' : 'items'}`}
icon={IconComponent}
>
- <div class="divide-border/30 divide-y">
+ <div class="divide-y divide-border/30">
{#each groupRows as row (row.id)}
{@render mobileRow(row)}
{:else}
- <div class="text-muted-foreground flex h-24 items-center justify-center text-center">
+ <div class="flex h-24 items-center justify-center text-center text-muted-foreground">
{m.common_no_results_found()}
</div>
{/each}
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-pagination.svelte b/frontend/src/lib/components/arcane-table/arcane-table-pagination.svelte
index d5d4a5d26..b554fbbe8 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-pagination.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-pagination.svelte
@@ -42,7 +42,7 @@
</script>
<div class="flex w-full flex-col gap-4 px-2 sm:flex-row sm:items-center sm:justify-between">
- <div class="text-muted-foreground order-2 text-sm sm:order-1">
+ <div class="order-2 text-sm text-muted-foreground sm:order-1">
{m.common_showing_of_total({ shown: items.data.length, total: totalItems })}
</div>
<div class="order-1 flex flex-col gap-4 sm:order-2 sm:flex-row sm:items-center sm:space-x-6 lg:space-x-8">
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte b/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
index 3721881d7..28a0bee7d 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
@@ -113,7 +113,7 @@
<div class={cn('flex flex-wrap items-center gap-2 px-4 py-3', className)}>
<div class="order-1 flex min-w-0 flex-1 items-center gap-2 md:flex-none">
<div class="relative min-w-0 flex-1 md:w-64 md:flex-none">
- <SearchIcon class="text-muted-foreground pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2" />
+ <SearchIcon class="pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground" />
<Input
placeholder={m.common_search()}
value={(table.state.globalFilter as string) ?? ''}
@@ -139,7 +139,7 @@
<FilterIcon class="size-4" />
{#if activeFilterCount > 0}
<span
- class="bg-primary text-primary-foreground absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full text-[10px] font-medium"
+ class="absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-primary text-[10px] font-medium text-primary-foreground"
>
{activeFilterCount}
</span>
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte b/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte
index 35f4883bd..43b39a67f 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte
@@ -28,7 +28,7 @@
tone="ghost"
icon={EyeOnIcon}
customLabel={m.common_view()}
- class="border-input hover:bg-card/60 border hover:text-inherit"
+ class="border border-input hover:bg-card/60 hover:text-inherit"
/>
{/snippet}
</DropdownMenu.Trigger>
diff --git a/frontend/src/lib/components/arcane-table/arcane-table.svelte b/frontend/src/lib/components/arcane-table/arcane-table.svelte
index 799293c97..4726d8eb7 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table.svelte
@@ -711,7 +711,7 @@
<div
bind:this={desktopScrollEl}
- class="bg-background/80 [isolation:isolate] hidden h-full min-h-0 flex-1 overflow-auto md:block"
+ class="[isolation:isolate] hidden h-full min-h-0 flex-1 overflow-auto bg-background/80 md:block"
>
<ArcaneTableDesktopView
{table}
@@ -734,9 +734,9 @@
/>
</div>
- <div class="bg-background/80 [isolation:isolate] block flex-1 overflow-auto md:hidden">
+ <div class="[isolation:isolate] block flex-1 overflow-auto bg-background/80 md:hidden">
{#if unstyled}
- <div class="divide-border/40 divide-y">
+ <div class="divide-y divide-border/40">
{@render MobileViewSnippet()}
</div>
{:else}
@@ -745,7 +745,7 @@
</div>
{#if !withoutPagination}
- <div class="border-border/50 shrink-0 border-t px-4 py-3">
+ <div class="shrink-0 border-t border-border/50 px-4 py-3">
{@render PaginationSnippet()}
</div>
{/if}
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 9c7742c15..dd30f2296 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
@@ -113,18 +113,18 @@
{#if field.type === 'badge' && field.badgeVariant}
<Badge variant={field.badgeVariant} size="sm" minWidth="20">{String(value)}</Badge>
{:else if field.type === 'mono'}
- <span class={isCompact ? 'text-muted-foreground truncate font-mono text-xs leading-tight' : 'font-mono text-xs'}>{value}</span
+ <span class={isCompact ? 'truncate font-mono text-xs leading-tight text-muted-foreground' : 'font-mono text-xs'}>{value}</span
>
{:else if field.type === 'component' && field.component}
{#if isCompact}
- <span class="text-muted-foreground min-w-0 flex-1 text-xs leading-tight">
+ <span class="min-w-0 flex-1 text-xs leading-tight text-muted-foreground">
{@render field.component(value)}
</span>
{:else}
{@render field.component(value)}
{/if}
{:else if isCompact}
- <span class="text-muted-foreground min-w-0 flex-1 truncate text-xs leading-tight">
+ <span class="min-w-0 flex-1 truncate text-xs leading-tight text-muted-foreground">
{value}
</span>
{:else}
@@ -176,7 +176,7 @@
{title(item)}
</h3>
{#if hasSubtitle}
- <p class={cn('text-muted-foreground mt-0.5 truncate font-mono', compact ? 'text-[10px]' : 'text-xs')}>
+ <p class={cn('mt-0.5 truncate font-mono text-muted-foreground', compact ? 'text-[10px]' : 'text-xs')}>
{subtitleValue}
</p>
{/if}
@@ -216,7 +216,7 @@
</div>
{/if}
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-[11px] font-medium tracking-wide uppercase">
+ <div class="text-[11px] font-medium tracking-wide text-muted-foreground uppercase">
{field.label}
</div>
<div class="truncate text-sm leading-snug font-medium">
@@ -232,7 +232,7 @@
{@const value = field.getValue(item)}
{#if value !== null && value !== undefined}
<div class="flex items-baseline gap-2">
- <span class="text-muted-foreground text-[11px] font-semibold tracking-wide uppercase">{field.label}:</span>
+ <span class="text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">{field.label}:</span>
{@render FieldValue(field, value, true)}
</div>
{/if}
@@ -250,12 +250,12 @@
{@const footerValue = footer.getValue(item)}
{#if footerValue}
{@const FooterIcon = footer.icon}
- <Card.Footer class="bg-muted/30 border-border/40 flex items-center gap-2.5 border-t px-3.5 py-2.5!">
- <FooterIcon class="text-muted-foreground size-4" />
- <span class="text-muted-foreground text-[11px] font-medium tracking-wide uppercase">
+ <Card.Footer class="flex items-center gap-2.5 border-t border-border/40 bg-muted/30 px-3.5 py-2.5!">
+ <FooterIcon class="size-4 text-muted-foreground" />
+ <span class="text-[11px] font-medium tracking-wide text-muted-foreground uppercase">
{footer.label}
</span>
- <span class="text-foreground ml-auto font-mono text-xs font-medium">
+ <span class="ml-auto font-mono text-xs font-medium text-foreground">
{footerValue}
</span>
</Card.Footer>
diff --git a/frontend/src/lib/components/arcane-table/cells/relative-time-cell.svelte b/frontend/src/lib/components/arcane-table/cells/relative-time-cell.svelte
index b11b23afe..85c8b6dfd 100644
--- a/frontend/src/lib/components/arcane-table/cells/relative-time-cell.svelte
+++ b/frontend/src/lib/components/arcane-table/cells/relative-time-cell.svelte
@@ -22,5 +22,5 @@
<ArcaneTooltip.Content>{formatDateTime(date, { includeSeconds: true })}</ArcaneTooltip.Content>
</ArcaneTooltip.Root>
{:else}
- <span class="text-muted-foreground text-sm">{m.common_na()}</span>
+ <span class="text-sm text-muted-foreground">{m.common_na()}</span>
{/if}
diff --git a/frontend/src/lib/components/arcane-table/table-empty.svelte b/frontend/src/lib/components/arcane-table/table-empty.svelte
index 7af4c7ade..f53209525 100644
--- a/frontend/src/lib/components/arcane-table/table-empty.svelte
+++ b/frontend/src/lib/components/arcane-table/table-empty.svelte
@@ -9,9 +9,9 @@
<Empty.Root class={className} role="status" aria-live="polite">
<Empty.Header>
<Empty.Media variant="icon">
- <FolderXIcon class="text-muted-foreground/60 size-10" />
+ <FolderXIcon class="size-10 text-muted-foreground/60" />
</Empty.Media>
<Empty.Title class="text-lg font-semibold">{m.common_no_results_found()}</Empty.Title>
- <Empty.Description class="text-muted-foreground text-sm">{m.common_no_results_hint()}</Empty.Description>
+ <Empty.Description class="text-sm text-muted-foreground">{m.common_no_results_hint()}</Empty.Description>
</Empty.Header>
</Empty.Root>
diff --git a/frontend/src/lib/components/arcane-tooltip/arcane-tooltip-content.svelte b/frontend/src/lib/components/arcane-tooltip/arcane-tooltip-content.svelte
index 17a10a6c0..f31fbe9fd 100644
--- a/frontend/src/lib/components/arcane-tooltip/arcane-tooltip-content.svelte
+++ b/frontend/src/lib/components/arcane-tooltip/arcane-tooltip-content.svelte
@@ -29,7 +29,7 @@
{sideOffset}
{side}
class={cn(
- 'bg-popover/90 border-border/50 w-fit max-w-[min(calc(100vw-2rem),320px)] px-3 py-1.5 text-xs text-balance shadow-lg backdrop-blur-md',
+ 'w-fit max-w-[min(calc(100vw-2rem),320px)] border-border/50 bg-popover/90 px-3 py-1.5 text-xs text-balance shadow-lg backdrop-blur-md',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/badges/port-badge.svelte b/frontend/src/lib/components/badges/port-badge.svelte
index 5e4825c02..faa627680 100644
--- a/frontend/src/lib/components/badges/port-badge.svelte
+++ b/frontend/src/lib/components/badges/port-badge.svelte
@@ -95,7 +95,7 @@
</script>
{#if allPorts.length === 0}
- <span class="text-muted-foreground text-xs">{m.containers_no_ports()}</span>
+ <span class="text-xs text-muted-foreground">{m.containers_no_ports()}</span>
{:else}
<div class="flex gap-1.5 {wrap ? 'flex-wrap' : 'flex-nowrap'}">
{#each published as p, i (i)}
diff --git a/frontend/src/lib/components/category-index-page.svelte b/frontend/src/lib/components/category-index-page.svelte
index d51f1440c..c39168efa 100644
--- a/frontend/src/lib/components/category-index-page.svelte
+++ b/frontend/src/lib/components/category-index-page.svelte
@@ -81,13 +81,13 @@
<div class="flex items-center justify-between gap-4">
<div class="flex min-w-64 flex-1 items-center gap-3 sm:gap-4">
<div
- class="bg-primary/10 text-primary ring-primary/20 flex size-8 shrink-0 items-center justify-center rounded-lg ring-1 sm:size-10"
+ class="flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary ring-1 ring-primary/20 sm:size-10"
>
<HeaderIcon class="size-4 sm:size-5" />
</div>
<div class="min-w-0">
<h1 class="text-3xl font-semibold tracking-tight">{title}</h1>
- <p class="text-muted-foreground mt-1 text-sm sm:text-base">{subtitle}</p>
+ <p class="mt-1 text-sm text-muted-foreground sm:text-base">{subtitle}</p>
</div>
</div>
<div class="flex items-center gap-3">
@@ -139,16 +139,16 @@
<div class="flex items-start justify-between gap-3">
<div class="flex min-w-0 flex-1 items-start gap-3 sm:gap-4">
<div
- class="bg-primary/5 text-primary ring-primary/10 group-hover:bg-primary/10 flex size-10 shrink-0 items-center justify-center rounded-lg ring-1 transition-colors sm:size-12"
+ class="flex size-10 shrink-0 items-center justify-center rounded-lg bg-primary/5 text-primary ring-1 ring-primary/10 transition-colors group-hover:bg-primary/10 sm:size-12"
>
<Icon class="size-5 sm:size-6" />
</div>
<div class="min-w-0 flex-1">
<h2 class="text-sm leading-tight font-semibold sm:text-base">{category.title}</h2>
- <p class="text-muted-foreground mt-1 text-xs leading-relaxed sm:text-sm">{category.description}</p>
+ <p class="mt-1 text-xs leading-relaxed text-muted-foreground sm:text-sm">{category.description}</p>
</div>
</div>
- <ArrowRightIcon class="text-muted-foreground group-hover:text-foreground mt-1 size-4 shrink-0 transition-colors" />
+ <ArrowRightIcon class="mt-1 size-4 shrink-0 text-muted-foreground transition-colors group-hover:text-foreground" />
</div>
</button>
</Card>
@@ -164,14 +164,14 @@
{#if categorySearch.isSearching}
<div class="py-8 text-center sm:py-12">
- <Spinner class="text-primary mx-auto mb-3 size-8 sm:mb-4 sm:size-12" />
- <p class="text-muted-foreground text-sm sm:text-base">{searchingLabel}</p>
+ <Spinner class="mx-auto mb-3 size-8 text-primary sm:mb-4 sm:size-12" />
+ <p class="text-sm text-muted-foreground sm:text-base">{searchingLabel}</p>
</div>
{:else if categorySearch.searchResults.length === 0}
<div class="py-8 text-center sm:py-12">
- <SearchIcon class="text-muted-foreground mx-auto mb-3 size-8 sm:mb-4 sm:size-12" />
+ <SearchIcon class="mx-auto mb-3 size-8 text-muted-foreground sm:mb-4 sm:size-12" />
<h3 class="mb-2 text-base font-medium sm:text-lg">{noResultsTitle}</h3>
- <p class="text-muted-foreground text-sm sm:text-base">{noResultsDescription}</p>
+ <p class="text-sm text-muted-foreground sm:text-base">{noResultsDescription}</p>
</div>
{:else}
<div class="space-y-4 sm:space-y-6">
@@ -181,10 +181,10 @@
<div class="border-b p-4 sm:p-6">
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
- <Icon class="text-primary size-4 shrink-0 sm:size-5" />
+ <Icon class="size-4 shrink-0 text-primary sm:size-5" />
<div>
<h3 class="text-base font-semibold sm:text-lg">{result.title}</h3>
- <p class="text-muted-foreground text-xs sm:text-sm">{result.description}</p>
+ <p class="text-xs text-muted-foreground sm:text-sm">{result.description}</p>
</div>
</div>
<ArcaneButton
@@ -201,31 +201,31 @@
<!-- Show matching items with descriptions -->
{#if result.matchingItems && result.matchingItems.length > 0}
<div class="space-y-3 p-4 sm:p-6">
- <h4 class="text-muted-foreground mb-3 text-sm font-medium">{matchingItemsLabel}</h4>
+ <h4 class="mb-3 text-sm font-medium text-muted-foreground">{matchingItemsLabel}</h4>
{#each result.matchingItems as item (item.key)}
- <div class="bg-background/60 border-primary/20 rounded-md border-l-2 p-3">
+ <div class="rounded-md border-l-2 border-primary/20 bg-background/60 p-3">
<div class="flex items-start justify-between gap-3">
<div class="min-w-0 flex-1">
<h5 class="text-sm font-medium">{item.label}</h5>
{#if item.description}
- <p class="text-muted-foreground mt-1 text-xs">{item.description}</p>
+ <p class="mt-1 text-xs text-muted-foreground">{item.description}</p>
{/if}
{#if item.keywords && item.keywords.length > 0}
<div class="mt-2 flex flex-wrap gap-1">
{#each item.keywords.slice(0, 6) as keyword (keyword)}
- <span class="bg-muted/50 text-muted-foreground rounded px-2 py-0.5 text-xs">
+ <span class="rounded bg-muted/50 px-2 py-0.5 text-xs text-muted-foreground">
{keyword}
</span>
{/each}
{#if item.keywords.length > 6}
- <span class="text-muted-foreground px-2 py-0.5 text-xs">
+ <span class="px-2 py-0.5 text-xs text-muted-foreground">
{@render moreKeywords(item.keywords.length - 6)}
</span>
{/if}
</div>
{/if}
</div>
- <div class="bg-muted/30 text-muted-foreground shrink-0 rounded px-2 py-1 font-mono text-xs">
+ <div class="shrink-0 rounded bg-muted/30 px-2 py-1 font-mono text-xs text-muted-foreground">
{item.type}
</div>
</div>
diff --git a/frontend/src/lib/components/code-editor/analysis/types.ts b/frontend/src/lib/components/code-editor/analysis/types.ts
index 7c958a5db..5b6cb35ff 100644
--- a/frontend/src/lib/components/code-editor/analysis/types.ts
+++ b/frontend/src/lib/components/code-editor/analysis/types.ts
@@ -1,7 +1,16 @@
import type { Diagnostic } from '@codemirror/lint';
export type CodeLanguage =
- 'yaml' | 'env' | 'json' | 'toml' | 'dockerfile' | 'shell' | 'javascript' | 'typescript' | 'markdown' | 'plaintext';
+ | 'yaml'
+ | 'env'
+ | 'json'
+ | 'toml'
+ | 'dockerfile'
+ | 'shell'
+ | 'javascript'
+ | 'typescript'
+ | 'markdown'
+ | 'plaintext';
export type CodeValidationMode = 'compose' | 'env' | 'none';
export type SchemaStatus = 'ready' | 'cached' | 'unavailable';
diff --git a/frontend/src/lib/components/compose-create-menu.svelte b/frontend/src/lib/components/compose-create-menu.svelte
index 342423f19..7a2e13b61 100644
--- a/frontend/src/lib/components/compose-create-menu.svelte
+++ b/frontend/src/lib/components/compose-create-menu.svelte
@@ -115,8 +115,8 @@
<ArcaneTooltip.Content class="arcane-tooltip-content max-w-[280px]">
{#if tooltipVisible}
<p class="mb-1 text-sm font-medium">{tooltipTitle}</p>
- <p class="text-muted-foreground text-xs">{tooltipDescription}</p>
- <p class="bg-muted mt-1.5 inline-block rounded px-1.5 py-0.5 font-mono text-xs">
+ <p class="text-xs text-muted-foreground">{tooltipDescription}</p>
+ <p class="mt-1.5 inline-block rounded bg-muted px-1.5 py-0.5 font-mono text-xs">
{tooltipExample}
</p>
{/if}
diff --git a/frontend/src/lib/components/compose/ComposeEditorWrapper.svelte b/frontend/src/lib/components/compose/ComposeEditorWrapper.svelte
index 7ba7ee27a..54be52675 100644
--- a/frontend/src/lib/components/compose/ComposeEditorWrapper.svelte
+++ b/frontend/src/lib/components/compose/ComposeEditorWrapper.svelte
@@ -56,7 +56,7 @@
</Alert.Root>
{/if}
- <div class="bg-muted flex items-start gap-2 rounded-lg border px-4 py-3 text-sm">
+ <div class="flex items-start gap-2 rounded-lg border bg-muted px-4 py-3 text-sm">
<span>
{#if serviceName}
{isReadOnly
diff --git a/frontend/src/lib/components/compose/docker-run-converter-dialog.svelte b/frontend/src/lib/components/compose/docker-run-converter-dialog.svelte
index 060006f82..595cae231 100644
--- a/frontend/src/lib/components/compose/docker-run-converter-dialog.svelte
+++ b/frontend/src/lib/components/compose/docker-run-converter-dialog.svelte
@@ -75,7 +75,7 @@
</div>
<div class="space-y-2">
- <Label class="text-muted-foreground text-xs">{m.compose_example_commands_label()}</Label>
+ <Label class="text-xs text-muted-foreground">{m.compose_example_commands_label()}</Label>
<div class="space-y-1">
{#each exampleCommands as command (command)}
<ArcaneButton
diff --git a/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte b/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
index b678e66ea..fd6bad7f2 100644
--- a/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
+++ b/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
@@ -36,19 +36,19 @@
>
<Dialog.Header class="space-y-3">
<Dialog.Title class="flex items-start gap-3 text-lg leading-tight font-semibold">
- <AlertIcon class="text-destructive mt-0.5 size-5 shrink-0" />
+ <AlertIcon class="mt-0.5 size-5 shrink-0 text-destructive" />
<span class="min-w-0 break-words">
{$confirmDialogStore.title}
</span>
</Dialog.Title>
</Dialog.Header>
- <div class="text-muted-foreground mt-4 min-w-0 text-sm leading-relaxed break-words whitespace-pre-wrap">
+ <div class="mt-4 min-w-0 text-sm leading-relaxed break-words whitespace-pre-wrap text-muted-foreground">
{$confirmDialogStore.message}
</div>
{#if $confirmDialogStore.checkboxes && $confirmDialogStore.checkboxes.length > 0}
- <div class="border-border mt-6 flex flex-col gap-4 border-t pt-4">
+ <div class="mt-6 flex flex-col gap-4 border-t border-border pt-4">
{#each $confirmDialogStore.checkboxes as checkbox (checkbox.id)}
<div class="flex items-start space-x-3">
{#if checkboxStates[checkbox.id] !== undefined}
@@ -78,7 +78,7 @@
</Label>
{#if checkbox.id === 'files' && checkboxStates[checkbox.id]}
- <div class="text-destructive mt-1 text-xs leading-snug">{m.confirm_remove_project_files_warning()}</div>
+ <div class="mt-1 text-xs leading-snug text-destructive">{m.confirm_remove_project_files_warning()}</div>
{/if}
</div>
</div>
diff --git a/frontend/src/lib/components/deploy-split-button/deploy-split-button.svelte b/frontend/src/lib/components/deploy-split-button/deploy-split-button.svelte
index 67a6b6ab9..5f5887cc3 100644
--- a/frontend/src/lib/components/deploy-split-button/deploy-split-button.svelte
+++ b/frontend/src/lib/components/deploy-split-button/deploy-split-button.svelte
@@ -54,19 +54,19 @@
<DropdownMenu.RadioItem value="missing">
<div class="flex flex-col gap-0.5">
<span class="font-medium">Missing</span>
- <span class="text-muted-foreground text-xs">{m.deploy_pull_policy_missing()}</span>
+ <span class="text-xs text-muted-foreground">{m.deploy_pull_policy_missing()}</span>
</div>
</DropdownMenu.RadioItem>
<DropdownMenu.RadioItem value="always">
<div class="flex flex-col gap-0.5">
<span class="font-medium">{m.common_always()}</span>
- <span class="text-muted-foreground text-xs">{m.deploy_pull_policy_always()}</span>
+ <span class="text-xs text-muted-foreground">{m.deploy_pull_policy_always()}</span>
</div>
</DropdownMenu.RadioItem>
<DropdownMenu.RadioItem value="never">
<div class="flex flex-col gap-0.5">
<span class="font-medium">{m.common_never()}</span>
- <span class="text-muted-foreground text-xs">{m.deploy_pull_policy_never()}</span>
+ <span class="text-xs text-muted-foreground">{m.deploy_pull_policy_never()}</span>
</div>
</DropdownMenu.RadioItem>
</DropdownMenu.RadioGroup>
diff --git a/frontend/src/lib/components/detail-card-empty.svelte b/frontend/src/lib/components/detail-card-empty.svelte
index f9bc0a3dd..97deb1554 100644
--- a/frontend/src/lib/components/detail-card-empty.svelte
+++ b/frontend/src/lib/components/detail-card-empty.svelte
@@ -7,6 +7,6 @@
let { message, padding = 'py-12' }: Props = $props();
</script>
-<div class="text-muted-foreground rounded-lg border border-dashed {padding} text-center">
+<div class="rounded-lg border border-dashed text-muted-foreground {padding} text-center">
<div class="text-sm">{message}</div>
</div>
diff --git a/frontend/src/lib/components/dialogs/create-container-dialog.svelte b/frontend/src/lib/components/dialogs/create-container-dialog.svelte
index f18d1c1fb..4bd09e830 100644
--- a/frontend/src/lib/components/dialogs/create-container-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/create-container-dialog.svelte
@@ -301,9 +301,9 @@
class={$inputs.containerName.error ? 'border-destructive' : ''}
/>
{#if $inputs.containerName.error}
- <p class="text-destructive mt-1 text-xs">{$inputs.containerName.error}</p>
+ <p class="mt-1 text-xs text-destructive">{$inputs.containerName.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">{m.container_name_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.container_name_description()}</p>
</div>
<div class="space-y-3">
@@ -319,9 +319,9 @@
class={$inputs.image.error ? 'border-destructive' : ''}
/>
{#if $inputs.image.error}
- <p class="text-destructive mt-1 text-xs">{$inputs.image.error}</p>
+ <p class="mt-1 text-xs text-destructive">{$inputs.image.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">{m.container_image_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.container_image_description()}</p>
</div>
</div>
@@ -421,7 +421,7 @@
{#each envVars as env, index (index)}
<div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3">
<Input type="text" placeholder="KEY" bind:value={env.key} disabled={isLoading} class="flex-1" />
- <span class="text-muted-foreground hidden font-mono sm:inline">=</span>
+ <span class="hidden font-mono text-muted-foreground sm:inline">=</span>
<Input type="text" placeholder="value" bind:value={env.value} disabled={isLoading} class="flex-1" />
<ArcaneButton
action="base"
@@ -429,7 +429,7 @@
size="icon"
onclick={() => removeEnvVar(index)}
disabled={isLoading || envVars.length <= 1}
- class="text-destructive hover:text-destructive shrink-0"
+ class="shrink-0 text-destructive hover:text-destructive"
icon={CloseIcon}
/>
</div>
@@ -460,9 +460,9 @@
class={$inputs.environmentVars.error ? 'border-destructive' : ''}
/>
{#if $inputs.environmentVars.error}
- <p class="text-destructive text-xs">{$inputs.environmentVars.error}</p>
+ <p class="text-xs text-destructive">{$inputs.environmentVars.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">{m.env_text_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.env_text_description()}</p>
</div>
</div>
</div>
@@ -480,14 +480,14 @@
<div class="space-y-2 rounded-lg border p-3 sm:space-y-0 sm:border-0 sm:p-0">
<div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3">
<div class="flex flex-1 items-center gap-2">
- <div class="text-muted-foreground min-w-12 text-xs whitespace-nowrap sm:text-sm">
+ <div class="min-w-12 text-xs whitespace-nowrap text-muted-foreground sm:text-sm">
{m.port_label_host()}
</div>
<Input type="text" placeholder="8080" bind:value={mapping.host} disabled={isLoading} class="flex-1" />
</div>
- <span class="text-muted-foreground hidden sm:inline">→</span>
+ <span class="hidden text-muted-foreground sm:inline">→</span>
<div class="flex flex-1 items-center gap-2">
- <div class="text-muted-foreground min-w-16 text-xs whitespace-nowrap sm:min-w-20 sm:text-sm">
+ <div class="min-w-16 text-xs whitespace-nowrap text-muted-foreground sm:min-w-20 sm:text-sm">
{m.port_label_container()}
</div>
<Input
@@ -513,7 +513,7 @@
size="icon"
onclick={() => removePortMapping(index)}
disabled={isLoading || portMappings.length <= 1}
- class="text-destructive hover:text-destructive shrink-0"
+ class="shrink-0 text-destructive hover:text-destructive"
icon={CloseIcon}
/>
</div>
@@ -574,7 +574,7 @@
disabled={isLoading}
class="flex-1"
/>
- <span class="text-muted-foreground hidden sm:inline">:</span>
+ <span class="hidden text-muted-foreground sm:inline">:</span>
<Input
type="text"
placeholder={m.container_path()}
@@ -588,7 +588,7 @@
size="icon"
onclick={() => removeVolumeMount(index)}
disabled={isLoading || volumeMounts.length <= 1}
- class="text-destructive hover:text-destructive shrink-0 self-end sm:self-auto"
+ class="shrink-0 self-end text-destructive hover:text-destructive sm:self-auto"
icon={CloseIcon}
/>
</div>
@@ -624,9 +624,9 @@
class={$inputs.volumes.error ? 'border-destructive' : ''}
/>
{#if $inputs.volumes.error}
- <p class="text-destructive text-xs">{$inputs.volumes.error}</p>
+ <p class="text-xs text-destructive">{$inputs.volumes.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">{m.volumes_text_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.volumes_text_description()}</p>
</div>
</div>
</div>
@@ -701,7 +701,7 @@
disabled={isLoading}
bind:value={$inputs.restartMaxRetries.value}
/>
- <p class="text-muted-foreground text-xs">{m.max_retry_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.max_retry_description()}</p>
</div>
{/if}
</div>
@@ -720,9 +720,9 @@
class={$inputs.labels.error ? 'border-destructive' : ''}
/>
{#if $inputs.labels.error}
- <p class="text-destructive text-xs">{$inputs.labels.error}</p>
+ <p class="text-xs text-destructive">{$inputs.labels.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">{m.containers_labels_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.containers_labels_description()}</p>
</div>
</div>
</div>
diff --git a/frontend/src/lib/components/dialogs/docker-info-dialog.svelte b/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
index 3d51b692c..72e308c72 100644
--- a/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
@@ -65,7 +65,7 @@
{:else}
<div class="flex min-h-56 flex-col items-center justify-center gap-3 pt-4">
<Spinner class="size-5" />
- <p class="text-muted-foreground text-sm">{m.common_loading()}</p>
+ <p class="text-sm text-muted-foreground">{m.common_loading()}</p>
</div>
{/if}
{/snippet}
@@ -120,7 +120,7 @@
{#snippet statsSection(info: DockerInfo)}
<div>
- <h3 class="text-muted-foreground mb-2 text-xs font-semibold tracking-wider uppercase">
+ <h3 class="mb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_stats_section()}
</h3>
<div class="grid gap-3 sm:grid-cols-4">
@@ -134,27 +134,27 @@
{#snippet resourcesSection(info: DockerInfo)}
<div>
- <h3 class="text-muted-foreground mb-2 text-xs font-semibold tracking-wider uppercase">
+ <h3 class="mb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_resources_section()}
</h3>
<div class="grid gap-3 sm:grid-cols-4">
<div class="rounded-lg border p-3">
- <div class="text-muted-foreground mb-1 text-[10px] tracking-tight uppercase">{m.common_cpus()}</div>
+ <div class="mb-1 text-[10px] tracking-tight text-muted-foreground uppercase">{m.common_cpus()}</div>
<div class="flex items-center gap-2">
<Badge variant="outline" class="text-sm font-semibold">{info.NCPU ?? 0}</Badge>
- <span class="text-muted-foreground text-[10px]">cores</span>
+ <span class="text-[10px] text-muted-foreground">cores</span>
</div>
</div>
<div class="rounded-lg border p-3">
- <div class="text-muted-foreground mb-1 text-[10px] tracking-tight uppercase">{m.docker_info_memory_label()}</div>
+ <div class="mb-1 text-[10px] tracking-tight text-muted-foreground uppercase">{m.docker_info_memory_label()}</div>
<Badge variant="outline" class="text-sm font-semibold">{info.MemTotal ? bytes.format(info.MemTotal) : '-'}</Badge>
</div>
<div class="rounded-lg border p-3">
- <div class="text-muted-foreground mb-1 text-[10px] tracking-tight uppercase">{m.docker_info_goroutines()}</div>
+ <div class="mb-1 text-[10px] tracking-tight text-muted-foreground uppercase">{m.docker_info_goroutines()}</div>
<Badge variant="outline" class="text-sm font-semibold">{info.NGoroutines ?? 0}</Badge>
</div>
<div class="rounded-lg border p-3">
- <div class="text-muted-foreground mb-1 text-[10px] tracking-tight uppercase">{m.docker_info_file_descriptors()}</div>
+ <div class="mb-1 text-[10px] tracking-tight text-muted-foreground uppercase">{m.docker_info_file_descriptors()}</div>
<Badge variant="outline" class="text-sm font-semibold">{info.NFd ?? 0}</Badge>
</div>
</div>
@@ -163,7 +163,7 @@
{#snippet systemSection(info: DockerInfo)}
<div class="space-y-2">
- <h3 class="text-muted-foreground text-xs font-semibold tracking-wider uppercase">
+ <h3 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_system_section()}
</h3>
<div class="space-y-1 rounded-lg border p-2.5">
@@ -183,7 +183,7 @@
{#snippet versionSection(info: DockerInfo)}
<div class="space-y-2">
- <h3 class="text-muted-foreground text-xs font-semibold tracking-wider uppercase">
+ <h3 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_version_section()}
</h3>
<div class="space-y-1 rounded-lg border p-2.5">
@@ -191,9 +191,9 @@
{@render infoRow(m.docker_info_api_version_label(), info.apiVersion)}
{@render infoRow(m.docker_info_go_version_label(), info.goVersion)}
<div class="grid grid-cols-[minmax(112px,38%)_minmax(0,1fr)] items-start gap-x-4 gap-y-1">
- <span class="text-muted-foreground text-[10px] tracking-tight uppercase">{m.docker_info_git_commit_label()}</span>
+ <span class="text-[10px] tracking-tight text-muted-foreground uppercase">{m.docker_info_git_commit_label()}</span>
<div class="flex items-center justify-end gap-2">
- <code class="bg-muted rounded px-1.5 py-0.5 text-xs">{info.gitCommit?.slice(0, 8) ?? '-'}</code>
+ <code class="rounded bg-muted px-1.5 py-0.5 text-xs">{info.gitCommit?.slice(0, 8) ?? '-'}</code>
{#if info.gitCommit}
<CopyButton text={info.gitCommit} size="icon" class="size-6" title={m.docker_copy_commit_hash()} />
{/if}
@@ -213,7 +213,7 @@
{#snippet configurationSection(info: DockerInfo)}
<div class="space-y-2">
- <h3 class="text-muted-foreground text-xs font-semibold tracking-wider uppercase">
+ <h3 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.common_configuration()}
</h3>
<div class="space-y-1 rounded-lg border p-2.5">
@@ -233,7 +233,7 @@
{#snippet capabilitiesSection(info: DockerInfo)}
<div class="space-y-2">
- <h3 class="text-muted-foreground text-xs font-semibold tracking-wider uppercase">
+ <h3 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_capabilities_section()}
</h3>
<div class="space-y-1 rounded-lg border p-2.5">
@@ -252,7 +252,7 @@
{#snippet storageDetailsSection(info: DockerInfo)}
<div class="space-y-2">
- <h3 class="text-muted-foreground text-xs font-semibold tracking-wider uppercase">
+ <h3 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_storage_details_section()}
</h3>
<div class="space-y-1 rounded-lg border p-2.5">
@@ -265,7 +265,7 @@
{#snippet networkSection(info: DockerInfo)}
<div class="space-y-2">
- <h3 class="text-muted-foreground text-xs font-semibold tracking-wider uppercase">
+ <h3 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.resource_networks_cap()} & {m.docker_info_proxy_label()}
</h3>
<div class="space-y-1 rounded-lg border p-2.5">
@@ -275,7 +275,7 @@
{@render infoRow(m.docker_info_no_proxy(), info.NoProxy)}
{#if info.DefaultAddressPools && info.DefaultAddressPools.length > 0}
<div>
- <div class="text-muted-foreground mb-1 text-[10px] tracking-tight uppercase">{m.docker_info_address_pools_label()}</div>
+ <div class="mb-1 text-[10px] tracking-tight text-muted-foreground uppercase">{m.docker_info_address_pools_label()}</div>
<div class="flex flex-wrap gap-1">
{#each info.DefaultAddressPools as pool, i (i)}
<Badge variant="outline" size="sm" class="font-mono">{pool.Base}/{pool.Size}</Badge>
@@ -289,7 +289,7 @@
{#snippet securitySection(info: DockerInfo)}
<div class="space-y-2">
- <h3 class="text-muted-foreground text-xs font-semibold tracking-wider uppercase">
+ <h3 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.security_title()} & {m.docker_info_runtimes()}
</h3>
<div class="space-y-2 rounded-lg border p-2.5">
@@ -301,7 +301,7 @@
{#snippet pluginsSection(info: DockerInfo)}
<div class="space-y-2">
- <h3 class="text-muted-foreground text-xs font-semibold tracking-wider uppercase">
+ <h3 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_plugins_section()}
</h3>
<div class="space-y-2 rounded-lg border p-2.5">
@@ -322,7 +322,7 @@
Nodes?: number;
}}
<div class="space-y-2">
- <h3 class="text-muted-foreground text-xs font-semibold tracking-wider uppercase">
+ <h3 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_swarm_section()}
</h3>
<div class="space-y-1 rounded-lg border p-2.5">
@@ -337,7 +337,7 @@
{#snippet labelsSection(info: DockerInfo)}
<div class="space-y-2">
- <h3 class="text-muted-foreground text-xs font-semibold tracking-wider uppercase">
+ <h3 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_labels_section()}
</h3>
<div class="rounded-lg border p-3">
@@ -374,7 +374,7 @@
}
}}
<div class="rounded-lg border p-3 {colors[color].bg}">
- <div class="text-muted-foreground mb-1 text-[10px] tracking-tight uppercase">{label}</div>
+ <div class="mb-1 text-[10px] tracking-tight text-muted-foreground uppercase">{label}</div>
<Badge variant="outline" class="{colors[color].badge} text-base font-semibold tabular-nums">
{value}
</Badge>
@@ -383,12 +383,12 @@
{#snippet tagGroup(label: string, items: string[] | undefined)}
<div>
- <div class="text-muted-foreground mb-1 text-[10px] tracking-tight uppercase">{label}</div>
+ <div class="mb-1 text-[10px] tracking-tight text-muted-foreground uppercase">{label}</div>
<div class="flex flex-wrap gap-1">
{#each items ?? [] as item, i (i)}
<Badge variant="outline" size="sm">{item}</Badge>
{:else}
- <span class="text-muted-foreground text-xs">-</span>
+ <span class="text-xs text-muted-foreground">-</span>
{/each}
</div>
</div>
@@ -396,7 +396,7 @@
{#snippet capRow(label: string, value: boolean | undefined)}
<div class="flex items-center justify-between gap-2">
- <span class="text-muted-foreground text-[10px] tracking-tight uppercase [overflow-wrap:anywhere]">{label}</span>
+ <span class="text-[10px] tracking-tight [overflow-wrap:anywhere] text-muted-foreground uppercase">{label}</span>
<span class="text-[10px] font-medium {value ? 'text-emerald-600 dark:text-emerald-400' : 'text-muted-foreground'}">
{value ? m.common_yes() : m.common_no()}
</span>
@@ -405,7 +405,7 @@
{#snippet infoRow(label: string, value: string | number | undefined | null, mono: boolean = true)}
<div class="grid grid-cols-[minmax(112px,38%)_minmax(0,1fr)] items-start gap-x-4 gap-y-1">
- <span class="text-muted-foreground text-[10px] tracking-tight uppercase">{label}</span>
+ <span class="text-[10px] tracking-tight text-muted-foreground uppercase">{label}</span>
<span class="text-right text-xs [overflow-wrap:anywhere] {mono ? 'font-mono' : ''}">
{value === undefined || value === null || value === '' ? '-' : value}
</span>
diff --git a/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte b/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
index 0214b78f6..370a0ce48 100644
--- a/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
@@ -245,7 +245,7 @@
<div class="hidden" use:openSession aria-hidden="true"></div>
{/if}
<div class="relative">
- <SearchIcon class="text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2" />
+ <SearchIcon class="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" />
<Input
type="text"
placeholder={m.common_search()}
@@ -260,7 +260,7 @@
<button
type="button"
onclick={clearSearch}
- class="text-muted-foreground hover:text-foreground hover:bg-muted absolute top-1/2 right-3 -translate-y-1/2 rounded-sm p-0.5 transition-colors"
+ class="absolute top-1/2 right-3 -translate-y-1/2 rounded-sm p-0.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
title={m.common_clear_search()}
>
<CloseIcon class="size-4" />
@@ -274,11 +274,11 @@
<Spinner class="size-6" />
</div>
{:else if loadError}
- <div class="text-destructive py-10 text-center">
+ <div class="py-10 text-center text-destructive">
<p>{m.error_generic()}</p>
</div>
{:else if environments.length === 0}
- <div class="text-muted-foreground py-10 text-center">
+ <div class="py-10 text-center text-muted-foreground">
<EnvironmentsIcon class="mx-auto mb-4 size-12 opacity-50" />
<p>{m.sidebar_no_environments()}</p>
</div>
@@ -290,7 +290,7 @@
<div
class={cn(
'flex items-center gap-2 rounded-lg border p-1 transition-colors',
- isActive && 'bg-primary/10 border-primary font-medium',
+ isActive && 'border-primary bg-primary/10 font-medium',
!isActive && !isDisabled && 'hover:bg-muted/50',
!isActive && isDisabled && 'opacity-50'
)}
@@ -307,7 +307,7 @@
<div
class={cn(
'flex size-8 shrink-0 items-center justify-center rounded-md border',
- isActive ? 'bg-primary border-primary' : 'border-border'
+ isActive ? 'border-primary bg-primary' : 'border-border'
)}
>
{#if env.id === '0'}
@@ -325,7 +325,7 @@
</button>
<div class="flex shrink-0 items-center gap-2 pr-2">
{#if isActive}
- <span class="text-primary hidden text-xs font-medium sm:inline">
+ <span class="hidden text-xs font-medium text-primary sm:inline">
{m.environments_current_environment()}
</span>
{/if}
diff --git a/frontend/src/lib/components/dialogs/file-browser-dialog.svelte b/frontend/src/lib/components/dialogs/file-browser-dialog.svelte
index cbb9b4d6e..b96f3a48b 100644
--- a/frontend/src/lib/components/dialogs/file-browser-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/file-browser-dialog.svelte
@@ -123,7 +123,7 @@
<span class="ml-1">{normalizedRoot || m.git_sync_browse_root()}</span>
</Button>
{#each pathSegments as segment, index (`${index}-${segment}`)}
- <ArrowRightIcon class="text-muted-foreground size-4" />
+ <ArrowRightIcon class="size-4 text-muted-foreground" />
<Button variant="ghost" size="sm" onclick={() => goToPath(index)} class="h-8 px-2">
{segment}
</Button>
@@ -137,15 +137,15 @@
<Spinner class="size-6" />
</div>
{:else if files.length === 0}
- <div class="text-muted-foreground flex items-center justify-center py-8 text-sm">{m.git_sync_browse_no_files()}</div>
+ <div class="flex items-center justify-center py-8 text-sm text-muted-foreground">{m.git_sync_browse_no_files()}</div>
{:else}
<div class="space-y-1 p-2">
{#if !atRoot}
<button
onclick={goBack}
- class="hover:bg-accent flex w-full items-center gap-2 rounded-md px-3 py-2 text-left transition-colors"
+ class="flex w-full items-center gap-2 rounded-md px-3 py-2 text-left transition-colors hover:bg-accent"
>
- <FolderOpenIcon class="text-muted-foreground size-4" />
+ <FolderOpenIcon class="size-4 text-muted-foreground" />
<span class="text-sm">..</span>
</button>
{/if}
@@ -154,12 +154,12 @@
<button
onclick={() => handleFileClick(file)}
disabled={!canSelect}
- class="hover:bg-accent flex w-full items-center gap-2 rounded-md px-3 py-2 text-left transition-colors disabled:cursor-not-allowed disabled:opacity-50"
+ class="flex w-full items-center gap-2 rounded-md px-3 py-2 text-left transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50"
>
{#if file.type === 'directory'}
<FolderOpenIcon class="size-4 text-blue-500" />
{:else}
- <FileTextIcon class="text-muted-foreground size-4" />
+ <FileTextIcon class="size-4 text-muted-foreground" />
{/if}
<span class="text-sm">{file.name}</span>
{@render fileBadge?.(file)}
diff --git a/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte b/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte
index 291283606..e8c46f8f1 100644
--- a/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte
@@ -83,7 +83,7 @@
type="file"
accept=".json"
onchange={handleFileUpload}
- class="border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-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"
+ class="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50"
/>
</div>
diff --git a/frontend/src/lib/components/dialogs/gitops-sync-dialog.svelte b/frontend/src/lib/components/dialogs/gitops-sync-dialog.svelte
index 381416ce7..f584bd098 100644
--- a/frontend/src/lib/components/dialogs/gitops-sync-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/gitops-sync-dialog.svelte
@@ -351,7 +351,7 @@
{#if loadingBranches}
<div class="flex h-10 items-center gap-2 rounded-md border px-3">
<Spinner class="size-4" />
- <span class="text-muted-foreground text-sm">{m.common_loading()}</span>
+ <span class="text-sm text-muted-foreground">{m.common_loading()}</span>
</div>
{:else if branches.length > 0}
<Select.Root
@@ -371,7 +371,7 @@
<Select.Item value={branch.name} class="truncate">
{branch.name}
{#if branch.isDefault}
- <span class="text-muted-foreground ml-2 text-xs">({m.common_default()})</span>
+ <span class="ml-2 text-xs text-muted-foreground">({m.common_default()})</span>
{/if}
</Select.Item>
{/each}
@@ -401,18 +401,18 @@
</div>
</div>
- <div class="border-border/70 bg-muted/20 grid gap-3 rounded-lg border p-3 sm:grid-cols-[minmax(0,1fr)_8rem]">
+ <div class="grid gap-3 rounded-lg border border-border/70 bg-muted/20 p-3 sm:grid-cols-[minmax(0,1fr)_8rem]">
<div class="grid gap-3 sm:grid-cols-2">
<div class="flex items-start gap-3">
<Switch id="syncDirectorySwitch" bind:checked={$inputs.syncDirectory.value} disabled={lockSyncDirectory} />
<div class="space-y-1">
<Label for="syncDirectorySwitch" class="mb-0 text-sm leading-none font-medium">{m.git_sync_sync_files()}</Label>
- <p class="text-muted-foreground text-xs">{m.git_sync_sync_files_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.git_sync_sync_files_description()}</p>
{#if lockSyncDirectory}
- <p class="text-muted-foreground text-xs italic">{m.git_sync_sync_files_locked_hint()}</p>
+ <p class="text-xs text-muted-foreground italic">{m.git_sync_sync_files_locked_hint()}</p>
{/if}
{#if $inputs.syncDirectory.error}
- <p class="text-destructive text-xs font-medium">{$inputs.syncDirectory.error}</p>
+ <p class="text-xs font-medium text-destructive">{$inputs.syncDirectory.error}</p>
{/if}
</div>
</div>
@@ -421,9 +421,9 @@
<Switch id="autoSyncSwitch" bind:checked={$inputs.autoSync.value} />
<div class="space-y-1">
<Label for="autoSyncSwitch" class="mb-0 text-sm leading-none font-medium">{m.git_sync_auto_sync()}</Label>
- <p class="text-muted-foreground text-xs">{m.common_auto_sync_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.common_auto_sync_description()}</p>
{#if $inputs.autoSync.error}
- <p class="text-destructive text-xs font-medium">{$inputs.autoSync.error}</p>
+ <p class="text-xs font-medium text-destructive">{$inputs.autoSync.error}</p>
{/if}
</div>
</div>
@@ -434,7 +434,7 @@
<Label for="syncInterval" class="mb-0 text-sm leading-none font-medium">
{m.git_sync_sync_interval()}
</Label>
- <p class="text-muted-foreground text-xs">{m.git_sync_sync_interval_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.git_sync_sync_interval_description()}</p>
</div>
<Input
id="syncInterval"
@@ -444,7 +444,7 @@
aria-invalid={$inputs.syncInterval.error ? 'true' : undefined}
/>
{#if $inputs.syncInterval.error}
- <p class="text-destructive text-xs font-medium">{$inputs.syncInterval.error}</p>
+ <p class="text-xs font-medium text-destructive">{$inputs.syncInterval.error}</p>
{/if}
</div>
</div>
@@ -452,7 +452,7 @@
<Collapsible.Root class="group/collapsible">
<Collapsible.Trigger
type="button"
- class="text-muted-foreground hover:text-foreground flex w-full items-start justify-between gap-3 rounded-md px-1 py-1.5 text-left text-sm transition-colors"
+ class="flex w-full items-start justify-between gap-3 rounded-md px-1 py-1.5 text-left text-sm text-muted-foreground transition-colors hover:text-foreground"
>
<span class="min-w-0">
<span class="block font-medium">{m.git_sync_per_sync_file_limits_title()}</span>
@@ -460,8 +460,8 @@
<ArrowRightIcon class="mt-0.5 size-4 shrink-0 transition-transform group-data-[state=open]/collapsible:rotate-90" />
</Collapsible.Trigger>
<Collapsible.Content>
- <div class="border-border/70 mt-2 rounded-lg border border-dashed p-3">
- <p class="text-muted-foreground mb-3 text-xs">{m.git_sync_per_sync_file_limits_description()}</p>
+ <div class="mt-2 rounded-lg border border-dashed border-border/70 p-3">
+ <p class="mb-3 text-xs text-muted-foreground">{m.git_sync_per_sync_file_limits_description()}</p>
<div class="grid gap-3 sm:grid-cols-3">
<FormInput
label={m.git_sync_max_files_label()}
@@ -493,7 +493,7 @@
<Collapsible.Root class="group/collapsible">
<Collapsible.Trigger
type="button"
- class="text-muted-foreground hover:text-foreground flex w-full items-start justify-between gap-3 rounded-md px-1 py-1.5 text-left text-sm transition-colors"
+ class="flex w-full items-start justify-between gap-3 rounded-md px-1 py-1.5 text-left text-sm text-muted-foreground transition-colors hover:text-foreground"
>
<span class="min-w-0">
<span class="block font-medium">{m.git_sync_pre_deploy_title()}</span>
@@ -501,7 +501,7 @@
<ArrowRightIcon class="mt-0.5 size-4 shrink-0 transition-transform group-data-[state=open]/collapsible:rotate-90" />
</Collapsible.Trigger>
<Collapsible.Content>
- <div class="border-border/70 mt-2 space-y-3 rounded-lg border border-dashed p-3">
+ <div class="mt-2 space-y-3 rounded-lg border border-dashed border-border/70 p-3">
<Alert.Root
class="border-amber-500/30 bg-amber-500/5 text-amber-700 dark:text-amber-300 [&>svg]:top-1/2 [&>svg]:-translate-y-1/2"
>
@@ -511,7 +511,7 @@
</Alert.Description>
</Alert.Root>
- <p class="text-muted-foreground text-xs">{m.git_sync_pre_deploy_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.git_sync_pre_deploy_description()}</p>
<div class="space-y-1.5">
<Label for="preDeployScriptPath" class="text-sm font-medium">
@@ -529,9 +529,9 @@
</div>
{@render BrowseFilesButton('preDeployScript')}
</div>
- <p class="text-muted-foreground text-xs">{m.git_sync_pre_deploy_script_path_help()}</p>
+ <p class="text-xs text-muted-foreground">{m.git_sync_pre_deploy_script_path_help()}</p>
{#if $inputs.preDeployScriptPath.error}
- <p class="text-destructive text-xs font-medium">{$inputs.preDeployScriptPath.error}</p>
+ <p class="text-xs font-medium text-destructive">{$inputs.preDeployScriptPath.error}</p>
{/if}
</div>
@@ -582,7 +582,7 @@
</Collapsible.Root>
{:else if lifecycleEnabled && canManageLifecycle}
<div
- class="text-muted-foreground flex w-full items-start justify-between gap-3 rounded-md px-1 py-1.5 text-left text-sm"
+ class="flex w-full items-start justify-between gap-3 rounded-md px-1 py-1.5 text-left text-sm text-muted-foreground"
>
<span class="min-w-0">
<span class="block font-medium">{m.git_sync_pre_deploy_title()}</span>
@@ -591,7 +591,7 @@
</div>
{:else if lifecycleEnabled}
<div
- class="text-muted-foreground flex w-full items-start justify-between gap-3 rounded-md px-1 py-1.5 text-left text-sm"
+ class="flex w-full items-start justify-between gap-3 rounded-md px-1 py-1.5 text-left text-sm text-muted-foreground"
>
<span class="min-w-0">
<span class="block font-medium">{m.git_sync_pre_deploy_title()}</span>
@@ -608,7 +608,7 @@
</div>
{/if}
- <Alert.Root class="border-border/70 bg-muted/20 text-muted-foreground py-2 [&>svg]:top-1/2 [&>svg]:-translate-y-1/2">
+ <Alert.Root class="border-border/70 bg-muted/20 py-2 text-muted-foreground [&>svg]:top-1/2 [&>svg]:-translate-y-1/2">
<InfoIcon class="size-4" />
<Alert.Description class="text-xs">
{m.webhook_hint_description()}
@@ -636,14 +636,14 @@
{#snippet composeBadge(file: FileTreeNode)}
{#if composeFileFilter(file)}
- <span class="bg-primary/10 text-primary ml-auto rounded px-2 py-0.5 text-xs">
+ <span class="ml-auto rounded bg-primary/10 px-2 py-0.5 text-xs text-primary">
{m.git_sync_browse_compose_label()}
</span>
{/if}
{/snippet}
{#snippet composeFooterHint()}
- <p class="text-muted-foreground text-xs">{m.git_sync_browse_hint()}</p>
+ <p class="text-xs text-muted-foreground">{m.git_sync_browse_hint()}</p>
{/snippet}
<FileBrowserDialog
diff --git a/frontend/src/lib/components/dialogs/image-registry-search-dialog.svelte b/frontend/src/lib/components/dialogs/image-registry-search-dialog.svelte
index 80471da93..768cb1ea9 100644
--- a/frontend/src/lib/components/dialogs/image-registry-search-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/image-registry-search-dialog.svelte
@@ -147,7 +147,7 @@
</div>
{#if results.length > 0}
- <div class="border-border max-h-[420px] overflow-auto rounded-lg border">
+ <div class="max-h-[420px] overflow-auto rounded-lg border border-border">
{#each results as result (result.name)}
<div class="grid gap-3 border-b p-3 last:border-b-0 sm:grid-cols-[1fr_auto] sm:items-center">
<div class="min-w-0 space-y-1">
@@ -159,10 +159,10 @@
</span>
{/if}
</div>
- <p class="text-muted-foreground line-clamp-2 text-sm">
+ <p class="line-clamp-2 text-sm text-muted-foreground">
{result.description || m.common_no_description()}
</p>
- <p class="text-muted-foreground text-xs">{m.images_search_stars({ count: result.starCount })}</p>
+ <p class="text-xs text-muted-foreground">{m.images_search_stars({ count: result.starCount })}</p>
</div>
<ArcaneButton
action="pull"
@@ -178,7 +178,7 @@
{/each}
</div>
{:else if hasSearched && !isSearching}
- <div class="border-border bg-muted/30 text-muted-foreground rounded-lg border px-4 py-8 text-center text-sm">
+ <div class="rounded-lg border border-border bg-muted/30 px-4 py-8 text-center text-sm text-muted-foreground">
{m.images_search_empty()}
</div>
{/if}
diff --git a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
index a573cecbd..26f65e99f 100644
--- a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
@@ -155,7 +155,7 @@
</script>
{#snippet templateCard(template: Template, showRegistry: boolean = false)}
- <Card class="hover:bg-muted/50 hover:border-primary/20 border transition-colors">
+ <Card class="border transition-colors hover:border-primary/20 hover:bg-muted/50">
<div class="p-4">
<div class="mb-2 flex items-start justify-between gap-2">
<div class="flex min-w-0 items-start gap-3">
@@ -194,7 +194,7 @@
</div>
{/if}
- <p class="text-muted-foreground mb-3 line-clamp-2 text-sm">
+ <p class="mb-3 line-clamp-2 text-sm text-muted-foreground">
{template.description}
</p>
@@ -207,7 +207,7 @@
{/if}
<div class="flex items-center justify-between gap-2">
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{template.isRemote ? m.templates_remote_template_label() : m.templates_local_template_label()}
</div>
<div class="flex gap-2">
@@ -259,7 +259,7 @@
<div class="flex items-center gap-3">
<Label for="sortBy" class="text-sm font-medium whitespace-nowrap">{m.common_sort_by()}</Label>
<Select.Root bind:value={sortBy} type="single">
- <Select.Trigger id="sortBy" class="bg-background h-9 rounded-md border px-2 text-sm">
+ <Select.Trigger id="sortBy" class="h-9 rounded-md border bg-background px-2 text-sm">
{filters[sortBy]}
</Select.Trigger>
<Select.Content>
@@ -273,7 +273,7 @@
<ScrollArea class="max-h-[65vh]">
{#if allTemplates.length === 0}
- <div class="text-muted-foreground py-10 text-center">
+ <div class="py-10 text-center text-muted-foreground">
<FileTextIcon class="mx-auto mb-4 size-12 opacity-50" />
<p class="mb-2">{m.templates_no_templates()}</p>
<p class="text-sm">
diff --git a/frontend/src/lib/components/dialogs/update-all-dialog.svelte b/frontend/src/lib/components/dialogs/update-all-dialog.svelte
index 62e716f32..e17859fa6 100644
--- a/frontend/src/lib/components/dialogs/update-all-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/update-all-dialog.svelte
@@ -211,7 +211,7 @@
{#if isSemver && (semverCurrent || semverNew)}
<div class="flex flex-wrap items-center gap-2 text-sm">
{#if semverCurrent}
- <span class="bg-muted text-muted-foreground inline-flex items-center rounded-md px-2 py-0.5 font-mono text-xs">
+ <span class="inline-flex items-center rounded-md bg-muted px-2 py-0.5 font-mono text-xs text-muted-foreground">
{semverCurrent}
</span>
{/if}
@@ -220,32 +220,32 @@
{/if}
{#if semverNew}
<span
- class="bg-primary/10 text-primary inline-flex items-center rounded-md px-2 py-0.5 font-mono text-xs font-medium"
+ class="inline-flex items-center rounded-md bg-primary/10 px-2 py-0.5 font-mono text-xs font-medium text-primary"
>
{semverNew}
</span>
{/if}
{#if releasedAgo}
- <span class="text-muted-foreground/70 text-xs">· {m.update_center_released_at({ date: releasedAgo })}</span>
+ <span class="text-xs text-muted-foreground/70">· {m.update_center_released_at({ date: releasedAgo })}</span>
{/if}
</div>
{:else if !isSemver && (trackingTag || currentDigest || newDigest)}
<div class="space-y-1.5 text-xs">
{#if trackingTag}
<div class="flex items-baseline gap-2">
- <span class="text-muted-foreground/70 w-16 shrink-0 tracking-wide uppercase">{m.update_center_tag_label()}</span>
- <span class="bg-muted text-foreground inline-flex items-center rounded-md px-2 py-0.5 font-mono">
+ <span class="w-16 shrink-0 tracking-wide text-muted-foreground/70 uppercase">{m.update_center_tag_label()}</span>
+ <span class="inline-flex items-center rounded-md bg-muted px-2 py-0.5 font-mono text-foreground">
{trackingTag}
</span>
</div>
{/if}
{#if currentDigest}
<div class="flex items-baseline gap-2">
- <span class="text-muted-foreground/70 w-16 shrink-0 tracking-wide uppercase"
+ <span class="w-16 shrink-0 tracking-wide text-muted-foreground/70 uppercase"
>{m.update_center_current_label()}</span
>
<code
- class="text-muted-foreground bg-muted/50 min-w-0 flex-1 rounded-md px-2 py-1 font-mono text-[11px] break-all"
+ class="min-w-0 flex-1 rounded-md bg-muted/50 px-2 py-1 font-mono text-[11px] break-all text-muted-foreground"
>
{currentDigest}
</code>
@@ -253,29 +253,29 @@
{/if}
{#if newDigest}
<div class="flex items-baseline gap-2">
- <span class="text-primary/80 w-16 shrink-0 tracking-wide uppercase">{m.update_center_new_label()}</span>
+ <span class="w-16 shrink-0 tracking-wide text-primary/80 uppercase">{m.update_center_new_label()}</span>
<code
- class="text-primary bg-primary/10 min-w-0 flex-1 rounded-md px-2 py-1 font-mono text-[11px] font-medium break-all"
+ class="min-w-0 flex-1 rounded-md bg-primary/10 px-2 py-1 font-mono text-[11px] font-medium break-all text-primary"
>
{newDigest}
</code>
</div>
{/if}
{#if releasedAgo}
- <p class="text-muted-foreground/70 pt-1">{m.update_center_released_at({ date: releasedAgo })}</p>
+ <p class="pt-1 text-muted-foreground/70">{m.update_center_released_at({ date: releasedAgo })}</p>
{/if}
</div>
{/if}
- <div class="border-border/60 border-t pt-3">
+ <div class="border-t border-border/60 pt-3">
<div class="flex items-center justify-between pb-2">
- <h3 class="text-foreground text-sm font-semibold">{m.update_center_whats_new()}</h3>
+ <h3 class="text-sm font-semibold text-foreground">{m.update_center_whats_new()}</h3>
{#if releaseUrl}
<a
href={releaseUrl}
target="_blank"
rel="noopener noreferrer"
- class="text-muted-foreground hover:text-foreground inline-flex items-center gap-1 text-xs transition-colors"
+ class="inline-flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground"
>
{m.update_center_view_full_release()}
<ExternalLinkIcon class="size-3" />
@@ -286,7 +286,7 @@
{#if releaseNotes}
<ReleaseNotes markdown={releaseNotes} />
{:else}
- <p class="text-muted-foreground text-sm italic">{m.update_center_release_notes_unavailable()}</p>
+ <p class="text-sm text-muted-foreground italic">{m.update_center_release_notes_unavailable()}</p>
{/if}
</ScrollArea.Root>
</div>
@@ -296,7 +296,7 @@
{#if phase !== 'confirm'}
<div class="space-y-3">
{#if reconnecting}
- <div class="text-muted-foreground flex items-center gap-2 text-sm">
+ <div class="flex items-center gap-2 text-sm text-muted-foreground">
<Spinner class="size-4" />
<span>{m.environments_update_all_manager_restarting()}</span>
</div>
@@ -305,17 +305,17 @@
{#if job?.results?.length}
{#if phase === 'running'}
<div class="space-y-1.5">
- <div class="text-muted-foreground flex items-center justify-end text-xs">
+ <div class="flex items-center justify-end text-xs text-muted-foreground">
<span>{m.environments_update_all_progress({ done: doneCount, total: totalCount })}</span>
</div>
- <div class="bg-muted h-1.5 overflow-hidden rounded-full">
- <div class="bg-primary h-full rounded-full transition-all duration-500" style="width: {progressPct}%"></div>
+ <div class="h-1.5 overflow-hidden rounded-full bg-muted">
+ <div class="h-full rounded-full bg-primary transition-all duration-500" style="width: {progressPct}%"></div>
</div>
</div>
{/if}
<ScrollArea.Root class="max-h-72">
- <ul class="divide-border divide-y">
+ <ul class="divide-y divide-border">
{#each job.results as result (result.environmentId)}
<li class="flex items-center gap-3 py-2.5 text-sm">
<span
@@ -346,11 +346,11 @@
<div class="min-w-0 flex-1">
<span class="block truncate font-medium">{result.environmentName}</span>
{#if result.status === 'updating'}
- <div class="bg-muted mt-1.5 h-1 overflow-hidden rounded-full">
- <div class="update-all-capbar bg-primary h-full rounded-full"></div>
+ <div class="mt-1.5 h-1 overflow-hidden rounded-full bg-muted">
+ <div class="update-all-capbar h-full rounded-full bg-primary"></div>
</div>
{:else if result.error}
- <span class="text-muted-foreground block truncate text-xs" title={result.error}>{result.error}</span>
+ <span class="block truncate text-xs text-muted-foreground" title={result.error}>{result.error}</span>
{/if}
</div>
@@ -369,7 +369,7 @@
</ul>
</ScrollArea.Root>
{:else}
- <div class="text-muted-foreground flex items-center gap-2 py-2 text-sm">
+ <div class="flex items-center gap-2 py-2 text-sm text-muted-foreground">
<Spinner class="size-4" />
<span>{m.environments_update_all_in_progress()}</span>
</div>
diff --git a/frontend/src/lib/components/dialogs/update-center-dialog.svelte b/frontend/src/lib/components/dialogs/update-center-dialog.svelte
index aa0c66c01..3d9b1df58 100644
--- a/frontend/src/lib/components/dialogs/update-center-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/update-center-dialog.svelte
@@ -497,7 +497,7 @@
class={cn(
'transition-colors',
step.state === 'done' && 'text-foreground',
- step.state === 'active' && 'text-foreground font-medium',
+ step.state === 'active' && 'font-medium text-foreground',
step.state === 'pending' && 'text-muted-foreground'
)}
>
@@ -516,7 +516,7 @@
<ArcaneButton action="base" onclick={closeAfterComplete} size="sm" customLabel={m.update_center_close()} />
</div>
{:else}
- <p class="text-muted-foreground mt-4 text-xs">
+ <p class="mt-4 text-xs text-muted-foreground">
{m.update_center_estimated()}
</p>
{/if}
@@ -542,7 +542,7 @@
{#if isSemver && (semverCurrent || semverNew)}
<div class="flex flex-wrap items-center gap-2 text-sm">
{#if semverCurrent}
- <span class="bg-muted text-muted-foreground inline-flex items-center rounded-md px-2 py-0.5 font-mono text-xs">
+ <span class="inline-flex items-center rounded-md bg-muted px-2 py-0.5 font-mono text-xs text-muted-foreground">
{semverCurrent}
</span>
{/if}
@@ -551,33 +551,33 @@
{/if}
{#if semverNew}
<span
- class="bg-primary/10 text-primary inline-flex items-center rounded-md px-2 py-0.5 font-mono text-xs font-medium"
+ class="inline-flex items-center rounded-md bg-primary/10 px-2 py-0.5 font-mono text-xs font-medium text-primary"
>
{semverNew}
</span>
{/if}
{#if releasedAgo}
- <span class="text-muted-foreground/70 text-xs">· {m.update_center_released_at({ date: releasedAgo })}</span>
+ <span class="text-xs text-muted-foreground/70">· {m.update_center_released_at({ date: releasedAgo })}</span>
{/if}
</div>
{:else if !isSemver && (trackingTag || currentDigest || newDigest)}
<div class="space-y-1.5 text-xs">
{#if trackingTag}
<div class="flex items-baseline gap-2">
- <span class="text-muted-foreground/70 w-16 shrink-0 tracking-wide uppercase">{m.update_center_tag_label()}</span
+ <span class="w-16 shrink-0 tracking-wide text-muted-foreground/70 uppercase">{m.update_center_tag_label()}</span
>
- <span class="bg-muted text-foreground inline-flex items-center rounded-md px-2 py-0.5 font-mono">
+ <span class="inline-flex items-center rounded-md bg-muted px-2 py-0.5 font-mono text-foreground">
{trackingTag}
</span>
</div>
{/if}
{#if currentDigest}
<div class="flex items-baseline gap-2">
- <span class="text-muted-foreground/70 w-16 shrink-0 tracking-wide uppercase"
+ <span class="w-16 shrink-0 tracking-wide text-muted-foreground/70 uppercase"
>{m.update_center_current_label()}</span
>
<code
- class="text-muted-foreground bg-muted/50 min-w-0 flex-1 rounded-md px-2 py-1 font-mono text-[11px] break-all"
+ class="min-w-0 flex-1 rounded-md bg-muted/50 px-2 py-1 font-mono text-[11px] break-all text-muted-foreground"
>
{currentDigest}
</code>
@@ -585,31 +585,31 @@
{/if}
{#if newDigest}
<div class="flex items-baseline gap-2">
- <span class="text-primary/80 w-16 shrink-0 tracking-wide uppercase">{m.update_center_new_label()}</span>
+ <span class="w-16 shrink-0 tracking-wide text-primary/80 uppercase">{m.update_center_new_label()}</span>
<code
- class="text-primary bg-primary/10 min-w-0 flex-1 rounded-md px-2 py-1 font-mono text-[11px] font-medium break-all"
+ class="min-w-0 flex-1 rounded-md bg-primary/10 px-2 py-1 font-mono text-[11px] font-medium break-all text-primary"
>
{newDigest}
</code>
</div>
{/if}
{#if releasedAgo}
- <p class="text-muted-foreground/70 pt-1">{m.update_center_released_at({ date: releasedAgo })}</p>
+ <p class="pt-1 text-muted-foreground/70">{m.update_center_released_at({ date: releasedAgo })}</p>
{/if}
</div>
{/if}
</Dialog.Header>
</div>
- <div class="border-border/60 border-t">
+ <div class="border-t border-border/60">
<div class="flex items-center justify-between px-6 pt-4 pb-2">
- <h3 class="text-foreground text-sm font-semibold">{m.update_center_whats_new()}</h3>
+ <h3 class="text-sm font-semibold text-foreground">{m.update_center_whats_new()}</h3>
{#if effectiveReleaseUrl}
<a
href={effectiveReleaseUrl}
target="_blank"
rel="noopener noreferrer"
- class="text-muted-foreground hover:text-foreground inline-flex items-center gap-1 text-xs transition-colors"
+ class="inline-flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground"
>
{m.update_center_view_full_release()}
<ExternalLinkIcon class="size-3" />
@@ -621,29 +621,29 @@
{#if effectiveReleaseNotes}
<ReleaseNotes markdown={effectiveReleaseNotes} />
{:else if debug && debugFetching}
- <div class="text-muted-foreground flex items-center gap-2 text-sm">
+ <div class="flex items-center gap-2 text-sm text-muted-foreground">
<Spinner class="size-3.5" />
<span>Loading release notes…</span>
</div>
{:else if debug && debugFetchSettled && !effectiveReleaseNotes}
- <p class="text-muted-foreground text-sm italic">
+ <p class="text-sm text-muted-foreground italic">
{m.update_center_release_notes_unavailable()}
</p>
{:else}
- <p class="text-muted-foreground text-sm italic">
+ <p class="text-sm text-muted-foreground italic">
{m.update_center_release_notes_unavailable()}
</p>
{/if}
</ScrollArea.Root>
</div>
- <div class="border-border/60 bg-muted/30 border-t px-6 py-3">
- <p class="text-muted-foreground text-xs leading-relaxed">
+ <div class="border-t border-border/60 bg-muted/30 px-6 py-3">
+ <p class="text-xs leading-relaxed text-muted-foreground">
{m.update_center_summary()}
</p>
</div>
- <Dialog.Footer class="border-border/60 border-t px-6 py-4">
+ <Dialog.Footer class="border-t border-border/60 px-6 py-4">
<ArcaneButton action="cancel" customLabel={m.update_center_later()} onclick={() => (open = false)} />
{#if canInstall}
<ArcaneButton action="update" customLabel={installLabel} onclick={handleConfirm} />
diff --git a/frontend/src/lib/components/dialogs/version-info-dialog.svelte b/frontend/src/lib/components/dialogs/version-info-dialog.svelte
index d0c5bb0a5..75f310af6 100644
--- a/frontend/src/lib/components/dialogs/version-info-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/version-info-dialog.svelte
@@ -44,7 +44,7 @@
<img src={logoUrl} alt="Arcane" class="size-7" />
<div class="flex flex-col gap-0.5">
<span class="text-xl leading-none">{m.version_info_title()}</span>
- <span class="text-muted-foreground text-sm font-normal"
+ <span class="text-sm font-normal text-muted-foreground"
>{(displayInfo.displayVersion || displayInfo.currentVersion).replace(/^v/, '')}</span
>
</div>
@@ -108,20 +108,20 @@
</ResponsiveDialog>
{#snippet infoRow(label: string, value: string | undefined | null, mono: boolean = true)}
- <div class="border-border/50 flex flex-col items-start gap-1 border-b py-3 last:border-0">
- <span class="text-foreground text-sm font-medium">{label}</span>
+ <div class="flex flex-col items-start gap-1 border-b border-border/50 py-3 last:border-0">
+ <span class="text-sm font-medium text-foreground">{label}</span>
<span
- class="text-sm break-all {mono ? 'text-muted-foreground font-mono text-xs' : 'text-muted-foreground'}"
+ class="text-sm break-all {mono ? 'font-mono text-xs text-muted-foreground' : 'text-muted-foreground'}"
title={value ?? ''}>{value || '-'}</span
>
</div>
{/snippet}
{#snippet infoRowWithCopy(label: string, displayValue: string, fullValue: string | undefined | null)}
- <div class="border-border/50 flex flex-col items-start gap-1 border-b py-3 last:border-0">
- <span class="text-foreground text-sm font-medium">{label}</span>
+ <div class="flex flex-col items-start gap-1 border-b border-border/50 py-3 last:border-0">
+ <span class="text-sm font-medium text-foreground">{label}</span>
<div class="flex w-full items-start justify-between gap-2">
- <span class="text-muted-foreground mt-0.5 font-mono text-xs break-all" title={fullValue ?? ''}
+ <span class="mt-0.5 font-mono text-xs break-all text-muted-foreground" title={fullValue ?? ''}
>{fullValue || displayValue}</span
>
{#if fullValue && fullValue !== 'unknown'}
diff --git a/frontend/src/lib/components/error.svelte b/frontend/src/lib/components/error.svelte
index a235f6f71..d922f2a2e 100644
--- a/frontend/src/lib/components/error.svelte
+++ b/frontend/src/lib/components/error.svelte
@@ -76,7 +76,7 @@
<Empty.Root>
<Empty.Header>
<Empty.Media variant="icon">
- <ErrorNotFoundIcon class="text-destructive size-20" aria-hidden="true" />
+ <ErrorNotFoundIcon class="size-20 text-destructive" aria-hidden="true" />
</Empty.Media>
<Empty.Title>{isConnectionError ? connectionErrorTitle : title}</Empty.Title>
<Empty.Description>{isConnectionError ? connectionErrorMessage : message} - {status}</Empty.Description>
diff --git a/frontend/src/lib/components/events/event-detail-panel.svelte b/frontend/src/lib/components/events/event-detail-panel.svelte
index 6d4e3505d..f47eac5df 100644
--- a/frontend/src/lib/components/events/event-detail-panel.svelte
+++ b/frontend/src/lib/components/events/event-detail-panel.svelte
@@ -52,7 +52,7 @@
const severityIconClass = $derived(severityIconClasses[eventSeverityIconVariant(event.severity)]);
</script>
-<div class="border-border/60 bg-background overflow-hidden rounded-lg border shadow-sm">
+<div class="overflow-hidden rounded-lg border border-border/60 bg-background shadow-sm">
<div class="space-y-4 px-5 py-4">
<div class="flex min-w-0 items-start justify-between gap-4">
<div class="flex min-w-0 items-start gap-3">
@@ -66,7 +66,7 @@
<div class="min-w-0">
<h3 class="truncate text-sm font-semibold" title={event.title}>{event.title}</h3>
{#if event.description}
- <p class="text-muted-foreground mt-0.5 text-sm">{event.description}</p>
+ <p class="mt-0.5 text-sm text-muted-foreground">{event.description}</p>
{/if}
</div>
</div>
@@ -81,13 +81,13 @@
</CopyButton>
</div>
- <div class="text-muted-foreground flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs">
- <span class="text-foreground font-medium tabular-nums">{formatDateTime(event.timestamp, { includeSeconds: true })}</span>
+ <div class="flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs text-muted-foreground">
+ <span class="font-medium text-foreground tabular-nums">{formatDateTime(event.timestamp, { includeSeconds: true })}</span>
{#if environmentName}
<span class="text-border">•</span>
<div class="flex items-center gap-1.5">
<span>{m.events_environment_label()}</span>
- <span class="text-foreground font-medium">{environmentName}</span>
+ <span class="font-medium text-foreground">{environmentName}</span>
</div>
{/if}
<span class="text-border">•</span>
@@ -96,7 +96,7 @@
{#if (event.username ?? 'System') === 'System'}
<span class="italic">System</span>
{:else}
- <span class="text-foreground font-medium">{event.username}</span>
+ <span class="font-medium text-foreground">{event.username}</span>
{/if}
</div>
<span class="text-border">•</span>
@@ -104,7 +104,7 @@
</div>
{#if eventErrorMessage}
- <div class="border-destructive/30 bg-destructive/10 text-destructive rounded-md border p-3 text-sm break-words">
+ <div class="rounded-md border border-destructive/30 bg-destructive/10 p-3 text-sm break-words text-destructive">
{eventErrorMessage}
</div>
{/if}
@@ -121,7 +121,7 @@
{/if}
</div>
- <div class="border-border/60 border-t">
+ <div class="border-t border-border/60">
<div class="flex items-center justify-between px-5 py-2.5">
<span class="text-sm font-semibold">{m.events_metadata_title()}</span>
<ArcaneButton
@@ -133,27 +133,27 @@
/>
</div>
{#if showRawEvent}
- <pre class="bg-muted/40 border-border/50 max-h-80 overflow-auto border-t p-4 text-xs leading-relaxed"><code
+ <pre class="max-h-80 overflow-auto border-t border-border/50 bg-muted/40 p-4 text-xs leading-relaxed"><code
class="font-mono">{eventJson}</code
></pre>
{:else if hasMetadata}
- <div class="border-border/50 max-h-80 overflow-auto border-t">
+ <div class="max-h-80 overflow-auto border-t border-border/50">
{#each metadataEntries as entry (entry.key)}
- <div class="border-border/50 grid grid-cols-[minmax(0,260px)_1fr] items-start gap-3 border-b px-5 py-2 last:border-b-0">
- <div class="text-muted-foreground font-mono text-xs break-all">{entry.key}</div>
+ <div class="grid grid-cols-[minmax(0,260px)_1fr] items-start gap-3 border-b border-border/50 px-5 py-2 last:border-b-0">
+ <div class="font-mono text-xs break-all text-muted-foreground">{entry.key}</div>
<pre class="font-mono text-xs leading-relaxed break-all whitespace-pre-wrap">{entry.value}</pre>
</div>
{/each}
</div>
{:else}
- <div class="text-muted-foreground border-border/50 border-t px-5 py-3 text-xs">{m.events_no_metadata_provided()}</div>
+ <div class="border-t border-border/50 px-5 py-3 text-xs text-muted-foreground">{m.events_no_metadata_provided()}</div>
{/if}
</div>
</div>
{#snippet resourceCell(label: string, value: string, copyTitle: string)}
- <div class="border-border/50 rounded-md border p-3">
- <div class="text-muted-foreground text-xs">{label}</div>
+ <div class="rounded-md border border-border/50 p-3">
+ <div class="text-xs text-muted-foreground">{label}</div>
<div class="mt-1 flex items-center justify-between gap-2">
<div class="min-w-0 font-mono text-sm break-all">{value}</div>
<CopyButton text={value} size="icon" class="size-7 shrink-0" title={copyTitle} />
diff --git a/frontend/src/lib/components/file-browser/FileList.svelte b/frontend/src/lib/components/file-browser/FileList.svelte
index 80e669883..bf446bf8c 100644
--- a/frontend/src/lib/components/file-browser/FileList.svelte
+++ b/frontend/src/lib/components/file-browser/FileList.svelte
@@ -144,12 +144,12 @@
{#snippet NameCell({ item }: { item: FileEntry })}
<div class="flex items-center gap-2">
{#if item.isDirectory}
- <FolderOpenIcon class={minimal ? 'text-muted-foreground size-4' : 'size-4 text-blue-500'} />
+ <FolderOpenIcon class={minimal ? 'size-4 text-muted-foreground' : 'size-4 text-blue-500'} />
<button class="text-left font-medium hover:underline" onclick={() => onNavigate(item.path)}>
{item.name}
</button>
{:else}
- <FileTextIcon class="text-muted-foreground size-4" />
+ <FileTextIcon class="size-4 text-muted-foreground" />
<span class="font-medium">{item.name}</span>
{/if}
{#if item.isSymlink}
@@ -179,13 +179,13 @@
{/snippet}
{#snippet SizeCell({ item, value }: { item: FileEntry; value: any })}
- <span class="text-muted-foreground text-sm">
+ <span class="text-sm text-muted-foreground">
{item.isDirectory ? '--' : formatBytes(Number(value))}
</span>
{/snippet}
{#snippet CreatedCell({ value }: { value: any })}
- <span class="text-muted-foreground text-sm">
+ <span class="text-sm text-muted-foreground">
{formatDateTimeShort(String(value))}
</span>
{/snippet}
@@ -250,7 +250,7 @@
<div
class={`file-browser-table overflow-hidden ${
- minimal ? 'file-browser-table--minimal' : 'file-browser-table--card bg-card rounded-lg border shadow-sm'
+ minimal ? 'file-browser-table--minimal' : 'file-browser-table--card rounded-lg border bg-card shadow-sm'
}`}
>
<ArcaneTable
diff --git a/frontend/src/lib/components/file-browser/FilePreview.svelte b/frontend/src/lib/components/file-browser/FilePreview.svelte
index fd4fae37d..5dd013490 100644
--- a/frontend/src/lib/components/file-browser/FilePreview.svelte
+++ b/frontend/src/lib/components/file-browser/FilePreview.svelte
@@ -50,14 +50,14 @@
<div class="mt-6 min-h-0 flex-grow overflow-y-auto">
{#if loading}
<div class="flex h-full items-center justify-center p-12">
- <LoadingSpinnerIcon class="text-muted-foreground h-8 w-8" />
+ <LoadingSpinnerIcon class="h-8 w-8 text-muted-foreground" />
</div>
{:else if error}
- <div class="border-destructive/20 bg-destructive/10 text-destructive rounded border p-4">
+ <div class="rounded border border-destructive/20 bg-destructive/10 p-4 text-destructive">
{error}
</div>
{:else}
- <pre class="bg-muted w-full rounded p-4 font-mono text-xs break-all whitespace-pre-wrap">{content}</pre>
+ <pre class="w-full rounded bg-muted p-4 font-mono text-xs break-all whitespace-pre-wrap">{content}</pre>
{/if}
</div>
</Sheet.Content>
diff --git a/frontend/src/lib/components/file-browser/FileUploadDialog.svelte b/frontend/src/lib/components/file-browser/FileUploadDialog.svelte
index e52aacfb5..f5f15199d 100644
--- a/frontend/src/lib/components/file-browser/FileUploadDialog.svelte
+++ b/frontend/src/lib/components/file-browser/FileUploadDialog.svelte
@@ -71,10 +71,10 @@
{#if files.length > 0}
<div class="flex max-h-[200px] flex-col gap-2 overflow-y-auto pr-1">
{#each files as file, i (file.name + i)}
- <div class="border-border bg-muted/50 flex items-center justify-between gap-2 rounded-lg border p-2">
+ <div class="flex items-center justify-between gap-2 rounded-lg border border-border bg-muted/50 p-2">
<div class="flex flex-col overflow-hidden">
<span class="truncate text-xs font-medium">{file.name}</span>
- <span class="text-muted-foreground text-[10px]">{displaySize(file.size)}</span>
+ <span class="text-[10px] text-muted-foreground">{displaySize(file.size)}</span>
</div>
<ArcaneButton
action="base"
diff --git a/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte b/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte
index bd556ae61..0057a706b 100644
--- a/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte
+++ b/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte
@@ -202,10 +202,10 @@
{#if loading}
<div class="flex justify-center p-12">
- <Spinner class="text-muted-foreground size-8" />
+ <Spinner class="size-8 text-muted-foreground" />
</div>
{:else if error}
- <div class="border-destructive/20 bg-destructive/10 text-destructive rounded-lg border p-8 text-center">
+ <div class="rounded-lg border border-destructive/20 bg-destructive/10 p-8 text-center text-destructive">
{error}
</div>
{:else}
@@ -270,18 +270,18 @@
</Alert.Root>
{#if restoreTarget}
- <div class="text-muted-foreground text-xs">
- File: <code class="bg-muted/40 rounded px-1.5 py-0.5 font-mono">{restoreTarget.path}</code>
+ <div class="text-xs text-muted-foreground">
+ File: <code class="rounded bg-muted/40 px-1.5 py-0.5 font-mono">{restoreTarget.path}</code>
</div>
{/if}
{#if loadingBackups}
- <div class="text-muted-foreground flex items-center gap-2 text-sm">
+ <div class="flex items-center gap-2 text-sm text-muted-foreground">
<Spinner class="size-4" />
Loading backups...
</div>
{:else if backups.length === 0}
- <div class="text-muted-foreground text-sm">{m.file_browser_no_backups()}</div>
+ <div class="text-sm text-muted-foreground">{m.file_browser_no_backups()}</div>
{:else}
<div class="space-y-2">
<Label for="restore-backup-select">{m.file_browser_backup()}</Label>
@@ -308,12 +308,12 @@
</div>
{#if requiresBackupCheck}
{#if checkingBackup}
- <div class="text-muted-foreground flex items-center gap-2 text-xs">
+ <div class="flex items-center gap-2 text-xs text-muted-foreground">
<Spinner class="size-3" />
Checking backup contents...
</div>
{:else if backupHasFile === false}
- <div class="text-destructive text-xs">{m.file_browser_backup_missing_file()}</div>
+ <div class="text-xs text-destructive">{m.file_browser_backup_missing_file()}</div>
{/if}
{/if}
{/if}
diff --git a/frontend/src/lib/components/font-size-picker.svelte b/frontend/src/lib/components/font-size-picker.svelte
index 3aaded93b..be5e92310 100644
--- a/frontend/src/lib/components/font-size-picker.svelte
+++ b/frontend/src/lib/components/font-size-picker.svelte
@@ -49,5 +49,5 @@
aria-label={m.font_size()}
class="w-40 sm:w-44"
/>
- <span class="text-muted-foreground w-10 text-right text-sm tabular-nums">{currentSize}px</span>
+ <span class="w-10 text-right text-sm text-muted-foreground tabular-nums">{currentSize}px</span>
</div>
diff --git a/frontend/src/lib/components/form/form-input.svelte b/frontend/src/lib/components/form/form-input.svelte
index 3d66ad258..a83b00f82 100644
--- a/frontend/src/lib/components/form/form-input.svelte
+++ b/frontend/src/lib/components/form/form-input.svelte
@@ -44,7 +44,7 @@
<Label class="mb-0" for={id}>{label}</Label>
{/if}
{#if description}
- <p class="text-muted-foreground mt-1 text-xs">{description}</p>
+ <p class="mt-1 text-xs text-muted-foreground">{description}</p>
{/if}
<div class={label || description ? 'mt-2' : ''}>
{#if children}
@@ -64,10 +64,10 @@
<p class="mt-1 text-sm text-red-500">{input.error}</p>
{/if}
{#if helpText}
- <p class="text-muted-foreground mt-1 text-xs">{helpText}</p>
+ <p class="mt-1 text-xs text-muted-foreground">{helpText}</p>
{/if}
{#if warningText}
- <p class="text-destructive mt-1 text-xs font-semibold">{warningText}</p>
+ <p class="mt-1 text-xs font-semibold text-destructive">{warningText}</p>
{/if}
</div>
</div>
diff --git a/frontend/src/lib/components/form/labeled-switch.svelte b/frontend/src/lib/components/form/labeled-switch.svelte
index 75e208414..8ef3c95c3 100644
--- a/frontend/src/lib/components/form/labeled-switch.svelte
+++ b/frontend/src/lib/components/form/labeled-switch.svelte
@@ -40,12 +40,12 @@
{label}
</Label>
{#if error}
- <p class="text-destructive text-[0.8rem] font-medium">
+ <p class="text-[0.8rem] font-medium text-destructive">
{error}
</p>
{/if}
{#if description}
- <p class="text-muted-foreground text-[0.8rem]">
+ <p class="text-[0.8rem] text-muted-foreground">
{description}
</p>
{/if}
diff --git a/frontend/src/lib/components/form/searchable-select.svelte b/frontend/src/lib/components/form/searchable-select.svelte
index 88ce81b58..99dded31e 100644
--- a/frontend/src/lib/components/form/searchable-select.svelte
+++ b/frontend/src/lib/components/form/searchable-select.svelte
@@ -160,7 +160,7 @@
</Popover.Trigger>
<Popover.Content
class={cn(
- 'bg-popover text-popover-foreground backdrop-blur-0 w-[var(--bits-popover-anchor-width)] p-0 backdrop-saturate-100',
+ 'backdrop-blur-0 w-[var(--bits-popover-anchor-width)] bg-popover p-0 text-popover-foreground backdrop-saturate-100',
contentClass
)}
>
@@ -201,11 +201,11 @@
{#if showCheckboxes}
<div
class={cn(
- 'border-primary flex size-4 shrink-0 items-center justify-center rounded-sm border',
+ 'flex size-4 shrink-0 items-center justify-center rounded-sm border border-primary',
isSelected ? 'bg-primary text-primary-foreground' : 'opacity-50 [&_svg]:invisible'
)}
>
- <CheckIcon class="text-foreground size-6" />
+ <CheckIcon class="size-6 text-foreground" />
</div>
{:else}
<CheckIcon class={cn('mr-2 size-4', isSelected ? 'opacity-100' : 'opacity-0')} />
@@ -214,7 +214,7 @@
{item.label}
</span>
{#if item.hint}
- <span class="text-muted-foreground ml-auto text-xs">{item.hint}</span>
+ <span class="ml-auto text-xs text-muted-foreground">{item.hint}</span>
{/if}
</Command.Item>
{/each}
diff --git a/frontend/src/lib/components/form/select-with-label.svelte b/frontend/src/lib/components/form/select-with-label.svelte
index 10414f578..a683f40ee 100644
--- a/frontend/src/lib/components/form/select-with-label.svelte
+++ b/frontend/src/lib/components/form/select-with-label.svelte
@@ -44,7 +44,7 @@
<div class="flex flex-col items-start gap-1">
<span class="font-medium">{option.label}</span>
{#if option.description}
- <span class="text-muted-foreground text-xs">{option.description}</span>
+ <span class="text-xs text-muted-foreground">{option.description}</span>
{/if}
</div>
</Select.Item>
@@ -62,7 +62,7 @@
{label}
</Label>
{#if description}
- <p class="text-muted-foreground mt-0.5 text-xs">{description}</p>
+ <p class="mt-0.5 text-xs text-muted-foreground">{description}</p>
{/if}
</div>
{/if}
@@ -85,6 +85,6 @@
</Select.Root>
{#if error}
- <p class="text-destructive text-xs font-medium">{error}</p>
+ <p class="text-xs font-medium text-destructive">{error}</p>
{/if}
</div>
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 2ee8da5d0..00fb3005a 100644
--- a/frontend/src/lib/components/form/text-input-with-label.svelte
+++ b/frontend/src/lib/components/form/text-input-with-label.svelte
@@ -50,10 +50,10 @@
<div class="space-y-2.5">
<div>
<Label for={id} class="text-sm font-medium">
- {label}{#if required}<span class="text-destructive ml-0.5">*</span>{/if}
+ {label}{#if required}<span class="ml-0.5 text-destructive">*</span>{/if}
</Label>
{#if description}
- <p class="text-muted-foreground mt-0.5 text-xs">{description}</p>
+ <p class="mt-0.5 text-xs text-muted-foreground">{description}</p>
{/if}
</div>
@@ -71,9 +71,9 @@
/>
{#if error}
- <p class="text-destructive text-xs font-medium">{error}</p>
+ <p class="text-xs font-medium text-destructive">{error}</p>
{/if}
{#if helpText || reserveHelpTextSpace}
- <p class="text-muted-foreground min-h-[1rem] text-xs">{helpText}</p>
+ <p class="min-h-[1rem] text-xs text-muted-foreground">{helpText}</p>
{/if}
</div>
diff --git a/frontend/src/lib/components/form/url-input.svelte b/frontend/src/lib/components/form/url-input.svelte
index 91424df8e..417d428a7 100644
--- a/frontend/src/lib/components/form/url-input.svelte
+++ b/frontend/src/lib/components/form/url-input.svelte
@@ -71,10 +71,10 @@
</ButtonGroup.Root>
{#if description && !error}
- <p class="text-muted-foreground text-xs">{description}</p>
+ <p class="text-xs text-muted-foreground">{description}</p>
{/if}
{#if error}
- <p class="text-destructive text-xs">{error}</p>
+ <p class="text-xs text-destructive">{error}</p>
{/if}
</div>
diff --git a/frontend/src/lib/components/forms/role-assignments-editor.svelte b/frontend/src/lib/components/forms/role-assignments-editor.svelte
index c32603635..78e5f246a 100644
--- a/frontend/src/lib/components/forms/role-assignments-editor.svelte
+++ b/frontend/src/lib/components/forms/role-assignments-editor.svelte
@@ -117,7 +117,7 @@
<span class="text-xs text-muted-foreground">{m.users_role_assignments_scope_global()}</span>
</div>
{#if role.description}
- <span class="text-muted-foreground text-xs">{role.description}</span>
+ <span class="text-xs text-muted-foreground">{role.description}</span>
{/if}
</div>
</label>
@@ -126,14 +126,14 @@
{/if}
{#if assignments.length === 0}
- <p class="text-muted-foreground rounded-md border border-dashed p-4 text-center text-sm">
+ <p class="rounded-md border border-dashed p-4 text-center text-sm text-muted-foreground">
{m.users_role_assignments_description()}
</p>
{/if}
{#each assignments as assignment, index (`${assignment.roleId}-${assignment.environmentId ?? 'global'}`)}
{@const envValue = envIdToSelectValue(assignment.environmentId)}
- <div class="bg-card/50 grid grid-cols-1 gap-2 rounded-md border p-3 sm:grid-cols-[1fr_1fr_auto] sm:items-center">
+ <div class="grid grid-cols-1 gap-2 rounded-md border bg-card/50 p-3 sm:grid-cols-[1fr_1fr_auto] sm:items-center">
<Select.Root
type="single"
value={envValue}
@@ -173,7 +173,7 @@
<span class="flex items-center gap-2">
<Badge variant={getRoleVariant(role.id)} size="sm">{role.name}</Badge>
{#if role.description}
- <span class="text-muted-foreground text-xs">{role.description}</span>
+ <span class="text-xs text-muted-foreground">{role.description}</span>
{/if}
</span>
</Select.Item>
@@ -189,7 +189,7 @@
showLabel={false}
onclick={() => removeAssignment(index)}
{disabled}
- class="text-muted-foreground hover:text-destructive justify-self-end"
+ class="justify-self-end text-muted-foreground hover:text-destructive"
customLabel={m.users_role_assignments_remove()}
/>
</div>
diff --git a/frontend/src/lib/components/header-card.svelte b/frontend/src/lib/components/header-card.svelte
index f443f35c8..de0ef1291 100644
--- a/frontend/src/lib/components/header-card.svelte
+++ b/frontend/src/lib/components/header-card.svelte
@@ -12,7 +12,7 @@
<div
class={cn(
- 'bg-card/60 backdrop-blur-md border-border/70 relative overflow-hidden rounded-xl border p-4 shadow-xs sm:p-5',
+ 'relative overflow-hidden rounded-xl border border-border/70 bg-card/60 p-4 shadow-xs backdrop-blur-md sm:p-5',
className
)}
>
diff --git a/frontend/src/lib/components/icon-image.svelte b/frontend/src/lib/components/icon-image.svelte
index cccdbf557..19f421f27 100644
--- a/frontend/src/lib/components/icon-image.svelte
+++ b/frontend/src/lib/components/icon-image.svelte
@@ -23,7 +23,7 @@
<div
class={cn(
- 'bg-muted/40 flex items-center justify-center overflow-hidden rounded-lg ring-1 ring-white/5 ring-inset',
+ 'flex items-center justify-center overflow-hidden rounded-lg bg-muted/40 ring-1 ring-white/5 ring-inset',
containerClass
)}
>
diff --git a/frontend/src/lib/components/image-update-item.svelte b/frontend/src/lib/components/image-update-item.svelte
index 2532ba7ef..fb3658e50 100644
--- a/frontend/src/lib/components/image-update-item.svelte
+++ b/frontend/src/lib/components/image-update-item.svelte
@@ -260,11 +260,11 @@
{#snippet recheckButton()}
{#if canCheckUpdate}
- <div class="border-border/50 bg-muted/50 border-t p-3">
+ <div class="border-t border-border/50 bg-muted/50 p-3">
{#if effectiveUpdateInfo?.hasUpdate && onUpdateContainer}
<button
onclick={handleUpdateContainer}
- class="group bg-primary text-primary-foreground hover:bg-primary/90 flex w-full items-center justify-center gap-2 rounded-lg px-3 py-2 text-xs font-medium shadow-sm transition-all hover:shadow-md"
+ class="group flex w-full items-center justify-center gap-2 rounded-lg bg-primary px-3 py-2 text-xs font-medium text-primary-foreground shadow-sm transition-all hover:bg-primary/90 hover:shadow-md"
>
<CircleArrowUpIcon class="size-3" />
{m.containers_update_container()}
@@ -273,7 +273,7 @@
<button
onclick={checkImageUpdate}
disabled={isChecking}
- class="group bg-secondary/80 text-secondary-foreground hover:bg-secondary flex w-full items-center justify-center gap-2 rounded-lg px-3 py-2 text-xs font-medium shadow-sm transition-all hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50"
+ class="group flex w-full items-center justify-center gap-2 rounded-lg bg-secondary/80 px-3 py-2 text-xs font-medium text-secondary-foreground shadow-sm transition-all hover:bg-secondary hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50"
>
{#if isChecking}
<Spinner class="size-3" />
@@ -330,11 +330,11 @@
</div>
<div class="bg-transparent p-4">
<div class="text-center">
- <div class="text-muted-foreground mb-2 text-xs">
+ <div class="mb-2 text-xs text-muted-foreground">
{m.common_running()}
- <span class="bg-muted rounded px-1.5 py-0.5 font-mono text-xs font-medium">{currentVersion}</span>
+ <span class="rounded bg-muted px-1.5 py-0.5 font-mono text-xs font-medium">{currentVersion}</span>
</div>
- <div class="text-muted-foreground text-xs leading-relaxed">
+ <div class="text-xs leading-relaxed text-muted-foreground">
{m.image_update_up_to_date_desc()}
</div>
</div>
diff --git a/frontend/src/lib/components/job-card/job-card.svelte b/frontend/src/lib/components/job-card/job-card.svelte
index e6fa6779e..24e2a65ce 100644
--- a/frontend/src/lib/components/job-card/job-card.svelte
+++ b/frontend/src/lib/components/job-card/job-card.svelte
@@ -64,7 +64,7 @@
}
</script>
-<Card.Root class="bg-background/60 h-full rounded-xl border border-white/10 shadow-none backdrop-blur-md">
+<Card.Root class="h-full rounded-xl border border-white/10 bg-background/60 shadow-none backdrop-blur-md">
<Card.Header class="flex flex-row items-center justify-between space-y-0 px-4 py-4">
<div class="flex flex-col gap-1.5">
<div class="flex items-center gap-2">
@@ -73,7 +73,7 @@
<Badge variant="outline" size="sm">{m.jobs_continuous()}</Badge>
{/if}
</div>
- <Card.Description class="text-muted-foreground/80 line-clamp-1 text-xs">{job.description}</Card.Description>
+ <Card.Description class="line-clamp-1 text-xs text-muted-foreground/80">{job.description}</Card.Description>
</div>
<div class="flex items-center gap-2">
{#if headerAccessory}
@@ -111,12 +111,12 @@
</Card.Header>
<Card.Content class="space-y-2 px-4 pt-0 pb-4">
{#if isEnabled}
- <div class="text-muted-foreground grid gap-2 text-xs">
+ <div class="grid gap-2 text-xs text-muted-foreground">
{#if !job.isContinuous}
<div class="flex items-center gap-2">
<ClockIcon class="h-3.5 w-3.5" />
<span>{m.jobs_schedule()}:</span>
- <code class="bg-muted rounded px-2 py-0.5 text-[0.65rem]">{job.schedule}</code>
+ <code class="rounded bg-muted px-2 py-0.5 text-[0.65rem]">{job.schedule}</code>
</div>
{#if nextRunText}
<div>
diff --git a/frontend/src/lib/components/job-card/job-schedule-dialog.svelte b/frontend/src/lib/components/job-card/job-schedule-dialog.svelte
index d492c0168..b246758e6 100644
--- a/frontend/src/lib/components/job-card/job-schedule-dialog.svelte
+++ b/frontend/src/lib/components/job-card/job-schedule-dialog.svelte
@@ -99,9 +99,9 @@
<Label for="schedule">{m.jobs_cron_expression()}</Label>
<Input id="schedule" bind:value={scheduleValue} placeholder="0 */15 * * * *" class={error ? 'border-destructive' : ''} />
{#if error}
- <p class="text-destructive text-sm">{error}</p>
+ <p class="text-sm text-destructive">{error}</p>
{:else}
- <p class="text-muted-foreground text-sm">{m.jobs_cron_expression_help()}</p>
+ <p class="text-sm text-muted-foreground">{m.jobs_cron_expression_help()}</p>
{/if}
</div>
@@ -116,7 +116,7 @@
>
<div class="text-left">
<div class="text-xs leading-4 font-medium">{example.label}</div>
- <div class="text-muted-foreground font-mono text-xs leading-4">{example.value}</div>
+ <div class="font-mono text-xs leading-4 text-muted-foreground">{example.value}</div>
</div>
</Button>
{/each}
diff --git a/frontend/src/lib/components/lifecycle-indicator/lifecycle-indicator.svelte b/frontend/src/lib/components/lifecycle-indicator/lifecycle-indicator.svelte
index 84bd2407d..0a3f10e3a 100644
--- a/frontend/src/lib/components/lifecycle-indicator/lifecycle-indicator.svelte
+++ b/frontend/src/lib/components/lifecycle-indicator/lifecycle-indicator.svelte
@@ -19,7 +19,7 @@
{#if trimmedPath}
<ArcaneTooltip.Root>
<ArcaneTooltip.Trigger>
- <span class={cn('text-muted-foreground inline-flex items-center', className)} aria-label={tooltipText}>
+ <span class={cn('inline-flex items-center text-muted-foreground', className)} aria-label={tooltipText}>
<CodeIcon class="size-3.5" />
</span>
</ArcaneTooltip.Trigger>
diff --git a/frontend/src/lib/components/loading-indicator.svelte b/frontend/src/lib/components/loading-indicator.svelte
index a7c76086f..49918332e 100644
--- a/frontend/src/lib/components/loading-indicator.svelte
+++ b/frontend/src/lib/components/loading-indicator.svelte
@@ -45,7 +45,7 @@
aria-label={m.common_loading()}
>
<div class="relative h-full w-full overflow-hidden">
- <div class="bg-primary/25 absolute inset-0"></div>
+ <div class="absolute inset-0 bg-primary/25"></div>
<div class="bar absolute inset-y-0 left-0 w-1/3">
<div class="peg absolute top-0 right-0 h-full w-3"></div>
diff --git a/frontend/src/lib/components/logs/log-controls.svelte b/frontend/src/lib/components/logs/log-controls.svelte
index d8a037def..5db1ccfb5 100644
--- a/frontend/src/lib/components/logs/log-controls.svelte
+++ b/frontend/src/lib/components/logs/log-controls.svelte
@@ -83,7 +83,7 @@
action="stop"
tone="ghost"
size="icon"
- class="text-muted-foreground hover:text-foreground size-8 shrink-0"
+ class="size-8 shrink-0 text-muted-foreground hover:text-foreground"
onclick={onStop}
aria-label={m.common_stop()}
/>
@@ -92,7 +92,7 @@
action="start"
tone="ghost"
size="icon"
- class="text-muted-foreground hover:text-foreground size-8 shrink-0"
+ class="size-8 shrink-0 text-muted-foreground hover:text-foreground"
onclick={onStart}
aria-label={m.common_start()}
{disabled}
@@ -102,7 +102,7 @@
action="refresh"
tone="ghost"
size="icon"
- class="text-muted-foreground hover:text-foreground size-8 shrink-0"
+ class="size-8 shrink-0 text-muted-foreground hover:text-foreground"
onclick={onRefresh}
aria-label={m.log_refresh_aria_label()}
/>
@@ -117,7 +117,7 @@
action="base"
tone="ghost"
size="icon"
- class="text-muted-foreground hover:text-foreground size-8 shrink-0"
+ class="size-8 shrink-0 text-muted-foreground hover:text-foreground"
aria-label={m.common_open_menu()}
>
<span class="sr-only">{m.common_open_menu()}</span>
@@ -144,7 +144,7 @@
>
<div class="flex flex-col gap-0.5">
<span class="font-medium">{m.common_autoscroll()}</span>
- <span class="text-muted-foreground text-xs">{m.log_auto_scroll_tooltip()}</span>
+ <span class="text-xs text-muted-foreground">{m.log_auto_scroll_tooltip()}</span>
</div>
</DropdownMenu.CheckboxItem>
<DropdownMenu.CheckboxItem
@@ -155,7 +155,7 @@
>
<div class="flex flex-col gap-0.5">
<span class="font-medium">{m.auto_start()}</span>
- <span class="text-muted-foreground text-xs">{m.log_auto_start_tooltip()}</span>
+ <span class="text-xs text-muted-foreground">{m.log_auto_start_tooltip()}</span>
</div>
</DropdownMenu.CheckboxItem>
<DropdownMenu.CheckboxItem
@@ -166,7 +166,7 @@
>
<div class="flex flex-col gap-0.5">
<span class="font-medium">{showParsedJson ? m.common_parsed() : m.common_raw()}</span>
- <span class="text-muted-foreground text-xs">{m.log_parsed_mode_tooltip()}</span>
+ <span class="text-xs text-muted-foreground">{m.log_parsed_mode_tooltip()}</span>
</div>
</DropdownMenu.CheckboxItem>
</DropdownMenu.Content>
diff --git a/frontend/src/lib/components/logs/log-viewer.svelte b/frontend/src/lib/components/logs/log-viewer.svelte
index 8adde473f..aa74b4751 100644
--- a/frontend/src/lib/components/logs/log-viewer.svelte
+++ b/frontend/src/lib/components/logs/log-viewer.svelte
@@ -486,7 +486,7 @@
{#snippet renderGroupedSummary(displayEntry: LogViewerDisplayEntry, contentClass: string)}
<div class="flex min-w-0 items-start gap-2">
<Collapsible.Trigger
- class="focus-visible:border-ring focus-visible:ring-ring/50 inline-flex shrink-0 items-center gap-1 rounded border border-transparent px-1 py-0.5 text-zinc-500 outline-none hover:bg-white/4 focus-visible:ring-[3px]"
+ class="inline-flex shrink-0 items-center gap-1 rounded border border-transparent px-1 py-0.5 text-zinc-500 outline-none hover:bg-white/4 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50"
>
{#if isGroupExpanded(displayEntry)}
<ArrowDownIcon class="size-4" />
diff --git a/frontend/src/lib/components/logs/structured-log-entry.svelte b/frontend/src/lib/components/logs/structured-log-entry.svelte
index bf2a3f015..58e858b56 100644
--- a/frontend/src/lib/components/logs/structured-log-entry.svelte
+++ b/frontend/src/lib/components/logs/structured-log-entry.svelte
@@ -277,7 +277,7 @@
<div class="flex min-w-0 items-start gap-2">
{#if hasDetails}
<Collapsible.Trigger
- class="focus-visible:border-ring focus-visible:ring-ring/50 flex min-w-0 flex-1 items-start gap-3 rounded-md border border-transparent px-1 py-0.5 text-left outline-none hover:bg-white/3 focus-visible:ring-[3px]"
+ class="flex min-w-0 flex-1 items-start gap-3 rounded-md border border-transparent px-1 py-0.5 text-left outline-none hover:bg-white/3 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50"
>
{@render entrySummary(true)}
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 251868c3f..5f0701425 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav-item.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav-item.svelte
@@ -25,14 +25,14 @@
aria-current={active ? 'page' : undefined}
class={cn(
'min-w-0 flex-1 transition-all duration-200 ease-out',
- 'hover:bg-muted/50 hover:text-foreground hover:scale-[1.02]',
- 'focus-visible:ring-muted-foreground/50 focus-visible:ring-1 focus-visible:ring-offset-1',
+ 'hover:scale-[1.02] hover:bg-muted/50 hover:text-foreground',
+ 'focus-visible:ring-1 focus-visible:ring-muted-foreground/50 focus-visible:ring-offset-1',
'focus-visible:scale-[1.02] focus-visible:ring-offset-transparent',
'active:scale-[0.98]',
showLabels
? 'h-11 flex-col gap-0.5 overflow-hidden rounded-2xl px-2 py-1 sm:h-12 sm:min-w-[60px] sm:px-3 sm:py-1.5'
: 'h-11 w-11 rounded-2xl',
- active && 'bg-muted text-foreground hover:bg-muted/70 shadow-sm',
+ active && 'bg-muted text-foreground shadow-sm hover:bg-muted/70',
className
)}
data-testid="mobile-nav-item"
@@ -40,7 +40,7 @@
{@const IconComponent = item.icon}
<IconComponent size={showLabels ? 20 : 24} aria-hidden="true" />
{#if showLabels}
- <span class="text-muted-foreground w-full truncate text-center text-[10px] leading-none font-normal">{item.title}</span>
+ <span class="w-full truncate text-center text-[10px] leading-none font-normal text-muted-foreground">{item.title}</span>
{:else}
<span class="sr-only">{item.title}</span>
{/if}
diff --git a/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte
index 632360a6e..549c58205 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte
@@ -15,7 +15,7 @@
<button
type="button"
class={cn(
- 'bg-primary text-primary-foreground hover:bg-primary/90 focus-visible:ring-ring/50 shadow-md',
+ 'bg-primary text-primary-foreground shadow-md hover:bg-primary/90 focus-visible:ring-ring/50',
'flex-shrink-0 rounded-full transition-all duration-200 ease-out active:scale-95',
'flex items-center justify-center',
// Keep a large tap target but allow a slightly smaller footprint on the smallest screens.
diff --git a/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte
index b2f1e9903..bef2a68dd 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte
@@ -75,8 +75,8 @@
class={cn(
'flex items-center gap-3 rounded-2xl px-4 py-3 text-sm font-medium transition-all duration-200 ease-out',
focusStyles &&
- 'focus-visible:ring-muted-foreground/50 hover:scale-[1.01] focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent',
- isActiveItem(item) ? 'bg-muted text-foreground hover:bg-muted/70 shadow-sm' : 'text-foreground hover:bg-muted/50'
+ 'hover:scale-[1.01] focus-visible:ring-1 focus-visible:ring-muted-foreground/50 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent',
+ isActiveItem(item) ? 'bg-muted text-foreground shadow-sm hover:bg-muted/70' : 'text-foreground hover:bg-muted/50'
)}
aria-current={focusStyles && isActiveItem(item) ? 'page' : undefined}
>
@@ -94,10 +94,10 @@
onclick={handleItemClick}
class={cn(
'flex items-center gap-3 rounded-xl px-4 py-2 text-sm transition-all duration-200 ease-out',
- 'focus-visible:ring-muted-foreground/50 hover:scale-[1.01] focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent',
+ 'hover:scale-[1.01] focus-visible:ring-1 focus-visible:ring-muted-foreground/50 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent',
isActiveItem(subItem)
? 'bg-muted/70 text-foreground shadow-sm'
- : 'text-muted-foreground hover:text-foreground hover:bg-muted/40'
+ : 'text-muted-foreground hover:bg-muted/40 hover:text-foreground'
)}
aria-current={isActiveItem(subItem) ? 'page' : undefined}
>
@@ -128,7 +128,7 @@
<Drawer.Content
data-testid="mobile-nav-sheet"
class={cn(
- 'bg-background/95 rounded-t-3xl border border-t shadow-sm backdrop-blur-md',
+ 'rounded-t-3xl border border-t bg-background/95 shadow-sm backdrop-blur-md',
'z-[var(--arcane-z-surface)] flex max-h-[85vh] flex-col'
)}
>
@@ -142,14 +142,14 @@
<div class="scrollbar-hide flex-1 overflow-y-auto px-6">
<div class="space-y-8">
<section>
- <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-semibold tracking-widest uppercase">
+ <h4 class="mb-4 px-3 text-[11px] font-semibold tracking-widest text-muted-foreground/70 uppercase">
{m.sidebar_management()}
</h4>
{@render navItems(managementItems, true)}
</section>
<section>
- <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-semibold tracking-widest uppercase">
+ <h4 class="mb-4 px-3 text-[11px] font-semibold tracking-widest text-muted-foreground/70 uppercase">
{m.sidebar_resources()}
</h4>
{@render navItems(resourceItems, true)}
@@ -157,7 +157,7 @@
{#if swarmItems.length > 0}
<section>
- <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-semibold tracking-widest uppercase">
+ <h4 class="mb-4 px-3 text-[11px] font-semibold tracking-widest text-muted-foreground/70 uppercase">
{m.swarm_title()}
</h4>
<div class="space-y-2">
@@ -170,7 +170,7 @@
{#if settingsItems.length > 0}
<section>
- <h4 class="text-muted-foreground/70 mb-4 px-3 text-[11px] font-semibold tracking-widest uppercase">
+ <h4 class="mb-4 px-3 text-[11px] font-semibold tracking-widest text-muted-foreground/70 uppercase">
{m.sidebar_administration()}
</h4>
{@render navItems(settingsItems, false)}
@@ -179,9 +179,9 @@
</div>
</div>
- <div class="border-border/30 border-t px-6 pt-4 pb-4">
+ <div class="border-t border-border/30 px-6 pt-4 pb-4">
{#if versionInformation}
- <div class="text-muted-foreground/60 text-center text-xs">
+ <div class="text-center text-xs text-muted-foreground/60">
<p class="font-medium">
{m.layout_title()}
{versionInformation.displayVersion ?? versionInformation.currentVersion}
diff --git a/frontend/src/lib/components/mobile-nav/mobile-nav.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav.svelte
index cb161c603..3de5aff05 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav.svelte
@@ -162,8 +162,8 @@
mode === 'floating'
? 'fixed left-1/2 z-[var(--arcane-z-app-chrome)] -translate-x-1/2 transform'
: 'fixed right-0 bottom-0 left-0 z-[var(--arcane-z-app-chrome)] gap-2',
- 'bg-background/60 border-border/30 backdrop-blur-xl',
- 'shadow-sm select-none transition-all duration-300 ease-out',
+ 'border-border/30 bg-background/60 backdrop-blur-xl',
+ 'shadow-sm transition-all duration-300 ease-out select-none',
'flex items-center',
mode === 'floating'
? cn(
@@ -171,7 +171,7 @@
// On very small screens, tighten spacing so labeled items + center action fit.
showLabels ? 'gap-1.5 px-2.5 py-1.5 sm:gap-2 sm:px-3 sm:py-2' : 'gap-2.5 px-3.5 py-2 sm:gap-3 sm:px-4 sm:py-2.5'
)
- : cn('border-t border-border/50 justify-around', showLabels ? 'px-4 pt-2 pb-4' : 'px-4 pt-2.5 pb-4'),
+ : cn('justify-around border-t border-border/50', showLabels ? 'px-4 pt-2 pb-4' : 'px-4 pt-2.5 pb-4'),
visible
? mode === 'floating'
? 'translate-y-0 scale-100 opacity-100'
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 764508dda..1ade2a011 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-user-card.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-user-card.svelte
@@ -40,19 +40,19 @@
}
</script>
-<div class={`bg-muted/30 border-border dark:border-border/20 overflow-hidden rounded-3xl border-2 ${className}`}>
+<div class={`overflow-hidden rounded-3xl border-2 border-border bg-muted/30 dark:border-border/20 ${className}`}>
<button
- class="hover:bg-muted/40 flex w-full items-center gap-4 p-5 text-left transition-all duration-200"
+ class="flex w-full items-center gap-4 p-5 text-left transition-all duration-200 hover:bg-muted/40"
onclick={() => (userCardExpanded = !userCardExpanded)}
>
- <div class="bg-muted/50 flex h-14 w-14 items-center justify-center rounded-2xl">
- <span class="text-foreground text-xl font-semibold">
+ <div class="flex h-14 w-14 items-center justify-center rounded-2xl bg-muted/50">
+ <span class="text-xl font-semibold text-foreground">
{(effectiveUser.displayName || effectiveUser.username)?.charAt(0).toUpperCase() || 'U'}
</span>
</div>
<div class="flex-1">
- <h3 class="text-foreground text-lg font-semibold">{effectiveUser.displayName || effectiveUser.username}</h3>
- <p class="text-muted-foreground/80 text-sm">
+ <h3 class="text-lg font-semibold text-foreground">{effectiveUser.displayName || effectiveUser.username}</h3>
+ <p class="text-sm text-muted-foreground/80">
{userStore.isGlobalAdmin() ? m.common_admin() : m.common_user()}
</p>
</div>
@@ -72,7 +72,7 @@
size="icon"
type="submit"
title={m.common_logout()}
- class="text-muted-foreground hover:text-destructive hover:bg-destructive/10 h-10 w-10 rounded-xl transition-all duration-200 hover:scale-105"
+ class="h-10 w-10 rounded-xl text-muted-foreground transition-all duration-200 hover:scale-105 hover:bg-destructive/10 hover:text-destructive"
onclick={(e) => e.stopPropagation()}
>
<LogoutIcon class="size-5" />
@@ -83,13 +83,13 @@
</button>
{#if userCardExpanded}
- <div class="border-border/20 bg-muted/10 space-y-4 border-t p-4">
+ <div class="space-y-4 border-t border-border/20 bg-muted/10 p-4">
<IfPermitted adminOnly>
<button
- class="bg-background/50 border-border/20 hover:bg-muted/30 flex w-full items-center gap-3 rounded-2xl border p-4 text-left transition-colors"
+ class="flex w-full items-center gap-3 rounded-2xl border border-border/20 bg-background/50 p-4 text-left transition-colors hover:bg-muted/30"
onclick={() => (envDialogOpen = true)}
>
- <div class="bg-primary/10 text-primary flex aspect-square size-8 shrink-0 items-center justify-center rounded-lg">
+ <div class="flex aspect-square size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary">
{#if environmentStore.selected?.id === '0'}
<EnvironmentsIcon class="size-4" />
{:else}
@@ -97,45 +97,45 @@
{/if}
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground/70 text-xs font-medium tracking-widest uppercase">
+ <div class="text-xs font-medium tracking-widest text-muted-foreground/70 uppercase">
{m.sidebar_environment_label()}
</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-sm font-medium text-foreground">
{environmentStore.selected ? environmentStore.selected.name : m.sidebar_no_environment()}
</div>
{#if environmentStore.selected}
- <div class="text-muted-foreground/60 truncate text-xs">
+ <div class="truncate text-xs text-muted-foreground/60">
{getConnectionString()}
</div>
{/if}
</div>
- <ArrowRightIcon class="text-muted-foreground/60 size-5 shrink-0" />
+ <ArrowRightIcon class="size-5 shrink-0 text-muted-foreground/60" />
</button>
</IfPermitted>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
- <div class="bg-background/50 border-border/20 rounded-2xl border p-4">
+ <div class="rounded-2xl border border-border/20 bg-background/50 p-4">
<div class="flex h-full items-center gap-3">
- <div class="bg-primary/10 text-primary flex aspect-square size-8 items-center justify-center rounded-lg">
+ <div class="flex aspect-square size-8 items-center justify-center rounded-lg bg-primary/10 text-primary">
<LanguageIcon class="size-4" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground/70 mb-1 text-xs font-medium tracking-widest uppercase">
+ <div class="mb-1 text-xs font-medium tracking-widest text-muted-foreground/70 uppercase">
{m.common_select_locale()}
</div>
- <div class="text-foreground text-sm font-medium"></div>
+ <div class="text-sm font-medium text-foreground"></div>
</div>
<LocalePicker
inline={true}
id="mobileLocalePicker"
- class="bg-background/50 border-border/30 text-foreground h-9 w-32 text-sm font-medium"
+ class="h-9 w-32 border-border/30 bg-background/50 text-sm font-medium text-foreground"
/>
</div>
</div>
- <div class="bg-background/50 border-border/20 rounded-2xl border p-4">
+ <div class="rounded-2xl border border-border/20 bg-background/50 p-4">
<div class="flex h-full flex-col justify-center gap-2">
- <div class="text-muted-foreground/70 text-xs font-medium tracking-widest uppercase">
+ <div class="text-xs font-medium tracking-widest text-muted-foreground/70 uppercase">
{m.common_toggle_theme()}
</div>
<ThemeModeSelector class="grid w-full grid-cols-3" />
diff --git a/frontend/src/lib/components/network-card-header.svelte b/frontend/src/lib/components/network-card-header.svelte
index 9ada6250e..ebc4a95aa 100644
--- a/frontend/src/lib/components/network-card-header.svelte
+++ b/frontend/src/lib/components/network-card-header.svelte
@@ -10,12 +10,12 @@
let { name, children }: Props = $props();
</script>
-<div class="border-border mb-4 flex items-center gap-3 border-b pb-4">
+<div class="mb-4 flex items-center gap-3 border-b border-border pb-4">
<div class="rounded-lg bg-blue-500/10 p-2">
<NetworksIcon class="size-5 text-blue-500" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-foreground text-base font-semibold break-all">
+ <div class="text-base font-semibold break-all text-foreground">
{name}
</div>
{#if children}
diff --git a/frontend/src/lib/components/network-diagram/network-diagram.svelte b/frontend/src/lib/components/network-diagram/network-diagram.svelte
index 1963447ab..420a9393d 100644
--- a/frontend/src/lib/components/network-diagram/network-diagram.svelte
+++ b/frontend/src/lib/components/network-diagram/network-diagram.svelte
@@ -473,7 +473,7 @@
<div class="flex flex-wrap items-center gap-2">
<Badge variant="violet">{m.networks_topology_legend_networks()}</Badge>
<Badge variant="emerald">{m.networks_topology_legend_containers()}</Badge>
- <p class="text-muted-foreground text-sm">{m.networks_topology_hint()}</p>
+ <p class="text-sm text-muted-foreground">{m.networks_topology_hint()}</p>
{#if presentDefaults.length > 0}
<div class="ml-auto">
<DropdownMenu.Root>
@@ -485,7 +485,7 @@
tone="ghost"
icon={EyeOnIcon}
customLabel={`${m.networks_topology_default_networks()} (${visibleDefaultsCount}/${presentDefaults.length})`}
- class="border-input hover:bg-card/60 border hover:text-inherit"
+ class="border border-input hover:bg-card/60 hover:text-inherit"
/>
{/snippet}
</DropdownMenu.Trigger>
@@ -508,8 +508,8 @@
</div>
{#if topology.nodes.length === 0}
- <div class="bg-card border-border/70 rounded-3xl border px-6 py-16 text-center shadow-sm">
- <p class="text-foreground text-base font-medium">{m.networks_topology_empty()}</p>
+ <div class="rounded-3xl border border-border/70 bg-card px-6 py-16 text-center shadow-sm">
+ <p class="text-base font-medium text-foreground">{m.networks_topology_empty()}</p>
</div>
{:else if browser && isReady}
<div
diff --git a/frontend/src/lib/components/oidc-status-panel.svelte b/frontend/src/lib/components/oidc-status-panel.svelte
index 56ab89369..7e65b7dbf 100644
--- a/frontend/src/lib/components/oidc-status-panel.svelte
+++ b/frontend/src/lib/components/oidc-status-panel.svelte
@@ -14,15 +14,15 @@
let { busy, busyTitle, busyDescription, error, children }: Props = $props();
</script>
-<div class="bg-background flex min-h-screen items-center justify-center">
+<div class="flex min-h-screen items-center justify-center bg-background">
<div class="w-full max-w-md space-y-8">
<div class="flex flex-col items-center text-center">
{#if busy}
- <Spinner class="text-primary size-12" />
+ <Spinner class="size-12 text-primary" />
<h2 class="mt-6 text-2xl font-semibold">{busyTitle}</h2>
- <p class="text-muted-foreground mt-2 text-sm">{busyDescription}</p>
+ <p class="mt-2 text-sm text-muted-foreground">{busyDescription}</p>
{:else if error}
- <div class="text-destructive flex flex-col items-center">
+ <div class="flex flex-col items-center text-destructive">
<svg class="h-12 w-12" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path
stroke-linecap="round"
@@ -33,7 +33,7 @@
</svg>
<h2 class="mt-6 text-2xl font-semibold">{m.auth_authentication_error_title()}</h2>
<p class="mt-2 text-sm">{error}</p>
- <p class="text-muted-foreground mt-4 text-xs">{m.auth_redirecting_to_login()}</p>
+ <p class="mt-4 text-xs text-muted-foreground">{m.auth_redirecting_to_login()}</p>
</div>
{:else}
{@render children?.()}
diff --git a/frontend/src/lib/components/project-update-item.svelte b/frontend/src/lib/components/project-update-item.svelte
index 607ff860d..06dee8e17 100644
--- a/frontend/src/lib/components/project-update-item.svelte
+++ b/frontend/src/lib/components/project-update-item.svelte
@@ -132,11 +132,11 @@
{#snippet recheckButton()}
{#if canCheck}
- <div class="border-border/50 bg-muted/50 border-t p-3">
+ <div class="border-t border-border/50 bg-muted/50 p-3">
<button
onclick={handleCheckClick}
disabled={checking}
- class="group bg-secondary/80 text-secondary-foreground hover:bg-secondary flex w-full items-center justify-center gap-2 rounded-lg px-3 py-2 text-xs font-medium shadow-sm transition-all hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50"
+ class="group flex w-full items-center justify-center gap-2 rounded-lg bg-secondary/80 px-3 py-2 text-xs font-medium text-secondary-foreground shadow-sm transition-all hover:bg-secondary hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50"
>
{#if checking}
<Spinner class="size-3" />
@@ -235,7 +235,7 @@
<div class="bg-transparent p-4">
<div class="space-y-3">
{#if summaryText}
- <div class="text-muted-foreground flex items-center gap-2 text-xs">
+ <div class="flex items-center gap-2 text-xs text-muted-foreground">
<ImagesIcon class="size-3.5" />
<span>{summaryText}</span>
</div>
@@ -243,23 +243,23 @@
{#if status === 'has_update' && updatedImageRefs.length > 0}
<div class="space-y-2">
- <div class="text-foreground text-[11px] font-medium tracking-wide uppercase">{m.images_has_updates()}</div>
+ <div class="text-[11px] font-medium tracking-wide text-foreground uppercase">{m.images_has_updates()}</div>
<div class="max-h-40 space-y-1 overflow-auto">
{#each updatedImageRefs as imageRef (imageRef)}
- <div class="bg-muted text-foreground rounded-md px-2 py-1 font-mono text-xs break-all">
+ <div class="rounded-md bg-muted px-2 py-1 font-mono text-xs break-all text-foreground">
{imageRef}
</div>
{/each}
</div>
</div>
{:else if status === 'up_to_date'}
- <div class="text-muted-foreground text-xs leading-relaxed">{m.image_update_up_to_date_desc()}</div>
+ <div class="text-xs leading-relaxed text-muted-foreground">{m.image_update_up_to_date_desc()}</div>
{:else if status === 'error'}
- <div class="text-muted-foreground text-xs leading-relaxed">
+ <div class="text-xs leading-relaxed text-muted-foreground">
{errorMessage || m.image_update_could_not_query_registry()}
</div>
{:else}
- <div class="text-muted-foreground text-xs leading-relaxed">
+ <div class="text-xs leading-relaxed text-muted-foreground">
{#if canCheck}
{m.image_update_click_to_check()}
{:else}
@@ -269,14 +269,14 @@
{/if}
{#if errorCount > 0 && status !== 'error'}
- <div class="text-muted-foreground flex items-center gap-2 text-xs">
+ <div class="flex items-center gap-2 text-xs text-muted-foreground">
<AlertIcon class="size-3.5 text-red-500" />
<span>{errorCount} {m.common_error()}</span>
</div>
{/if}
{#if lastCheckedAtLabel}
- <div class="text-muted-foreground flex items-center gap-2 text-xs">
+ <div class="flex items-center gap-2 text-xs text-muted-foreground">
<ClockIcon class="size-3.5" />
<span>{lastCheckedAtLabel}</span>
</div>
diff --git a/frontend/src/lib/components/property-item.svelte b/frontend/src/lib/components/property-item.svelte
index 9a124a0bf..7f25512cd 100644
--- a/frontend/src/lib/components/property-item.svelte
+++ b/frontend/src/lib/components/property-item.svelte
@@ -43,7 +43,7 @@
<Icon class="size-5 {colorClasses[color].text}" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">{label}</p>
+ <p class="text-sm font-medium text-muted-foreground">{label}</p>
{#if children}
{@render children()}
{:else}
diff --git a/frontend/src/lib/components/prune/prune-mode-card.svelte b/frontend/src/lib/components/prune/prune-mode-card.svelte
index 0c28d9326..7fdfcd9f9 100644
--- a/frontend/src/lib/components/prune/prune-mode-card.svelte
+++ b/frontend/src/lib/components/prune/prune-mode-card.svelte
@@ -130,10 +130,10 @@
}
</script>
-<div class="bg-muted/20 ring-border/20 flex h-full flex-col gap-2.5 rounded-lg p-3 ring-1">
+<div class="flex h-full flex-col gap-2.5 rounded-lg bg-muted/20 p-3 ring-1 ring-border/20">
<div class="space-y-0.5">
<p class="text-xs font-medium">{title}</p>
- <p class="text-muted-foreground text-[11px] leading-tight">{description}</p>
+ <p class="text-[11px] leading-tight text-muted-foreground">{description}</p>
</div>
<Tabs.Root {value} onValueChange={handleModeChange}>
@@ -144,7 +144,7 @@
{disabled}
class={cn(
'h-6 flex-1 text-xs',
- option.destructive && value === option.value && 'bg-destructive/15 text-destructive hover:bg-destructive/10 shadow-sm'
+ option.destructive && value === option.value && 'bg-destructive/15 text-destructive shadow-sm hover:bg-destructive/10'
)}
>
{option.label}
@@ -165,7 +165,7 @@
placeholder={m.prune_duration_placeholder()}
/>
<select
- class="border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring h-8 rounded-md border px-2.5 py-1 text-xs focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50"
+ class="h-8 rounded-md border border-input bg-background px-2.5 py-1 text-xs ring-offset-background placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50"
value={durationUnitInternal}
onchange={handleDurationUnitChangeInternal}
{disabled}
@@ -175,7 +175,7 @@
{/each}
</select>
</div>
- <p class="text-muted-foreground text-xs">{m.prune_duration_help()}</p>
+ <p class="text-xs text-muted-foreground">{m.prune_duration_help()}</p>
{/if}
{#if warningDescription && getSelectedOptionInternal()?.destructive}
diff --git a/frontend/src/lib/components/resizable-split.svelte b/frontend/src/lib/components/resizable-split.svelte
index 0ea6774d0..580e8b039 100644
--- a/frontend/src/lib/components/resizable-split.svelte
+++ b/frontend/src/lib/components/resizable-split.svelte
@@ -261,14 +261,14 @@
onpointerdown={startResize}
>
{#if variant === 'flush'}
- <div class="bg-border group-hover:bg-primary/50 w-px transition-colors"></div>
+ <div class="w-px bg-border transition-colors group-hover:bg-primary/50"></div>
<div class="absolute inset-y-0 -right-1 -left-1"></div>
{:else}
- <div class="bg-border group-hover:bg-primary/50 my-2 w-0.5 rounded-full transition-colors"></div>
+ <div class="my-2 w-0.5 rounded-full bg-border transition-colors group-hover:bg-primary/50"></div>
{/if}
{#if collapsedSide}
<button
- class="bg-background border-border text-muted-foreground hover:text-foreground focus-visible:ring-ring absolute inset-0 z-[var(--arcane-z-raised)] m-auto flex size-6 items-center justify-center rounded-full border shadow-sm focus-visible:ring-2 focus-visible:outline-none"
+ class="absolute inset-0 z-[var(--arcane-z-raised)] m-auto flex size-6 items-center justify-center rounded-full border border-border bg-background text-muted-foreground shadow-sm hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
onclick={(event) => {
event.stopPropagation();
restoreCollapsed();
diff --git a/frontend/src/lib/components/resource-error-page.svelte b/frontend/src/lib/components/resource-error-page.svelte
index 8b008361a..b3b9acb72 100644
--- a/frontend/src/lib/components/resource-error-page.svelte
+++ b/frontend/src/lib/components/resource-error-page.svelte
@@ -22,7 +22,7 @@
<Empty.Root>
<Empty.Header>
<Empty.Media variant="icon">
- <AlertIcon class="text-destructive size-16" aria-hidden="true" />
+ <AlertIcon class="size-16 text-destructive" aria-hidden="true" />
</Empty.Media>
<Empty.Title>
{status === 404 ? m.error_not_found() : fallbackTitle}
diff --git a/frontend/src/lib/components/resource-not-found.svelte b/frontend/src/lib/components/resource-not-found.svelte
index 425d43d86..592c3bf11 100644
--- a/frontend/src/lib/components/resource-not-found.svelte
+++ b/frontend/src/lib/components/resource-not-found.svelte
@@ -18,11 +18,11 @@
<div class="flex min-h-screen items-center justify-center">
<div class="text-center">
- <div class="bg-muted/50 mb-6 inline-flex rounded-full p-6">
- <AlertIcon class="text-muted-foreground size-10" />
+ <div class="mb-6 inline-flex rounded-full bg-muted/50 p-6">
+ <AlertIcon class="size-10 text-muted-foreground" />
</div>
<h2 class="mb-3 text-2xl font-medium">{m.common_not_found_title({ resource })}</h2>
- <p class="text-muted-foreground mb-8 max-w-md text-center">
+ <p class="mb-8 max-w-md text-center text-muted-foreground">
{m.common_not_found_description({ resource: resource.toLowerCase() })}
</p>
<div class="flex justify-center gap-4">
diff --git a/frontend/src/lib/components/role-editor/permission-picker.svelte b/frontend/src/lib/components/role-editor/permission-picker.svelte
index 2c87eb81c..ddad6ca9e 100644
--- a/frontend/src/lib/components/role-editor/permission-picker.svelte
+++ b/frontend/src/lib/components/role-editor/permission-picker.svelte
@@ -113,7 +113,7 @@
<div class="flex flex-col gap-0.5">
<span class="text-sm leading-none font-medium">{preset.label}</span>
{#if preset.description}
- <span class="text-muted-foreground text-xs">{preset.description}</span>
+ <span class="text-xs text-muted-foreground">{preset.description}</span>
{/if}
</div>
</label>
@@ -126,7 +126,7 @@
{/if}
{#if filteredGroups.length === 0}
- <p class="text-muted-foreground py-6 text-center text-sm">{m.permissions_no_matches()}</p>
+ <p class="py-6 text-center text-sm text-muted-foreground">{m.permissions_no_matches()}</p>
{:else}
<Accordion.Root type="multiple" value={openValues} class="w-full">
{#each filteredGroups as group (group.resource.key)}
@@ -175,9 +175,9 @@
/>
<div class="flex flex-col gap-0.5">
<span class="text-sm leading-none font-medium">{action.label}</span>
- <code class="text-muted-foreground text-xs">{action.permission}</code>
+ <code class="text-xs text-muted-foreground">{action.permission}</code>
{#if action.description}
- <span class="text-muted-foreground text-xs">{action.description}</span>
+ <span class="text-xs text-muted-foreground">{action.description}</span>
{/if}
</div>
</label>
diff --git a/frontend/src/lib/components/role-editor/role-editor.svelte b/frontend/src/lib/components/role-editor/role-editor.svelte
index a4cb62c75..fc36ee742 100644
--- a/frontend/src/lib/components/role-editor/role-editor.svelte
+++ b/frontend/src/lib/components/role-editor/role-editor.svelte
@@ -82,7 +82,7 @@
/>
<div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{m.roles_permissions_count({ count: selectedCount, total: totalPermissions })}
</div>
{#if $inputs.permissions?.error}
@@ -91,7 +91,7 @@
</div>
{#if isBuiltIn}
- <p class="text-muted-foreground text-xs">{m.roles_built_in_note()}</p>
+ <p class="text-xs text-muted-foreground">{m.roles_built_in_note()}</p>
{/if}
{#if isBuiltIn && onClone}
diff --git a/frontend/src/lib/components/settings/lifecycle-security-settings.svelte b/frontend/src/lib/components/settings/lifecycle-security-settings.svelte
index 7e241d0c1..1ee1d7f69 100644
--- a/frontend/src/lib/components/settings/lifecycle-security-settings.svelte
+++ b/frontend/src/lib/components/settings/lifecycle-security-settings.svelte
@@ -36,7 +36,7 @@
</Card.Title>
</div>
</Card.Header>
- <Card.Content class="divide-border/40 divide-y lg:p-6 lg:pt-0 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
+ <Card.Content class="divide-y divide-border/40 lg:p-6 lg:pt-0 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
<SettingsRow
label={m.security_lifecycle_enabled_label()}
description={m.security_lifecycle_enabled_description()}
diff --git a/frontend/src/lib/components/settings/settings-row.svelte b/frontend/src/lib/components/settings/settings-row.svelte
index 24a8d6b63..dfdd937e0 100644
--- a/frontend/src/lib/components/settings/settings-row.svelte
+++ b/frontend/src/lib/components/settings/settings-row.svelte
@@ -20,12 +20,12 @@
<div class={wrapperClass}>
<Label class="text-sm font-medium">{label}</Label>
{#if description}
- <p class="text-muted-foreground mt-0.5 text-xs">{description}</p>
+ <p class="mt-0.5 text-xs text-muted-foreground">{description}</p>
{/if}
{#if typeof helpText === 'function'}
{@render helpText()}
{:else if helpText}
- <p class="text-muted-foreground mt-1 text-xs">{helpText}</p>
+ <p class="mt-1 text-xs text-muted-foreground">{helpText}</p>
{/if}
{#if labelExtra}
{@render labelExtra()}
diff --git a/frontend/src/lib/components/settings/trivy-security-settings.svelte b/frontend/src/lib/components/settings/trivy-security-settings.svelte
index 9b14624b4..c98fa64af 100644
--- a/frontend/src/lib/components/settings/trivy-security-settings.svelte
+++ b/frontend/src/lib/components/settings/trivy-security-settings.svelte
@@ -158,7 +158,7 @@
</Card.Title>
</div>
</Card.Header>
- <Card.Content class="divide-border/40 divide-y lg:p-6 lg:pt-0 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
+ <Card.Content class="divide-y divide-border/40 lg:p-6 lg:pt-0 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
<div class="max-w-xl">
<TextInputWithLabel
bind:value={$formInputs.trivyImage.value}
@@ -199,7 +199,7 @@
class="w-full justify-between"
/>
{#if $formInputs.trivyNetwork.error}
- <p class="text-destructive mt-2 text-sm">{$formInputs.trivyNetwork.error}</p>
+ <p class="mt-2 text-sm text-destructive">{$formInputs.trivyNetwork.error}</p>
{/if}
</SettingsRow>
@@ -212,7 +212,7 @@
<Switch id="trivyServerEnabledSwitch" bind:checked={$formInputs.trivyServerEnabled.value} />
</SettingsRow>
{#if $formInputs.trivyServerEnabled.value}
- <div class="border-border/60 space-y-4 border-l-2 pl-5">
+ <div class="space-y-4 border-l-2 border-border/60 pl-5">
<TextInputWithLabel
bind:value={$formInputs.trivyServerUrl.value}
error={$formInputs.trivyServerUrl.error}
@@ -251,7 +251,7 @@
rows={4}
/>
{#if $formInputs.trivySecurityOpts.error}
- <p class="text-destructive mt-2 text-sm">{$formInputs.trivySecurityOpts.error}</p>
+ <p class="mt-2 text-sm text-destructive">{$formInputs.trivySecurityOpts.error}</p>
{/if}
</SettingsRow>
@@ -292,7 +292,7 @@
/>
</SettingsRow>
{#if $formInputs.trivyResourceLimitsEnabled.value}
- <div class="border-border/60 space-y-4 border-l-2 pl-5">
+ <div class="space-y-4 border-l-2 border-border/60 pl-5">
<div class="grid gap-4 sm:grid-cols-2">
<TextInputWithLabel
bind:value={$formInputs.trivyCpuLimit.value}
diff --git a/frontend/src/lib/components/sheets/api-key-form-sheet.svelte b/frontend/src/lib/components/sheets/api-key-form-sheet.svelte
index bc03ecab8..5d4461ca3 100644
--- a/frontend/src/lib/components/sheets/api-key-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/api-key-form-sheet.svelte
@@ -121,7 +121,7 @@
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
{#if isBootstrapApiKey && !isStaticApiKey}
- <p class="text-muted-foreground text-sm">{m.api_key_bootstrap_locked_description()}</p>
+ <p class="text-sm text-muted-foreground">{m.api_key_bootstrap_locked_description()}</p>
{/if}
<FormInput
label={m.api_key_name()}
@@ -148,14 +148,14 @@
/>
{#if !isReadOnlyApiKey}
{#if hidePermissions}
- <p class="text-muted-foreground text-sm">{m.api_key_personal_inherits_description()}</p>
+ <p class="text-sm text-muted-foreground">{m.api_key_personal_inherits_description()}</p>
{:else if manifest}
<div>
<label for="permissions" class="text-sm font-medium">{m.roles_permissions_label()}</label>
- <p class="text-muted-foreground mb-3 text-xs">{m.api_key_permissions_description()}</p>
+ <p class="mb-3 text-xs text-muted-foreground">{m.api_key_permissions_description()}</p>
<PermissionPicker {manifest} bind:selected={$inputs.permissions.value} showSearch />
{#if $inputs.permissions.error}
- <p class="text-destructive mt-1 text-xs">{$inputs.permissions.error}</p>
+ <p class="mt-1 text-xs text-destructive">{$inputs.permissions.error}</p>
{/if}
</div>
{/if}
diff --git a/frontend/src/lib/components/sheets/create-network-sheet.svelte b/frontend/src/lib/components/sheets/create-network-sheet.svelte
index 664313ff5..74e2ed71c 100644
--- a/frontend/src/lib/components/sheets/create-network-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-network-sheet.svelte
@@ -156,9 +156,9 @@
class={$inputs.networkName.error ? 'border-destructive' : ''}
/>
{#if $inputs.networkName.error}
- <p class="text-destructive text-xs">{$inputs.networkName.error}</p>
+ <p class="text-xs text-destructive">{$inputs.networkName.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">{m.network_name_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.network_name_description()}</p>
</div>
<SelectWithLabel
@@ -227,9 +227,9 @@
class={$inputs.networkLabels.error ? 'border-destructive' : ''}
/>
{#if $inputs.networkLabels.error}
- <p class="text-destructive text-xs">{$inputs.networkLabels.error}</p>
+ <p class="text-xs text-destructive">{$inputs.networkLabels.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">{m.network_labels_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.network_labels_description()}</p>
</div>
</div>
</Accordion.Content>
@@ -249,9 +249,9 @@
class={$inputs.driverOptions.error ? 'border-destructive' : ''}
/>
{#if $inputs.driverOptions.error}
- <p class="text-destructive text-xs">{$inputs.driverOptions.error}</p>
+ <p class="text-xs text-destructive">{$inputs.driverOptions.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">{m.network_driver_options_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.network_driver_options_description()}</p>
</div>
</Accordion.Content>
</Accordion.Item>
@@ -266,7 +266,7 @@
</div>
{#if $inputs.enableIpam.value}
- <div class="border-muted space-y-4 border-l-2 pl-6">
+ <div class="space-y-4 border-l-2 border-muted pl-6">
<div class="space-y-2">
<Label for="subnet" class="text-sm font-medium">{m.common_subnet()}</Label>
<Input
@@ -278,9 +278,9 @@
class={$inputs.subnet.error ? 'border-destructive' : ''}
/>
{#if $inputs.subnet.error}
- <p class="text-destructive text-xs">{$inputs.subnet.error}</p>
+ <p class="text-xs text-destructive">{$inputs.subnet.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">{m.network_subnet_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.network_subnet_description()}</p>
</div>
<div class="space-y-2">
@@ -294,9 +294,9 @@
class={$inputs.gateway.error ? 'border-destructive' : ''}
/>
{#if $inputs.gateway.error}
- <p class="text-destructive text-xs">{$inputs.gateway.error}</p>
+ <p class="text-xs text-destructive">{$inputs.gateway.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">{m.network_gateway_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.network_gateway_description()}</p>
</div>
</div>
{/if}
diff --git a/frontend/src/lib/components/sheets/federated-credential-form-sheet.svelte b/frontend/src/lib/components/sheets/federated-credential-form-sheet.svelte
index 8578a22f1..7db76447e 100644
--- a/frontend/src/lib/components/sheets/federated-credential-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/federated-credential-form-sheet.svelte
@@ -252,7 +252,7 @@
<Label for="federated-enabled" class="mb-0 text-sm leading-none font-medium">
{m.federated_credential_enabled_label()}
</Label>
- <p class="text-muted-foreground text-[0.8rem]">
+ <p class="text-[0.8rem] text-muted-foreground">
{m.federated_credential_enabled_description()}
</p>
</div>
diff --git a/frontend/src/lib/components/sheets/git-repository-sheet.svelte b/frontend/src/lib/components/sheets/git-repository-sheet.svelte
index bc321f78c..772401802 100644
--- a/frontend/src/lib/components/sheets/git-repository-sheet.svelte
+++ b/frontend/src/lib/components/sheets/git-repository-sheet.svelte
@@ -214,24 +214,24 @@
<Select.Item value="accept_new">
<div class="flex flex-col">
<span>{m.git_repository_ssh_host_key_accept_new()}</span>
- <span class="text-muted-foreground text-xs">{m.git_repository_ssh_host_key_accept_new_description()}</span>
+ <span class="text-xs text-muted-foreground">{m.git_repository_ssh_host_key_accept_new_description()}</span>
</div>
</Select.Item>
<Select.Item value="strict">
<div class="flex flex-col">
<span>{m.git_repository_ssh_host_key_strict()}</span>
- <span class="text-muted-foreground text-xs">{m.git_repository_ssh_host_key_strict_description()}</span>
+ <span class="text-xs text-muted-foreground">{m.git_repository_ssh_host_key_strict_description()}</span>
</div>
</Select.Item>
<Select.Item value="skip">
<div class="flex flex-col">
<span>{m.git_repository_ssh_host_key_skip()}</span>
- <span class="text-muted-foreground text-xs">{m.git_repository_ssh_host_key_skip_description()}</span>
+ <span class="text-xs text-muted-foreground">{m.git_repository_ssh_host_key_skip_description()}</span>
</div>
</Select.Item>
</Select.Content>
</Select.Root>
- <p class="text-muted-foreground text-xs">{m.git_repository_ssh_host_key_verification_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.git_repository_ssh_host_key_verification_description()}</p>
</div>
{/if}
diff --git a/frontend/src/lib/components/sheets/new-environment-sheet.svelte b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
index 7e57f3dd6..769efc241 100644
--- a/frontend/src/lib/components/sheets/new-environment-sheet.svelte
+++ b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
@@ -226,7 +226,7 @@
{#if createdEnvironment}
<div class="space-y-4">
{#if createdEnvironment.isEdge}
- <div class="bg-primary/10 text-primary flex items-center gap-2 rounded-lg p-3 text-sm">
+ <div class="flex items-center gap-2 rounded-lg bg-primary/10 p-3 text-sm text-primary">
<EdgeConnectionIcon class="size-5" />
<span>{m.env_edge_agent_desc()}</span>
</div>
@@ -235,21 +235,21 @@
<div class="space-y-2">
<div class="text-sm font-medium">{m.environments_api_key()}</div>
<div class="flex items-center gap-2">
- <code class="bg-muted flex-1 rounded-md px-3 py-2 font-mono text-sm break-all">
+ <code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all">
{createdEnvironment.apiKey}
</code>
{#if createdEnvironment.apiKey}
<CopyButton text={createdEnvironment.apiKey} size="icon" class="size-7" />
{/if}
</div>
- <p class="text-muted-foreground text-xs">{m.environments_api_key_warning()}</p>
+ <p class="text-xs text-muted-foreground">{m.environments_api_key_warning()}</p>
</div>
{#if createdEnvironment.mtlsEnabled}
<div class="space-y-3 rounded-lg border border-sky-500/25 bg-sky-500/8 p-4">
<div class="space-y-1">
<p class="text-sm font-medium">{m.environments_new_agent_mtls_enabled()}</p>
- <p class="text-muted-foreground text-xs">
+ <p class="text-xs text-muted-foreground">
{m.environments_new_agent_mtls_auto_enroll()}
</p>
</div>
@@ -305,7 +305,7 @@
</Tabs.List>
<Tabs.Content value="direct" class="mt-4">
- <p class="text-muted-foreground mb-4 text-sm">
+ <p class="mb-4 text-sm text-muted-foreground">
{m.environments_direct_desc()}
</p>
<form onsubmit={preventDefault(handleDirectSubmit)} class="space-y-4">
@@ -339,7 +339,7 @@
</Tabs.Content>
<Tabs.Content value="edge" class="mt-4">
- <p class="text-muted-foreground mb-4 text-sm">
+ <p class="mb-4 text-sm text-muted-foreground">
{m.environments_edge_desc()}
</p>
<form onsubmit={preventDefault(handleEdgeSubmit)} class="space-y-4">
diff --git a/frontend/src/lib/components/sheets/role-scope-selects.svelte b/frontend/src/lib/components/sheets/role-scope-selects.svelte
index 62ef5de00..cde0fd166 100644
--- a/frontend/src/lib/components/sheets/role-scope-selects.svelte
+++ b/frontend/src/lib/components/sheets/role-scope-selects.svelte
@@ -57,7 +57,7 @@
<div class="flex flex-col items-start gap-0.5">
<span class="font-medium">{role.name}</span>
{#if role.description}
- <span class="text-muted-foreground text-xs">{role.description}</span>
+ <span class="text-xs text-muted-foreground">{role.description}</span>
{/if}
</div>
</Select.Item>
@@ -65,7 +65,7 @@
</Select.Content>
</Select.Root>
{#if roleError}
- <p class="text-destructive text-xs font-medium">{roleError}</p>
+ <p class="text-xs font-medium text-destructive">{roleError}</p>
{/if}
</div>
<div class="space-y-2">
diff --git a/frontend/src/lib/components/sheets/user-form-sheet.svelte b/frontend/src/lib/components/sheets/user-form-sheet.svelte
index 652903e81..3cc64474a 100644
--- a/frontend/src/lib/components/sheets/user-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/user-form-sheet.svelte
@@ -176,12 +176,12 @@
<IfPermitted adminOnly>
<div>
<label for="roleAssignments" class="text-sm font-medium">{m.users_role_assignments_label()}</label>
- <p class="text-muted-foreground mb-2 text-xs">{m.users_role_assignments_description()}</p>
+ <p class="mb-2 text-xs text-muted-foreground">{m.users_role_assignments_description()}</p>
{#if assignmentsDisabled}
<Alert.Root variant="default" class="mb-3">
<Alert.Description>
{m.users_role_assignments_oidc_managed()}
- <a href="/settings/authentication" class="text-primary ml-2 underline">{m.users_role_assignments_oidc_link()}</a>
+ <a href="/settings/authentication" class="ml-2 text-primary underline">{m.users_role_assignments_oidc_link()}</a>
</Alert.Description>
</Alert.Root>
{/if}
@@ -192,7 +192,7 @@
disabled={assignmentsDisabled}
/>
{#if $inputs.roleAssignments.error}
- <p class="text-destructive mt-1 text-xs">{$inputs.roleAssignments.error}</p>
+ <p class="mt-1 text-xs text-destructive">{$inputs.roleAssignments.error}</p>
{/if}
</div>
</IfPermitted>
diff --git a/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte b/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte
index dd9170261..be275a889 100644
--- a/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte
@@ -32,7 +32,7 @@
onclick={() => onOpenDialog?.()}
>
{#if environmentStore.selected}
- <div class="bg-primary text-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg">
+ <div class="flex aspect-square size-8 items-center justify-center rounded-lg bg-primary text-primary-foreground">
{#if environmentStore.selected.id === '0'}
<EnvironmentsIcon class="size-4" />
{:else if environmentStore.selected.isEdge}
@@ -50,7 +50,7 @@
</span>
</div>
{:else}
- <div class="bg-primary text-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg">
+ <div class="flex aspect-square size-8 items-center justify-center rounded-lg bg-primary text-primary-foreground">
<EnvironmentsIcon class="size-4" />
</div>
<div class="grid flex-1 text-left text-sm leading-tight">
diff --git a/frontend/src/lib/components/sidebar/sidebar-item-tooltip-content.svelte b/frontend/src/lib/components/sidebar/sidebar-item-tooltip-content.svelte
index a1c990f35..1d2a5a3dd 100644
--- a/frontend/src/lib/components/sidebar/sidebar-item-tooltip-content.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-item-tooltip-content.svelte
@@ -22,7 +22,7 @@
{/if}
{#if showShortcut && shortcut?.length}
{@const displayKeys = formatShortcutKeys(shortcut)}
- <Kbd.Group class="text-muted-foreground inline-flex items-center gap-1">
+ <Kbd.Group class="inline-flex items-center gap-1 text-muted-foreground">
{#each displayKeys as key, index (index)}
<Kbd.Root
class="text-popover-foreground! in-data-[slot=tooltip-content]:text-popover-foreground! dark:in-data-[slot=tooltip-content]:text-popover-foreground!"
@@ -30,7 +30,7 @@
{key}
</Kbd.Root>
{#if index < displayKeys.length - 1}
- <span class="text-muted-foreground/70 text-[10px]">+</span>
+ <span class="text-[10px] text-muted-foreground/70">+</span>
{/if}
{/each}
</Kbd.Group>
diff --git a/frontend/src/lib/components/sidebar/sidebar-logo.svelte b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
index 67d0bb666..fd85601af 100644
--- a/frontend/src/lib/components/sidebar/sidebar-logo.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
@@ -12,7 +12,7 @@
<div
class={cn(
- 'border-border/30 flex border-b transition-all duration-300',
+ 'flex border-b border-border/30 transition-all duration-300',
isCollapsed ? 'h-16 items-center justify-center px-2' : 'h-14 items-center justify-center px-4'
)}
>
diff --git a/frontend/src/lib/components/sidebar/sidebar-pin-button.svelte b/frontend/src/lib/components/sidebar/sidebar-pin-button.svelte
index e901932a4..a11a3f635 100644
--- a/frontend/src/lib/components/sidebar/sidebar-pin-button.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-pin-button.svelte
@@ -26,7 +26,7 @@
action="base"
tone="ghost"
size="icon"
- class={cn('text-muted-foreground hover:text-foreground size-7', className)}
+ class={cn('size-7 text-muted-foreground hover:text-foreground', className)}
type="button"
disabled={sidebar.isTablet}
title={isPinned ? m.common_unpin_sidebar() : m.common_pin_sidebar()}
diff --git a/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte b/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte
index 5b827537b..3d379509a 100644
--- a/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte
@@ -55,10 +55,10 @@
<button
onclick={upgradeCheck.openDialog}
disabled={upgradeCheck.checkingUpgrade}
- class="hover:bg-muted/60 focus-visible:ring-primary/40 relative mx-auto flex size-8 items-center justify-center rounded-lg transition-colors focus-visible:ring-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
+ class="relative mx-auto flex size-8 items-center justify-center rounded-lg transition-colors hover:bg-muted/60 focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
{...props}
>
- <DownloadIcon class="text-foreground/80 size-4" />
+ <DownloadIcon class="size-4 text-foreground/80" />
<span class="absolute top-1 right-1 flex size-2">
<span class="absolute inline-flex size-2 animate-ping rounded-full bg-blue-500 opacity-70"></span>
<span class="relative inline-flex size-2 rounded-full bg-blue-500 ring-2 ring-[var(--sidebar)]"></span>
diff --git a/frontend/src/lib/components/sidebar/sidebar-user.svelte b/frontend/src/lib/components/sidebar/sidebar-user.svelte
index e2dec66b5..8194447ac 100644
--- a/frontend/src/lib/components/sidebar/sidebar-user.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-user.svelte
@@ -61,7 +61,7 @@
<!-- Gravatar failed, show fallback -->
{/await}
{/if}
- <Avatar.Fallback class="bg-primary text-primary-foreground rounded-lg text-sm font-semibold">
+ <Avatar.Fallback class="rounded-lg bg-primary text-sm font-semibold text-primary-foreground">
{user.displayName?.charAt(0).toUpperCase()}
</Avatar.Fallback>
</Avatar.Root>
@@ -77,7 +77,7 @@
{/snippet}
</DropdownMenu.Trigger>
<DropdownMenu.Content
- class="border-border/30 min-w-60 rounded-xl border p-1.5 shadow-lg backdrop-blur-2xl backdrop-saturate-150"
+ class="min-w-60 rounded-xl border border-border/30 p-1.5 shadow-lg backdrop-blur-2xl backdrop-saturate-150"
side="right"
align="end"
sideOffset={12}
@@ -108,14 +108,14 @@
<!-- Gravatar failed, show fallback -->
{/await}
{/if}
- <Avatar.Fallback class="bg-primary text-primary-foreground rounded-lg text-xs font-semibold">
+ <Avatar.Fallback class="rounded-lg bg-primary text-xs font-semibold text-primary-foreground">
{user.displayName?.charAt(0).toUpperCase()}
</Avatar.Fallback>
</Avatar.Root>
{/key}
<div class="grid min-w-0 flex-1 leading-tight">
<span class="truncate text-sm font-medium">{user.displayName}</span>
- <span class="text-muted-foreground truncate text-xs">{user.email}</span>
+ <span class="truncate text-xs text-muted-foreground">{user.email}</span>
</div>
</div>
@@ -123,13 +123,13 @@
<button
type="button"
- class="hover:bg-muted/60 text-foreground flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-sm transition-colors"
+ class="flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-sm text-foreground transition-colors hover:bg-muted/60"
onclick={() => {
dropdownOpen = false;
goto('/account');
}}
>
- <UserIcon class="text-muted-foreground size-4 shrink-0" />
+ <UserIcon class="size-4 shrink-0 text-muted-foreground" />
<span>{m.common_account()}</span>
</button>
@@ -137,7 +137,7 @@
<form action="/logout" method="POST" class="w-full">
<button
type="submit"
- class="hover:bg-destructive/10 text-destructive flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-sm transition-colors"
+ class="flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-sm text-destructive transition-colors hover:bg-destructive/10"
>
<LogoutIcon class="size-4 shrink-0" />
<span>{m.common_log_out()}</span>
diff --git a/frontend/src/lib/components/sidebar/sidebar.svelte b/frontend/src/lib/components/sidebar/sidebar.svelte
index e75f8fb23..aed42cf00 100644
--- a/frontend/src/lib/components/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar.svelte
@@ -143,7 +143,7 @@
<button
type="button"
onclick={() => (showVersionDialog = true)}
- class="text-muted-foreground/60 hover:text-muted-foreground cursor-pointer text-xs font-medium transition-colors"
+ class="cursor-pointer text-xs font-medium text-muted-foreground/60 transition-colors hover:text-muted-foreground"
>
{m.sidebar_version({
version: versionInformation?.displayVersion ?? versionInformation?.currentVersion ?? m.common_unknown()
diff --git a/frontend/src/lib/components/sidebar/update-available-banner.svelte b/frontend/src/lib/components/sidebar/update-available-banner.svelte
index 314b83ddc..1afd22698 100644
--- a/frontend/src/lib/components/sidebar/update-available-banner.svelte
+++ b/frontend/src/lib/components/sidebar/update-available-banner.svelte
@@ -21,7 +21,7 @@
{onclick}
{disabled}
class={cn(
- 'group hover:bg-muted/50 focus-visible:ring-primary/40 flex w-full items-center gap-2.5 text-left transition-colors focus-visible:ring-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60',
+ 'group flex w-full items-center gap-2.5 text-left transition-colors hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60',
className
)}
>
@@ -29,11 +29,11 @@
<span class="absolute inline-flex size-2 animate-ping rounded-full bg-blue-500 opacity-60"></span>
<span class="relative inline-flex size-1.5 rounded-full bg-blue-500"></span>
</span>
- <span class="text-foreground flex-1 text-sm font-medium">
+ <span class="flex-1 text-sm font-medium text-foreground">
{label}
</span>
{#if versionChip}
- <span class="bg-muted text-muted-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]">
+ <span class="rounded-md bg-muted px-1.5 py-0.5 font-mono text-[11px] text-muted-foreground">
{versionChip}
</span>
{/if}
diff --git a/frontend/src/lib/components/stat-card.svelte b/frontend/src/lib/components/stat-card.svelte
index 0240ea18d..9df8bff71 100644
--- a/frontend/src/lib/components/stat-card.svelte
+++ b/frontend/src/lib/components/stat-card.svelte
@@ -38,7 +38,7 @@
<span class="text-sm leading-none font-semibold tabular-nums">
{value}
</span>
- <span class="text-muted-foreground text-[11px] leading-none font-medium tracking-[0.08em] whitespace-nowrap uppercase">
+ <span class="text-[11px] leading-none font-medium tracking-[0.08em] whitespace-nowrap text-muted-foreground uppercase">
{title}
</span>
</div>
@@ -51,8 +51,8 @@
{onclick}
aria-pressed={active}
class={cn(
- 'hover:bg-foreground/5 focus-visible:ring-primary/40 -mx-0.5 flex cursor-pointer items-center gap-1.5 rounded-md px-1.5 py-0.5 transition-colors focus-visible:ring-2 focus-visible:outline-none',
- active && 'bg-primary/10 ring-primary/30 ring-1',
+ '-mx-0.5 flex cursor-pointer items-center gap-1.5 rounded-md px-1.5 py-0.5 transition-colors hover:bg-foreground/5 focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:outline-none',
+ active && 'bg-primary/10 ring-1 ring-primary/30',
className
)}
>
@@ -66,21 +66,21 @@
{:else}
<div
class={cn(
- 'bg-card/60 backdrop-blur-md border-border/70 group relative overflow-hidden rounded-xl border p-4 transition-colors',
+ 'group relative overflow-hidden rounded-xl border border-border/70 bg-card/60 p-4 backdrop-blur-md transition-colors',
iconColor,
className
)}
>
<div class="relative flex items-start justify-between">
<div class="space-y-2">
- <p class="text-muted-foreground text-sm font-medium tracking-wide">
+ <p class="text-sm font-medium tracking-wide text-muted-foreground">
{title}
</p>
<h3 class="text-2xl font-semibold tracking-tight tabular-nums">
{value}
</h3>
{#if subtitle}
- <p class="text-muted-foreground text-xs">{subtitle}</p>
+ <p class="text-xs text-muted-foreground">{subtitle}</p>
{/if}
</div>
diff --git a/frontend/src/lib/components/states/empty-state.svelte b/frontend/src/lib/components/states/empty-state.svelte
index 1c7aff7b4..1e24cd4b9 100644
--- a/frontend/src/lib/components/states/empty-state.svelte
+++ b/frontend/src/lib/components/states/empty-state.svelte
@@ -26,7 +26,7 @@
<Empty.Header>
{#if Icon}
<Empty.Media variant="icon">
- <Icon class="text-muted-foreground size-8" aria-hidden="true" />
+ <Icon class="size-8 text-muted-foreground" aria-hidden="true" />
</Empty.Media>
{/if}
<Empty.Title>{title}</Empty.Title>
diff --git a/frontend/src/lib/components/states/inline-error.svelte b/frontend/src/lib/components/states/inline-error.svelte
index 1703f926f..b4e12cdf9 100644
--- a/frontend/src/lib/components/states/inline-error.svelte
+++ b/frontend/src/lib/components/states/inline-error.svelte
@@ -19,14 +19,14 @@
<div
role="alert"
- class={cn('border-destructive/30 bg-destructive/5 flex items-start gap-3 rounded-lg border p-4 text-sm', className)}
+ class={cn('flex items-start gap-3 rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm', className)}
>
- <AlertIcon class="text-destructive mt-0.5 size-4 shrink-0" aria-hidden="true" />
+ <AlertIcon class="mt-0.5 size-4 shrink-0 text-destructive" aria-hidden="true" />
<div class="min-w-0 flex-1 space-y-1">
{#if title}
<p class="font-medium">{title}</p>
{/if}
- <p class="text-muted-foreground break-words">{message}</p>
+ <p class="break-words text-muted-foreground">{message}</p>
</div>
{#if onRetry}
<ArcaneButton
diff --git a/frontend/src/lib/components/swarm/swarm-kv-page.svelte b/frontend/src/lib/components/swarm/swarm-kv-page.svelte
index 94f75e4a3..19fc9e470 100644
--- a/frontend/src/lib/components/swarm/swarm-kv-page.svelte
+++ b/frontend/src/lib/components/swarm/swarm-kv-page.svelte
@@ -219,7 +219,7 @@
</Card.Header>
<Card.Content class="space-y-3 pb-6">
{#if items.length === 0}
- <div class="text-muted-foreground py-8 text-center text-sm">{messages.empty}</div>
+ <div class="py-8 text-center text-sm text-muted-foreground">{messages.empty}</div>
{:else}
{#each items as item (item.id)}
<Card.Root class="overflow-hidden border py-0">
@@ -231,19 +231,19 @@
<div class="flex items-center justify-between gap-2">
<div class="min-w-0">
<div class="truncate font-medium">{getSwarmSpecName(item.spec, item.id)}</div>
- <div class="text-muted-foreground font-mono text-xs">{item.id}</div>
+ <div class="font-mono text-xs text-muted-foreground">{item.id}</div>
</div>
- <div class="text-muted-foreground shrink-0 text-xs">{formatSwarmTimestamp(item.updatedAt)}</div>
+ <div class="shrink-0 text-xs text-muted-foreground">{formatSwarmTimestamp(item.updatedAt)}</div>
</div>
</button>
{#if selectedId === item.id}
<div class="space-y-3 border-t px-4 pt-4 pb-5">
<div class="flex items-center gap-2">
- <div class="text-muted-foreground font-mono text-xs">{item.id}</div>
+ <div class="font-mono text-xs text-muted-foreground">{item.id}</div>
<CopyButton text={item.id} />
</div>
- <p class="text-muted-foreground text-sm">{messages.immutableNotice}</p>
+ <p class="text-sm text-muted-foreground">{messages.immutableNotice}</p>
<Input placeholder={messages.namePlaceholder} bind:value={editName} readonly />
<Textarea
rows={12}
diff --git a/frontend/src/lib/components/tab-bar/tab-bar.svelte b/frontend/src/lib/components/tab-bar/tab-bar.svelte
index 7cbaecd0b..74071e349 100644
--- a/frontend/src/lib/components/tab-bar/tab-bar.svelte
+++ b/frontend/src/lib/components/tab-bar/tab-bar.svelte
@@ -28,7 +28,7 @@
{item.label}
{#if item.badge !== undefined}
<span
- class="bg-primary text-primary-foreground ml-1 inline-flex min-w-[18px] items-center justify-center rounded-full px-1 text-[11px] font-medium"
+ class="ml-1 inline-flex min-w-[18px] items-center justify-center rounded-full bg-primary px-1 text-[11px] font-medium text-primary-foreground"
>
{item.badge}
</span>
diff --git a/frontend/src/lib/components/theme-mode/theme-mode-selector.svelte b/frontend/src/lib/components/theme-mode/theme-mode-selector.svelte
index a0af6e039..4cdad0fea 100644
--- a/frontend/src/lib/components/theme-mode/theme-mode-selector.svelte
+++ b/frontend/src/lib/components/theme-mode/theme-mode-selector.svelte
@@ -20,7 +20,7 @@
const current = $derived(userPrefersMode.current);
</script>
-<div class={cn('bg-muted/40 inline-flex rounded-lg p-0.5', className)} role="group" aria-label={m.common_toggle_theme()}>
+<div class={cn('inline-flex rounded-lg bg-muted/40 p-0.5', className)} role="group" aria-label={m.common_toggle_theme()}>
{#each options as option (option.value)}
{@const Icon = option.icon}
<button
diff --git a/frontend/src/lib/components/ui/accordion/accordion-content.svelte b/frontend/src/lib/components/ui/accordion/accordion-content.svelte
index e46957e42..b9079f1b3 100644
--- a/frontend/src/lib/components/ui/accordion/accordion-content.svelte
+++ b/frontend/src/lib/components/ui/accordion/accordion-content.svelte
@@ -13,7 +13,7 @@
<AccordionPrimitive.Content
bind:ref
class={cn(
- 'data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all',
+ 'overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down',
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 083374159..8bc30e4c4 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
@@ -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]:fill-mode-forwards 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-[var(--arcane-z-surface)] 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',
+ 'fixed top-[50%] left-[50%] z-[var(--arcane-z-surface)] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm: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 4a0e5c87a..513fcf5e6 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
@@ -8,6 +8,6 @@
<AlertDialogPrimitive.Description
bind:ref
data-slot="alert-dialog-description"
- class={cn('text-muted-foreground text-sm', className)}
+ class={cn('text-sm text-muted-foreground', className)}
{...restProps}
/>
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 f09db0790..94cf71e1c 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
@@ -9,7 +9,7 @@
bind:ref
data-slot="alert-dialog-overlay"
class={cn(
- 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[var(--arcane-z-overlay)] bg-black/50',
+ 'fixed inset-0 z-[var(--arcane-z-overlay)] bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte b/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte
index 1ed7eb890..276abe130 100644
--- a/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte
+++ b/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte
@@ -8,6 +8,6 @@
<AvatarPrimitive.Fallback
bind:ref
data-slot="avatar-fallback"
- class={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}
+ class={cn('flex size-full items-center justify-center rounded-full bg-muted', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte
index 669f15676..7d45b81f6 100644
--- a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte
+++ b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte
@@ -16,7 +16,7 @@
} = $props();
const attrs = $derived({
- class: cn('hover:text-foreground transition-colors', className),
+ class: cn('transition-colors hover:text-foreground', className),
href,
...restProps
});
diff --git a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte
index 557885fc8..f4b7c703b 100644
--- a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte
+++ b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte
@@ -8,7 +8,7 @@
<ol
bind:this={ref}
- class={cn('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5', className)}
+ class={cn('flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2.5', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte
index 6ee61fbf1..bab8575e1 100644
--- a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte
+++ b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte
@@ -16,7 +16,7 @@
role="link"
aria-disabled="true"
aria-current="page"
- class={cn('text-foreground font-normal', className)}
+ class={cn('font-normal text-foreground', className)}
{...restProps}
>
{@render children?.()}
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 43881c4da..9082e1a5b 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
@@ -9,6 +9,6 @@
<Separator
data-slot="button-group-separator"
{orientation}
- class={cn('bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto', className)}
+ class={cn('relative !m-0 self-stretch bg-input 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 c22e8b70b..3bc868d3d 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
@@ -13,7 +13,7 @@
const classes = $derived(
cn(
- "bg-input/80 shadow-xs flex items-center gap-2 rounded-lg border px-4 text-sm font-medium backdrop-blur-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
+ "flex items-center gap-2 rounded-lg border bg-input/80 px-4 text-sm font-medium shadow-xs backdrop-blur-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
className
)
);
diff --git a/frontend/src/lib/components/ui/calendar/calendar-day.svelte b/frontend/src/lib/components/ui/calendar/calendar-day.svelte
index 3d65effec..b27796421 100644
--- a/frontend/src/lib/components/ui/calendar/calendar-day.svelte
+++ b/frontend/src/lib/components/ui/calendar/calendar-day.svelte
@@ -12,17 +12,17 @@
buttonVariants({ variant: 'ghost' }),
'flex size-(--cell-size) flex-col items-center justify-center gap-1 p-0 leading-none font-normal whitespace-nowrap select-none',
'[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground',
- 'data-[selected]:bg-primary dark:data-[selected]:hover:bg-accent/50 data-[selected]:text-primary-foreground',
+ 'data-[selected]:bg-primary data-[selected]:text-primary-foreground dark:data-[selected]:hover:bg-accent/50',
// Outside months
'[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground',
// Disabled
- 'data-[disabled]:text-muted-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
+ 'data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground data-[disabled]:opacity-50',
// Unavailable
'data-[unavailable]:text-muted-foreground data-[unavailable]:line-through',
// hover
'dark:hover:text-accent-foreground',
// focus
- 'focus:border-ring focus:ring-ring/50 focus:relative',
+ 'focus:relative focus:border-ring focus:ring-ring/50',
// inner spans
'[&>span]:text-xs [&>span]:opacity-70',
className
diff --git a/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte b/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte
index e8ae40f10..75eb266ab 100644
--- a/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte
+++ b/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte
@@ -7,6 +7,6 @@
<CalendarPrimitive.HeadCell
bind:ref
- class={cn('text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal', className)}
+ class={cn('w-(--cell-size) rounded-md text-[0.8rem] font-normal text-muted-foreground', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/calendar/calendar-month-select.svelte b/frontend/src/lib/components/ui/calendar/calendar-month-select.svelte
index 8c6ca52e0..4240cd748 100644
--- a/frontend/src/lib/components/ui/calendar/calendar-month-select.svelte
+++ b/frontend/src/lib/components/ui/calendar/calendar-month-select.svelte
@@ -14,7 +14,7 @@
<span
class={cn(
- 'has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]',
+ 'relative flex rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50',
className
)}
>
@@ -31,7 +31,7 @@
{/each}
</select>
<span
- class="[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5"
+ class="flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5 [&>svg]:text-muted-foreground"
aria-hidden="true"
>
{monthItems.find((item) => item.value === value)?.label || selectedMonthItem.label}
diff --git a/frontend/src/lib/components/ui/calendar/calendar-year-select.svelte b/frontend/src/lib/components/ui/calendar/calendar-year-select.svelte
index d8b120c88..96c7ee60c 100644
--- a/frontend/src/lib/components/ui/calendar/calendar-year-select.svelte
+++ b/frontend/src/lib/components/ui/calendar/calendar-year-select.svelte
@@ -13,7 +13,7 @@
<span
class={cn(
- 'has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]',
+ 'relative flex rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50',
className
)}
>
@@ -30,7 +30,7 @@
{/each}
</select>
<span
- class="[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5"
+ class="flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5 [&>svg]:text-muted-foreground"
aria-hidden="true"
>
{yearItems.find((item) => item.value === value)?.label || selectedYearItem.label}
diff --git a/frontend/src/lib/components/ui/calendar/calendar.svelte b/frontend/src/lib/components/ui/calendar/calendar.svelte
index c75a8799a..0363ffd90 100644
--- a/frontend/src/lib/components/ui/calendar/calendar.svelte
+++ b/frontend/src/lib/components/ui/calendar/calendar.svelte
@@ -63,7 +63,7 @@ get along, so we shut typescript up by casting `value` to `never`.
{weekdayFormat}
{disableDaysOutsideMonth}
class={cn(
- 'bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent',
+ 'group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent',
className
)}
{locale}
diff --git a/frontend/src/lib/components/ui/card/card-description.svelte b/frontend/src/lib/components/ui/card/card-description.svelte
index 913a1ad41..9202345e8 100644
--- a/frontend/src/lib/components/ui/card/card-description.svelte
+++ b/frontend/src/lib/components/ui/card/card-description.svelte
@@ -10,6 +10,6 @@
}: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();
</script>
-<p bind:this={ref} data-slot="card-description" class={cn('text-muted-foreground text-sm', className)} {...restProps}>
+<p bind:this={ref} data-slot="card-description" class={cn('text-sm text-muted-foreground', className)} {...restProps}>
{@render children?.()}
</p>
diff --git a/frontend/src/lib/components/ui/card/card.svelte b/frontend/src/lib/components/ui/card/card.svelte
index 9e8678a02..7a19a2fc3 100644
--- a/frontend/src/lib/components/ui/card/card.svelte
+++ b/frontend/src/lib/components/ui/card/card.svelte
@@ -43,10 +43,10 @@
bind:this={ref}
data-slot="card"
class={cn(
- 'text-card-foreground group border-border/70 relative isolate gap-0 overflow-hidden rounded-xl border p-0 transition-colors duration-200',
+ 'group relative isolate gap-0 overflow-hidden rounded-xl border border-border/70 p-0 text-card-foreground transition-colors duration-200',
getVariantClasses(variant),
onclick
- ? '[&:not(:has(button:hover,a:hover,[role=button]:hover))]:hover:bg-muted/60 cursor-pointer [&:not(:has(button:hover,a:hover,[role=button]:hover))]:hover:shadow-sm'
+ ? 'cursor-pointer [&:not(:has(button:hover,a:hover,[role=button]:hover))]:hover:bg-muted/60 [&:not(:has(button:hover,a:hover,[role=button]:hover))]:hover:shadow-sm'
: '',
className
)}
diff --git a/frontend/src/lib/components/ui/checkbox/checkbox.svelte b/frontend/src/lib/components/ui/checkbox/checkbox.svelte
index 7531be2f9..b1960969e 100644
--- a/frontend/src/lib/components/ui/checkbox/checkbox.svelte
+++ b/frontend/src/lib/components/ui/checkbox/checkbox.svelte
@@ -15,7 +15,7 @@
bind:ref
data-slot="checkbox"
class={cn(
- 'border-input bg-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground data-[state=indeterminate]:border-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 peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',
+ 'peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input bg-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground dark:aria-invalid:ring-destructive/40',
className
)}
bind:checked
diff --git a/frontend/src/lib/components/ui/command/command-group.svelte b/frontend/src/lib/components/ui/command/command-group.svelte
index 409722219..9330892f4 100644
--- a/frontend/src/lib/components/ui/command/command-group.svelte
+++ b/frontend/src/lib/components/ui/command/command-group.svelte
@@ -17,12 +17,12 @@
<CommandPrimitive.Group
bind:ref
data-slot="command-group"
- class={cn('text-foreground overflow-hidden p-1', className)}
+ class={cn('overflow-hidden p-1 text-foreground', className)}
value={value ?? heading ?? `----${useId()}`}
{...restProps}
>
{#if heading}
- <CommandPrimitive.GroupHeading class="text-muted-foreground px-2 py-1.5 text-xs font-medium">
+ <CommandPrimitive.GroupHeading class="px-2 py-1.5 text-xs font-medium text-muted-foreground">
{heading}
</CommandPrimitive.GroupHeading>
{/if}
diff --git a/frontend/src/lib/components/ui/command/command-input.svelte b/frontend/src/lib/components/ui/command/command-input.svelte
index 593e8bf70..10f41ad7e 100644
--- a/frontend/src/lib/components/ui/command/command-input.svelte
+++ b/frontend/src/lib/components/ui/command/command-input.svelte
@@ -11,7 +11,7 @@
<CommandPrimitive.Input
data-slot="command-input"
class={cn(
- 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50',
+ 'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',
className
)}
bind:ref
diff --git a/frontend/src/lib/components/ui/command/command-item.svelte b/frontend/src/lib/components/ui/command/command-item.svelte
index 9a2afdca2..cc597b131 100644
--- a/frontend/src/lib/components/ui/command/command-item.svelte
+++ b/frontend/src/lib/components/ui/command/command-item.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="command-item"
class={cn(
- "aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/command/command-link-item.svelte b/frontend/src/lib/components/ui/command/command-link-item.svelte
index dd2200fc1..a4e247e4d 100644
--- a/frontend/src/lib/components/ui/command/command-link-item.svelte
+++ b/frontend/src/lib/components/ui/command/command-link-item.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="command-item"
class={cn(
- "aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/command/command-separator.svelte b/frontend/src/lib/components/ui/command/command-separator.svelte
index 27038f50a..f11e84ebc 100644
--- a/frontend/src/lib/components/ui/command/command-separator.svelte
+++ b/frontend/src/lib/components/ui/command/command-separator.svelte
@@ -5,4 +5,4 @@
let { ref = $bindable(null), class: className, ...restProps }: CommandPrimitive.SeparatorProps = $props();
</script>
-<CommandPrimitive.Separator bind:ref data-slot="command-separator" class={cn('bg-border -mx-1 h-px', className)} {...restProps} />
+<CommandPrimitive.Separator bind:ref data-slot="command-separator" class={cn('-mx-1 h-px bg-border', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/command/command-shortcut.svelte b/frontend/src/lib/components/ui/command/command-shortcut.svelte
index 0c479333a..4866bda52 100644
--- a/frontend/src/lib/components/ui/command/command-shortcut.svelte
+++ b/frontend/src/lib/components/ui/command/command-shortcut.svelte
@@ -13,7 +13,7 @@
<span
bind:this={ref}
data-slot="command-shortcut"
- class={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}
+ class={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/command/command.svelte b/frontend/src/lib/components/ui/command/command.svelte
index 1a6bdb703..45a614b13 100644
--- a/frontend/src/lib/components/ui/command/command.svelte
+++ b/frontend/src/lib/components/ui/command/command.svelte
@@ -9,6 +9,6 @@
bind:value
bind:ref
data-slot="command"
- class={cn('bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md', className)}
+ class={cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/dialog/dialog-content.svelte b/frontend/src/lib/components/ui/dialog/dialog-content.svelte
index fd75aad71..c12fa8f58 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-content.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-content.svelte
@@ -28,7 +28,7 @@
bind:ref
data-slot="dialog-content"
class={cn(
- 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 text-foreground dark:bg-surface/10 dark:border-border/80 border-border/30 fixed top-[50%] left-[50%] z-[var(--arcane-z-surface)] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl border bg-white p-6 shadow-lg backdrop-blur-md duration-200 sm:rounded-2xl',
+ 'fixed top-[50%] left-[50%] z-[var(--arcane-z-surface)] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl border border-border/30 bg-white p-6 text-foreground shadow-lg backdrop-blur-md duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:rounded-2xl dark:border-border/80 dark:bg-surface/10',
className
)}
{...restProps}
@@ -36,7 +36,7 @@
{@render children?.()}
{#if showCloseButton}
<DialogPrimitive.Close
- class="ring-offset-background focus:ring-ring absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
+ class="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
>
<CloseIcon />
<span class="sr-only">{m.common_close()}</span>
diff --git a/frontend/src/lib/components/ui/dialog/dialog-description.svelte b/frontend/src/lib/components/ui/dialog/dialog-description.svelte
index 2b29f7203..6c82fd605 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-description.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-description.svelte
@@ -8,6 +8,6 @@
<DialogPrimitive.Description
bind:ref
data-slot="dialog-description"
- class={cn('text-muted-foreground text-sm', className)}
+ class={cn('text-sm text-muted-foreground', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte b/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte
index 8e06f036e..56451fb5f 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="dialog-overlay"
class={cn(
- 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[var(--arcane-z-overlay)] bg-white/10 backdrop-blur-md dark:bg-black/60',
+ 'fixed inset-0 z-[var(--arcane-z-overlay)] bg-white/10 backdrop-blur-md data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/drawer/drawer-content.svelte b/frontend/src/lib/components/ui/drawer/drawer-content.svelte
index 8e3281534..ca1fd7e8e 100644
--- a/frontend/src/lib/components/ui/drawer/drawer-content.svelte
+++ b/frontend/src/lib/components/ui/drawer/drawer-content.svelte
@@ -20,7 +20,7 @@
bind:ref
data-slot="drawer-content"
class={cn(
- 'group/drawer-content text-foreground dark:bg-surface/10 fixed z-[var(--arcane-z-surface)] flex h-auto flex-col border-border/70 bg-white/10 backdrop-blur-md',
+ 'group/drawer-content fixed z-[var(--arcane-z-surface)] flex h-auto flex-col border-border/70 bg-white/10 text-foreground backdrop-blur-md dark:bg-surface/10',
'data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b',
'data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t',
'data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm',
@@ -30,7 +30,7 @@
{...restProps}
>
<div
- class="bg-foreground/25 dark:bg-surface/60 mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"
+ class="mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-foreground/25 group-data-[vaul-drawer-direction=bottom]/drawer-content:block dark:bg-surface/60"
></div>
{@render children?.()}
</DrawerPrimitive.Content>
diff --git a/frontend/src/lib/components/ui/drawer/drawer-description.svelte b/frontend/src/lib/components/ui/drawer/drawer-description.svelte
index 9df7a582a..26807c615 100644
--- a/frontend/src/lib/components/ui/drawer/drawer-description.svelte
+++ b/frontend/src/lib/components/ui/drawer/drawer-description.svelte
@@ -8,6 +8,6 @@
<DrawerPrimitive.Description
bind:ref
data-slot="drawer-description"
- class={cn('text-muted-foreground text-sm', className)}
+ class={cn('text-sm text-muted-foreground', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/drawer/drawer-overlay.svelte b/frontend/src/lib/components/ui/drawer/drawer-overlay.svelte
index 34ad522c9..15237b770 100644
--- a/frontend/src/lib/components/ui/drawer/drawer-overlay.svelte
+++ b/frontend/src/lib/components/ui/drawer/drawer-overlay.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="drawer-overlay"
class={cn(
- 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[var(--arcane-z-overlay)] bg-white/10 backdrop-blur-md dark:bg-black/60',
+ 'fixed inset-0 z-[var(--arcane-z-overlay)] bg-white/10 backdrop-blur-md data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/drawer/drawer-title.svelte b/frontend/src/lib/components/ui/drawer/drawer-title.svelte
index 5874dee74..0b6a2dba5 100644
--- a/frontend/src/lib/components/ui/drawer/drawer-title.svelte
+++ b/frontend/src/lib/components/ui/drawer/drawer-title.svelte
@@ -5,4 +5,4 @@
let { ref = $bindable(null), class: className, ...restProps }: DrawerPrimitive.TitleProps = $props();
</script>
-<DrawerPrimitive.Title bind:ref data-slot="drawer-title" class={cn('text-foreground font-semibold', className)} {...restProps} />
+<DrawerPrimitive.Title bind:ref data-slot="drawer-title" class={cn('font-semibold text-foreground', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte
index 3352672a4..b63fe8c12 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte
@@ -22,7 +22,7 @@
bind:indeterminate
data-slot="dropdown-menu-checkbox-item"
class={cn(
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
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 7f57855ed..69ba06e5b 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
@@ -20,7 +20,7 @@
preventScroll={false}
{sideOffset}
class={cn(
- 'bg-background/95 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 dark:bg-popover/20 z-[var(--arcane-z-surface)] min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-xl border p-1 shadow-md backdrop-blur-2xl backdrop-saturate-150 outline-none',
+ 'z-[var(--arcane-z-surface)] min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-xl border bg-background/95 p-1 text-popover-foreground shadow-md backdrop-blur-2xl backdrop-saturate-150 outline-none 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 dark:bg-popover/20',
'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/dropdown-menu/dropdown-menu-item.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte
index 495189f6d..433bddb4e 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte
@@ -36,7 +36,7 @@
data-variant={variant}
onclick={handleClick}
class={cn(
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:data-highlighted:text-destructive dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:!text-destructive",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
index eba29c65b..9a0ae7b54 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
@@ -14,7 +14,7 @@
bind:ref
data-slot="dropdown-menu-radio-item"
class={cn(
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte
index 42bf9e68b..617008460 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte
@@ -8,6 +8,6 @@
<DropdownMenuPrimitive.Separator
bind:ref
data-slot="dropdown-menu-separator"
- class={cn('bg-border -mx-1 my-1 h-px', className)}
+ class={cn('-mx-1 my-1 h-px bg-border', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte
index dbe6e2076..eb86e670a 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte
@@ -13,7 +13,7 @@
<span
bind:this={ref}
data-slot="dropdown-menu-shortcut"
- class={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}
+ class={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
index f2505380d..02ec06470 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="dropdown-menu-sub-content"
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-[var(--arcane-z-surface)] min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg',
+ 'z-[var(--arcane-z-surface)] min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte
index 9efb0b4c2..a40d07cb6 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte
@@ -19,7 +19,7 @@
data-slot="dropdown-menu-sub-trigger"
data-inset={inset}
class={cn(
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/empty/empty-description.svelte b/frontend/src/lib/components/ui/empty/empty-description.svelte
index f59eec754..4c12a36ea 100644
--- a/frontend/src/lib/components/ui/empty/empty-description.svelte
+++ b/frontend/src/lib/components/ui/empty/empty-description.svelte
@@ -7,7 +7,7 @@
<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-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/empty/empty.svelte b/frontend/src/lib/components/ui/empty/empty.svelte
index 3ae567c2b..d096b1811 100644
--- a/frontend/src/lib/components/ui/empty/empty.svelte
+++ b/frontend/src/lib/components/ui/empty/empty.svelte
@@ -8,7 +8,7 @@
<div
data-slot="empty"
class={cn(
- 'border-border/50 bg-muted/20 flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border border-dashed p-6 text-center text-balance md:p-12',
+ 'flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border border-dashed border-border/50 bg-muted/20 p-6 text-center text-balance md:p-12',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte b/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte
index b32479529..ead7a2bd0 100644
--- a/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte
+++ b/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte
@@ -127,7 +127,7 @@
for={id}
aria-disabled={!canUploadFiles}
class={cn(
- 'border-border hover:bg-accent/25 flex h-48 w-full place-items-center justify-center rounded-lg border-2 border-dashed p-6 transition-all hover:cursor-pointer aria-disabled:opacity-50 aria-disabled:hover:cursor-not-allowed',
+ 'flex h-48 w-full place-items-center justify-center rounded-lg border-2 border-dashed border-border p-6 transition-all hover:cursor-pointer hover:bg-accent/25 aria-disabled:opacity-50 aria-disabled:hover:cursor-not-allowed',
className
)}
>
@@ -136,14 +136,14 @@
{:else}
<div class="flex flex-col place-items-center justify-center gap-2">
<div
- class="border-border text-muted-foreground flex size-14 place-items-center justify-center rounded-full border border-dashed"
+ class="flex size-14 place-items-center justify-center rounded-full border border-dashed border-border text-muted-foreground"
>
<UpdateIcon class="size-7" />
</div>
<div class="flex flex-col gap-0.5 text-center">
- <span class="text-muted-foreground font-medium">{m.file_drop_zone_drag_drop()}</span>
+ <span class="font-medium text-muted-foreground">{m.file_drop_zone_drag_drop()}</span>
{#if maxFiles || maxFileSize}
- <span class="text-muted-foreground/75 text-sm">
+ <span class="text-sm text-muted-foreground/75">
{#if maxFiles}
<span>{m.file_drop_zone_max_files({ maxFiles: maxFiles.toString() })}</span>
{/if}
diff --git a/frontend/src/lib/components/ui/form/form-description.svelte b/frontend/src/lib/components/ui/form/form-description.svelte
index 21a46be84..467f36ed7 100644
--- a/frontend/src/lib/components/ui/form/form-description.svelte
+++ b/frontend/src/lib/components/ui/form/form-description.svelte
@@ -6,4 +6,4 @@
let { ref = $bindable(null), class: className, ...restProps }: WithoutChild<FormPrimitive.DescriptionProps> = $props();
</script>
-<FormPrimitive.Description bind:ref class={cn('text-muted-foreground text-sm', className)} {...restProps} />
+<FormPrimitive.Description bind:ref class={cn('text-sm text-muted-foreground', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/form/form-field-errors.svelte b/frontend/src/lib/components/ui/form/form-field-errors.svelte
index ac19775c0..48fbfb020 100644
--- a/frontend/src/lib/components/ui/form/form-field-errors.svelte
+++ b/frontend/src/lib/components/ui/form/form-field-errors.svelte
@@ -14,7 +14,7 @@
} = $props();
</script>
-<FormPrimitive.FieldErrors bind:ref class={cn('text-destructive text-sm font-medium', className)} {...restProps}>
+<FormPrimitive.FieldErrors bind:ref class={cn('text-sm font-medium text-destructive', className)} {...restProps}>
{#snippet children({ errors, errorProps })}
{#if childrenProp}
{@render childrenProp({ errors, errorProps })}
diff --git a/frontend/src/lib/components/ui/form/form-legend.svelte b/frontend/src/lib/components/ui/form/form-legend.svelte
index 18cce6516..30422c325 100644
--- a/frontend/src/lib/components/ui/form/form-legend.svelte
+++ b/frontend/src/lib/components/ui/form/form-legend.svelte
@@ -8,6 +8,6 @@
<FormPrimitive.Legend
bind:ref
- class={cn('data-fs-error:text-destructive text-sm leading-none font-medium', className)}
+ class={cn('text-sm leading-none font-medium data-fs-error:text-destructive', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/image-cropper/image-cropper-preview.svelte b/frontend/src/lib/components/ui/image-cropper/image-cropper-preview.svelte
index 732980818..f6b961d46 100644
--- a/frontend/src/lib/components/ui/image-cropper/image-cropper-preview.svelte
+++ b/frontend/src/lib/components/ui/image-cropper/image-cropper-preview.svelte
@@ -14,7 +14,7 @@
{#if child}
{@render child({ src: previewState.rootState.src })}
{:else}
- <Avatar.Root class={cn('ring-accent ring-offset-background size-20 ring-2 ring-offset-2', className)}>
+ <Avatar.Root class={cn('size-20 ring-2 ring-accent ring-offset-2 ring-offset-background', className)}>
<Avatar.Image src={previewState.rootState.src} />
<Avatar.Fallback>
<UploadIcon class="size-4" />
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 bcdab735e..b3d93c74d 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
@@ -8,7 +8,7 @@
<input
data-slot="input-group-control"
class={cn(
- 'selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex h-full w-full min-w-0 flex-1 bg-transparent px-3 py-1 text-base transition-all outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
+ 'flex h-full w-full min-w-0 flex-1 bg-transparent px-3 py-1 text-base transition-all outline-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
className
)}
bind:value
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 79dcc8dfe..8379feb9c 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
@@ -7,7 +7,7 @@
<span
class={cn(
- "text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
+ "flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
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 97959252e..427cc977c 100644
--- a/frontend/src/lib/components/ui/input-group/input-group.svelte
+++ b/frontend/src/lib/components/ui/input-group/input-group.svelte
@@ -9,7 +9,7 @@
data-slot="input-group"
{role}
class={cn(
- 'group/input-group bg-input/80 relative flex w-full items-center overflow-hidden rounded-lg border shadow-xs backdrop-blur-sm transition-all outline-none',
+ 'group/input-group relative flex w-full items-center overflow-hidden rounded-lg border bg-input/80 shadow-xs backdrop-blur-sm transition-all outline-none',
'h-9 has-[>textarea]:h-auto',
// Variants based on alignment.
@@ -19,10 +19,10 @@
'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]:bg-input/90 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]:backdrop-blur-md',
+ 'has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:bg-input/90 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:backdrop-blur-md',
// 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]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40',
className
)}
diff --git a/frontend/src/lib/components/ui/input/input.svelte b/frontend/src/lib/components/ui/input/input.svelte
index 8694c19fa..d148ad126 100644
--- a/frontend/src/lib/components/ui/input/input.svelte
+++ b/frontend/src/lib/components/ui/input/input.svelte
@@ -16,7 +16,7 @@
bind:this={ref}
data-slot="input"
class={cn(
- 'bg-input/80 ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring focus-visible:bg-input/90 flex h-10 w-full rounded-lg border px-3 py-2 text-base backdrop-blur-sm transition-all file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:backdrop-blur-md focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
+ 'flex h-10 w-full rounded-lg border bg-input/80 px-3 py-2 text-base ring-offset-background backdrop-blur-sm transition-all file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:bg-input/90 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:backdrop-blur-md focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
className
)}
type="file"
@@ -29,9 +29,9 @@
bind:this={ref}
data-slot="input"
class={cn(
- 'bg-input/80 selection:bg-primary selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-lg px-3 py-1 text-base backdrop-blur-sm transition-all outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
- 'focus-visible:bg-input/90 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:backdrop-blur-md',
- 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
+ 'flex h-9 w-full min-w-0 rounded-lg bg-input/80 px-3 py-1 text-base ring-offset-background backdrop-blur-sm transition-all outline-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
+ 'focus-visible:border-ring focus-visible:bg-input/90 focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:backdrop-blur-md',
+ 'aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40',
className
)}
{type}
diff --git a/frontend/src/lib/components/ui/item/item-description.svelte b/frontend/src/lib/components/ui/item/item-description.svelte
index 808446d28..6066b130b 100644
--- a/frontend/src/lib/components/ui/item/item-description.svelte
+++ b/frontend/src/lib/components/ui/item/item-description.svelte
@@ -14,8 +14,8 @@
bind:this={ref}
data-slot="item-description"
class={cn(
- 'text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance',
- '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',
+ 'line-clamp-2 text-sm leading-normal font-normal text-balance text-muted-foreground',
+ '[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/kbd/kbd.svelte b/frontend/src/lib/components/ui/kbd/kbd.svelte
index 7332ebc9c..728e7a18b 100644
--- a/frontend/src/lib/components/ui/kbd/kbd.svelte
+++ b/frontend/src/lib/components/ui/kbd/kbd.svelte
@@ -9,7 +9,7 @@
bind:this={ref}
data-slot="kbd"
class={cn(
- 'bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none',
+ 'pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none',
"[&_svg:not([class*='size-'])]:size-3",
'[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10',
className
diff --git a/frontend/src/lib/components/ui/popover/popover-content.svelte b/frontend/src/lib/components/ui/popover/popover-content.svelte
index 7d493e4e8..6addce081 100644
--- a/frontend/src/lib/components/ui/popover/popover-content.svelte
+++ b/frontend/src/lib/components/ui/popover/popover-content.svelte
@@ -22,7 +22,7 @@
{sideOffset}
{align}
class={cn(
- 'bg-background/95 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-[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 dark:bg-popover/20 z-[var(--arcane-z-surface)] w-72 origin-(--bits-popover-content-transform-origin) overflow-hidden rounded-xl border p-4 shadow-md outline-hidden backdrop-blur-2xl backdrop-saturate-150',
+ 'z-[var(--arcane-z-surface)] w-72 origin-(--bits-popover-content-transform-origin) overflow-hidden rounded-xl border bg-background/95 p-4 text-popover-foreground shadow-md outline-hidden backdrop-blur-2xl backdrop-saturate-150 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-popover/20',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/progress/progress.svelte b/frontend/src/lib/components/ui/progress/progress.svelte
index 0df852660..70789235c 100644
--- a/frontend/src/lib/components/ui/progress/progress.svelte
+++ b/frontend/src/lib/components/ui/progress/progress.svelte
@@ -14,7 +14,7 @@
<ProgressPrimitive.Root
bind:ref
- class={cn('bg-secondary relative h-4 w-full overflow-hidden rounded-full', className)}
+ class={cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className)}
{value}
{max}
{...restProps}
@@ -25,7 +25,7 @@
</div>
{:else}
<div
- class="bg-primary h-full w-full flex-1 transition-all"
+ class="h-full w-full flex-1 bg-primary transition-all"
style={`transform: translateX(-${100 - (100 * (value ?? 0)) / (max ?? 1)}%)`}
></div>
{/if}
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 ea0bada89..9e7b16412 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
@@ -9,7 +9,7 @@
bind:ref
data-slot="radio-group-item"
class={cn(
- 'border-input bg-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 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',
+ 'aspect-square size-4 shrink-0 rounded-full border border-input bg-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40',
className
)}
{...restProps}
@@ -17,7 +17,7 @@
{#snippet children({ checked })}
<div data-slot="radio-group-indicator" class="relative flex items-center justify-center">
{#if checked}
- <span class="fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-current"
+ <span class="absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-current fill-primary"
></span>
{/if}
</div>
diff --git a/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte
index 3df065883..964df81f3 100644
--- a/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte
+++ b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte
@@ -61,7 +61,7 @@
{@render children()}
</div>
{#if footer}
- <div class="bg-background border-t p-4">
+ <div class="border-t bg-background p-4">
<Sheet.Footer class="mt-0 p-0 sm:justify-end">
{@render footer()}
</Sheet.Footer>
diff --git a/frontend/src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte b/frontend/src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte
index e5a913972..34a11f8c9 100644
--- a/frontend/src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte
+++ b/frontend/src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte
@@ -24,5 +24,5 @@
{...restProps}
>
{@render children?.()}
- <ScrollAreaPrimitive.Thumb data-slot="scroll-area-thumb" class="bg-border relative flex-1 rounded-full" />
+ <ScrollAreaPrimitive.Thumb data-slot="scroll-area-thumb" class="relative flex-1 rounded-full bg-border" />
</ScrollAreaPrimitive.Scrollbar>
diff --git a/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte b/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte
index d721ad903..a1ca2ce25 100644
--- a/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte
+++ b/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte
@@ -21,7 +21,7 @@
<ScrollAreaPrimitive.Root bind:ref data-slot="scroll-area" class={cn('relative', className)} {...restProps}>
<ScrollAreaPrimitive.Viewport
data-slot="scroll-area-viewport"
- class="ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1"
+ class="size-full rounded-[inherit] ring-ring/10 outline-ring/50 transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 dark:ring-ring/20 dark:outline-ring/40"
>
{@render children?.()}
</ScrollAreaPrimitive.Viewport>
diff --git a/frontend/src/lib/components/ui/select/select-content.svelte b/frontend/src/lib/components/ui/select/select-content.svelte
index 1f9ac4009..cd6636c36 100644
--- a/frontend/src/lib/components/ui/select/select-content.svelte
+++ b/frontend/src/lib/components/ui/select/select-content.svelte
@@ -24,7 +24,7 @@
{align}
data-slot="select-content"
class={cn(
- 'bg-background/95 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 dark:bg-popover/20 relative z-[var(--arcane-z-surface)] min-w-32 overflow-x-hidden overflow-y-auto rounded-xl border shadow-md backdrop-blur-2xl backdrop-saturate-150 data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
+ 'relative z-[var(--arcane-z-surface)] min-w-32 overflow-x-hidden overflow-y-auto rounded-xl border bg-background/95 text-popover-foreground shadow-md backdrop-blur-2xl backdrop-saturate-150 data-[side=bottom]:translate-y-1 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:-translate-x-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:translate-x-1 data-[side=right]:slide-in-from-left-2 data-[side=top]:-translate-y-1 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 dark:bg-popover/20',
'max-h-(--bits-select-content-available-height) origin-(--bits-select-content-transform-origin)',
'w-(--radix-popper-anchor-width) max-w-[calc(100vw-2rem)] min-w-(--radix-popper-anchor-width)',
'max-[768px]:max-w-[calc(100vw-1rem)]',
diff --git a/frontend/src/lib/components/ui/select/select-group-heading.svelte b/frontend/src/lib/components/ui/select/select-group-heading.svelte
index 3ff70030e..3dc028250 100644
--- a/frontend/src/lib/components/ui/select/select-group-heading.svelte
+++ b/frontend/src/lib/components/ui/select/select-group-heading.svelte
@@ -14,7 +14,7 @@
<SelectPrimitive.GroupHeading
bind:ref
data-slot="select-group-heading"
- class={cn('text-muted-foreground px-2 py-1.5 text-xs', className)}
+ class={cn('px-2 py-1.5 text-xs text-muted-foreground', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/select/select-item.svelte b/frontend/src/lib/components/ui/select/select-item.svelte
index da8947b0a..738f7c71a 100644
--- a/frontend/src/lib/components/ui/select/select-item.svelte
+++ b/frontend/src/lib/components/ui/select/select-item.svelte
@@ -18,7 +18,7 @@
{value}
data-slot="select-item"
class={cn(
- "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
+ "relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/select/select-label.svelte b/frontend/src/lib/components/ui/select/select-label.svelte
index b0a6b8354..43a56d863 100644
--- a/frontend/src/lib/components/ui/select/select-label.svelte
+++ b/frontend/src/lib/components/ui/select/select-label.svelte
@@ -10,6 +10,6 @@
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {} = $props();
</script>
-<div bind:this={ref} data-slot="select-label" class={cn('text-muted-foreground px-2 py-1.5 text-xs', className)} {...restProps}>
+<div bind:this={ref} data-slot="select-label" class={cn('px-2 py-1.5 text-xs text-muted-foreground', className)} {...restProps}>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/select/select-separator.svelte b/frontend/src/lib/components/ui/select/select-separator.svelte
index 299305dce..408684fcb 100644
--- a/frontend/src/lib/components/ui/select/select-separator.svelte
+++ b/frontend/src/lib/components/ui/select/select-separator.svelte
@@ -9,6 +9,6 @@
<Separator
bind:ref
data-slot="select-separator"
- class={cn('bg-border pointer-events-none -mx-1 my-1 h-px', className)}
+ class={cn('pointer-events-none -mx-1 my-1 h-px bg-border', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/select/select-trigger.svelte b/frontend/src/lib/components/ui/select/select-trigger.svelte
index e86cc844a..c31b754b0 100644
--- a/frontend/src/lib/components/ui/select/select-trigger.svelte
+++ b/frontend/src/lib/components/ui/select/select-trigger.svelte
@@ -19,7 +19,7 @@
data-slot="select-trigger"
data-size={size}
class={cn(
- "border-input data-placeholder:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-input/30 hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ "flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-input/30 px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none hover:bg-input/50 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/separator/separator.svelte b/frontend/src/lib/components/ui/separator/separator.svelte
index ae8321b6c..a073e1098 100644
--- a/frontend/src/lib/components/ui/separator/separator.svelte
+++ b/frontend/src/lib/components/ui/separator/separator.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="separator"
class={cn(
- 'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
+ 'shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/sheet/sheet-content.svelte b/frontend/src/lib/components/ui/sheet/sheet-content.svelte
index f36ab9632..5ab78a18e 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-content.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-content.svelte
@@ -47,7 +47,7 @@
<SheetPrimitive.Content bind:ref data-slot="sheet-content" class={cn(sheetVariants({ side }), className)} {...restProps}>
{@render children?.()}
<SheetPrimitive.Close
- class="ring-offset-background focus-visible:ring-ring absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none"
+ class="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none"
>
<CloseIcon class="size-4" />
<span class="sr-only">{m.common_close()}</span>
diff --git a/frontend/src/lib/components/ui/sheet/sheet-description.svelte b/frontend/src/lib/components/ui/sheet/sheet-description.svelte
index accf95cc0..ce31c84ff 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-description.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-description.svelte
@@ -8,6 +8,6 @@
<SheetPrimitive.Description
bind:ref
data-slot="sheet-description"
- class={cn('text-muted-foreground text-sm', className)}
+ class={cn('text-sm text-muted-foreground', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte b/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte
index 28e851caf..207fa98bd 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="sheet-overlay"
class={cn(
- 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[var(--arcane-z-overlay)] bg-white/10 backdrop-blur-md dark:bg-black/60',
+ 'fixed inset-0 z-[var(--arcane-z-overlay)] bg-white/10 backdrop-blur-md data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/sheet/sheet-title.svelte b/frontend/src/lib/components/ui/sheet/sheet-title.svelte
index f9d1936ec..17b2eaf72 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-title.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-title.svelte
@@ -5,4 +5,4 @@
let { ref = $bindable(null), class: className, ...restProps }: SheetPrimitive.TitleProps = $props();
</script>
-<SheetPrimitive.Title bind:ref data-slot="sheet-title" class={cn('text-foreground font-semibold', className)} {...restProps} />
+<SheetPrimitive.Title bind:ref data-slot="sheet-title" class={cn('font-semibold text-foreground', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-group-action.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-group-action.svelte
index 268d996b9..ce7f82d51 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-group-action.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-group-action.svelte
@@ -15,7 +15,7 @@
const mergedProps = $derived({
class: cn(
- 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground outline-hidden absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
+ 'absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
// Increases the hit area of the button on mobile.
'after:absolute after:-inset-2 md:after:hidden',
'group-data-[collapsible=icon]:hidden',
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-group-label.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-group-label.svelte
index 786d94d11..91c6e7a2b 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-group-label.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-group-label.svelte
@@ -18,7 +18,7 @@
const mergedProps = $derived({
class: cn(
- 'text-sidebar-foreground/70 ring-sidebar-ring outline-hidden flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
+ 'flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
sidebar.hoverExpansionEnabled
? 'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 group-data-[collapsible=icon]:group-data-[hovered=true]:mt-0 group-data-[collapsible=icon]:group-data-[hovered=true]:opacity-100'
: 'group-data-[collapsible=icon]:hidden',
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-input.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-input.svelte
index cb4062d97..5d80e434f 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-input.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-input.svelte
@@ -11,6 +11,6 @@
bind:value
data-slot="sidebar-input"
data-sidebar="input"
- class={cn('bg-background h-8 w-full shadow-none', className)}
+ class={cn('h-8 w-full bg-background shadow-none', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-inset.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-inset.svelte
index 1f39ff53c..51b5395d4 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-inset.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-inset.svelte
@@ -9,7 +9,7 @@
bind:this={ref}
data-slot="sidebar-inset"
class={cn(
- 'bg-background relative flex w-full flex-1 flex-col',
+ 'relative flex w-full flex-1 flex-col bg-background',
'md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2',
className
)}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte
index 2f51c9cd6..f90ca5eb2 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte
@@ -20,7 +20,7 @@
const mergedProps = $derived({
class: cn(
- 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground outline-hidden absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
+ 'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
// Increases the hit area of the button on mobile.
'after:absolute after:-inset-2 md:after:hidden',
'peer-data-[size=sm]/menu-button:top-1',
@@ -30,7 +30,7 @@
? 'group-data-[collapsible=icon]:group-data-[hovered=false]:hidden'
: 'group-data-[collapsible=icon]:hidden',
showOnHover &&
- 'peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0',
+ 'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:opacity-100 md:opacity-0',
className
),
'data-slot': 'sidebar-menu-action',
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-badge.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-badge.svelte
index fa867a460..05f99b192 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-badge.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-badge.svelte
@@ -10,7 +10,7 @@
data-slot="sidebar-menu-badge"
data-sidebar="menu-badge"
class={cn(
- 'text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none',
+ 'pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none',
'peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground',
'peer-data-[size=sm]/menu-button:top-1',
'peer-data-[size=default]/menu-button:top-1.5',
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub-button.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub-button.svelte
index 9155ee715..103ceefa4 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub-button.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub-button.svelte
@@ -19,11 +19,11 @@
const mergedProps = $derived({
class: cn(
- 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground outline-hidden flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',
+ 'flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground',
'data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground',
size === 'sm' && 'text-xs',
size === 'md' && 'text-sm',
- 'group-data-[collapsible=icon]:group-data-[hovered=true]:flex group-data-[collapsible=icon]:hidden',
+ 'group-data-[collapsible=icon]:hidden group-data-[collapsible=icon]:group-data-[hovered=true]:flex',
className
),
'data-slot': 'sidebar-menu-sub-button',
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte
index c8858d4da..1346172d0 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte
@@ -15,7 +15,7 @@
data-slot="sidebar-menu-sub"
data-sidebar="menu-sub"
class={cn(
- 'border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5',
+ 'mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5',
'group-data-[collapsible=icon]:hidden group-data-[collapsible=icon]:group-data-[hovered=true]:flex',
className
)}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte
index d3e2e03d3..a8c05df78 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte
@@ -83,7 +83,7 @@
style="--sidebar-width: {SIDEBAR_WIDTH}; --sidebar-width-icon: {SIDEBAR_WIDTH_ICON}; --sidebar-gap-width: {open
? SIDEBAR_WIDTH
: SIDEBAR_WIDTH_ICON}; {style}"
- class={cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-dvh w-full', className)}
+ class={cn('group/sidebar-wrapper flex h-dvh w-full has-data-[variant=inset]:bg-sidebar', className)}
bind:this={ref}
{...restProps}
>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
index b812d8b3b..343651593 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
@@ -33,7 +33,7 @@
'hover:after:bg-sidebar-border',
'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize',
'[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',
- 'hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full'
+ 'group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar'
],
'[[data-side=left][data-collapsible=offcanvas]_&]:-right-2',
'[[data-side=right][data-collapsible=offcanvas]_&]:-left-2',
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-separator.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-separator.svelte
index 3519b20f3..61a9d7129 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-separator.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-separator.svelte
@@ -10,6 +10,6 @@
bind:ref
data-slot="sidebar-separator"
data-sidebar="separator"
- class={cn('bg-sidebar-border mx-2 w-auto', className)}
+ class={cn('mx-2 w-auto bg-sidebar-border', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar.svelte b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
index 250910da3..3559186b5 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
@@ -22,7 +22,7 @@
{#if collapsible === 'none'}
<div
- class={cn('bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col', className)}
+ class={cn('flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground', className)}
bind:this={ref}
{...restProps}
>
@@ -31,7 +31,7 @@
{:else}
<div
bind:this={ref}
- class="text-sidebar-foreground group peer hidden md:block"
+ class="group peer hidden text-sidebar-foreground md:block"
data-state={sidebar.state}
data-collapsible={sidebar.state === 'collapsed' ? collapsible : ''}
data-variant={variant}
@@ -80,7 +80,7 @@
<div
data-sidebar="sidebar"
data-slot="sidebar-inner"
- class="group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col overflow-x-hidden backdrop-blur-md group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
+ class="flex h-full w-full flex-col overflow-x-hidden backdrop-blur-md group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm"
>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/skeleton/skeleton.svelte b/frontend/src/lib/components/ui/skeleton/skeleton.svelte
index 05e9ef0f8..30d2816b2 100644
--- a/frontend/src/lib/components/ui/skeleton/skeleton.svelte
+++ b/frontend/src/lib/components/ui/skeleton/skeleton.svelte
@@ -9,4 +9,4 @@
}: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
</script>
-<div bind:this={ref} data-slot="skeleton" class={cn('bg-accent animate-pulse rounded-md', className)} {...restProps}></div>
+<div bind:this={ref} data-slot="skeleton" class={cn('animate-pulse rounded-md bg-accent', className)} {...restProps}></div>
diff --git a/frontend/src/lib/components/ui/slider/slider.svelte b/frontend/src/lib/components/ui/slider/slider.svelte
index cec3f4f15..93c31c9fd 100644
--- a/frontend/src/lib/components/ui/slider/slider.svelte
+++ b/frontend/src/lib/components/ui/slider/slider.svelte
@@ -22,7 +22,7 @@ get along, so we shut typescript up by casting `value` to `never`.
data-slot="slider"
{orientation}
class={cn(
- 'data-vertical:min-h-40 relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:w-auto data-vertical:flex-col',
+ 'relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col',
className
)}
{...restProps}
@@ -32,12 +32,12 @@ get along, so we shut typescript up by casting `value` to `never`.
data-slot="slider-track"
data-orientation={orientation}
class={cn(
- 'bg-muted relative grow overflow-hidden rounded-full data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1'
+ 'relative grow overflow-hidden rounded-full bg-muted data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1'
)}
>
<SliderPrimitive.Range
data-slot="slider-range"
- class={cn('bg-primary absolute select-none data-horizontal:h-full data-vertical:w-full')}
+ class={cn('absolute bg-primary select-none data-horizontal:h-full data-vertical:w-full')}
/>
</span>
{#if showTicks && orientation === 'horizontal' && ticks.length > 1}
@@ -53,7 +53,7 @@ get along, so we shut typescript up by casting `value` to `never`.
<SliderPrimitive.Thumb
data-slot="slider-thumb"
index={thumb.index}
- class="border-ring ring-ring/50 relative block size-3 shrink-0 rounded-full border bg-white transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"
+ class="relative block size-3 shrink-0 rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"
/>
{/each}
{/snippet}
diff --git a/frontend/src/lib/components/ui/switch/switch.svelte b/frontend/src/lib/components/ui/switch/switch.svelte
index d8c5cf8b3..19a95ba65 100644
--- a/frontend/src/lib/components/ui/switch/switch.svelte
+++ b/frontend/src/lib/components/ui/switch/switch.svelte
@@ -14,14 +14,14 @@
bind:ref
bind:checked
class={cn(
- 'focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',
+ 'peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input',
className
)}
{...restProps}
>
<SwitchPrimitive.Thumb
class={cn(
- 'bg-background pointer-events-none block size-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0'
+ 'pointer-events-none block size-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0'
)}
/>
</SwitchPrimitive.Root>
diff --git a/frontend/src/lib/components/ui/table/table-caption.svelte b/frontend/src/lib/components/ui/table/table-caption.svelte
index 924801743..6ae646f12 100644
--- a/frontend/src/lib/components/ui/table/table-caption.svelte
+++ b/frontend/src/lib/components/ui/table/table-caption.svelte
@@ -5,6 +5,6 @@
let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>
-<caption bind:this={ref} data-slot="table-caption" class={cn('text-muted-foreground mt-4 text-sm', className)} {...restProps}>
+<caption bind:this={ref} data-slot="table-caption" class={cn('mt-4 text-sm text-muted-foreground', className)} {...restProps}>
{@render children?.()}
</caption>
diff --git a/frontend/src/lib/components/ui/table/table-footer.svelte b/frontend/src/lib/components/ui/table/table-footer.svelte
index 53a9eb458..565b2441e 100644
--- a/frontend/src/lib/components/ui/table/table-footer.svelte
+++ b/frontend/src/lib/components/ui/table/table-footer.svelte
@@ -13,7 +13,7 @@
<tfoot
bind:this={ref}
data-slot="table-footer"
- class={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)}
+ class={cn('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/table/table-head.svelte b/frontend/src/lib/components/ui/table/table-head.svelte
index ba2148519..ab703fa0b 100644
--- a/frontend/src/lib/components/ui/table/table-head.svelte
+++ b/frontend/src/lib/components/ui/table/table-head.svelte
@@ -9,7 +9,7 @@
bind:this={ref}
data-slot="table-head"
class={cn(
- 'text-muted-foreground bg-background sticky top-0 z-[var(--arcane-z-sticky)] h-11 px-4 text-left align-middle text-[11px] font-semibold tracking-wide whitespace-nowrap uppercase',
+ 'sticky top-0 z-[var(--arcane-z-sticky)] h-11 bg-background px-4 text-left align-middle text-[11px] font-semibold tracking-wide whitespace-nowrap text-muted-foreground uppercase',
'first:pl-6 last:pr-6 [&:has([role=checkbox])]:pr-0',
className
)}
diff --git a/frontend/src/lib/components/ui/table/table-header.svelte b/frontend/src/lib/components/ui/table/table-header.svelte
index c840a2bcc..c65e57007 100644
--- a/frontend/src/lib/components/ui/table/table-header.svelte
+++ b/frontend/src/lib/components/ui/table/table-header.svelte
@@ -13,7 +13,7 @@
<thead
bind:this={ref}
data-slot="table-header"
- class={cn('bg-primary/10 [&_tr]:border-border/50 backdrop-blur-sm [&_tr]:border-b', className)}
+ class={cn('bg-primary/10 backdrop-blur-sm [&_tr]:border-b [&_tr]:border-border/50', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/table/table-row.svelte b/frontend/src/lib/components/ui/table/table-row.svelte
index f5338a88b..095784f7c 100644
--- a/frontend/src/lib/components/ui/table/table-row.svelte
+++ b/frontend/src/lib/components/ui/table/table-row.svelte
@@ -14,7 +14,7 @@
bind:this={ref}
data-slot="table-row"
class={cn(
- 'group/row border-border/40 bg-background cursor-pointer border-b transition-colors',
+ 'group/row cursor-pointer border-b border-border/40 bg-background transition-colors',
'hover:bg-primary/10 data-[state=selected]:bg-primary/20',
className
)}
diff --git a/frontend/src/lib/components/ui/tabs/tabs-content.svelte b/frontend/src/lib/components/ui/tabs/tabs-content.svelte
index d8648e19e..ac3f3ec45 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:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none',
+ 'h-full min-h-0 ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/tabs/tabs-list.svelte b/frontend/src/lib/components/ui/tabs/tabs-list.svelte
index a8c7b0cfd..81835b3c9 100644
--- a/frontend/src/lib/components/ui/tabs/tabs-list.svelte
+++ b/frontend/src/lib/components/ui/tabs/tabs-list.svelte
@@ -8,7 +8,7 @@
<TabsPrimitive.List
bind:ref
class={cn(
- 'text-muted-foreground border-border/60 bg-muted/40 inline-flex items-center justify-start gap-1 rounded-lg border p-1',
+ 'inline-flex items-center justify-start gap-1 rounded-lg border border-border/60 bg-muted/40 p-1 text-muted-foreground',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte b/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte
index 651a8d05a..3cca9a435 100644
--- a/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte
+++ b/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte
@@ -8,7 +8,7 @@
<TabsPrimitive.Trigger
bind:ref
class={cn(
- 'ring-offset-background focus-visible:ring-ring text-muted-foreground hover:text-foreground data-[state=active]:bg-primary/15 data-[state=active]:text-primary data-[state=active]:ring-primary/30 inline-flex items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:ring-1',
+ 'inline-flex items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap text-muted-foreground ring-offset-background transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/15 data-[state=active]:text-primary data-[state=active]:ring-1 data-[state=active]:ring-primary/30',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/textarea/textarea.svelte b/frontend/src/lib/components/ui/textarea/textarea.svelte
index 28161490a..6962a75a7 100644
--- a/frontend/src/lib/components/ui/textarea/textarea.svelte
+++ b/frontend/src/lib/components/ui/textarea/textarea.svelte
@@ -15,7 +15,7 @@
bind:this={ref}
data-slot="textarea"
class={cn(
- 'bg-input/80 ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring focus-visible:bg-input/90 flex min-h-[80px] w-full rounded-lg px-3 py-2 text-base backdrop-blur-sm transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:backdrop-blur-md focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
+ 'flex min-h-[80px] w-full rounded-lg bg-input/80 px-3 py-2 text-base ring-offset-background backdrop-blur-sm transition-all placeholder:text-muted-foreground focus-visible:bg-input/90 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:backdrop-blur-md focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
className
)}
bind:value
diff --git a/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte b/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte
index 8b878026e..af8e0667c 100644
--- a/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte
+++ b/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte
@@ -27,7 +27,7 @@
{sideOffset}
{side}
class={cn(
- 'bg-popover/90 text-popover-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 border-border/40 dark:bg-popover/20 z-[var(--arcane-z-surface)] w-fit origin-(--bits-tooltip-content-transform-origin) rounded-xl border px-3 py-1.5 text-xs text-balance shadow-lg backdrop-blur-md backdrop-saturate-150',
+ 'z-[var(--arcane-z-surface)] w-fit origin-(--bits-tooltip-content-transform-origin) animate-in rounded-xl border border-border/40 bg-popover/90 px-3 py-1.5 text-xs text-balance text-popover-foreground shadow-lg backdrop-blur-md backdrop-saturate-150 fade-in-0 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 dark:bg-popover/20',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/tree-view/tree-view-folder.svelte b/frontend/src/lib/components/ui/tree-view/tree-view-folder.svelte
index 0bbc0a850..d34cab7d5 100644
--- a/frontend/src/lib/components/ui/tree-view/tree-view-folder.svelte
+++ b/frontend/src/lib/components/ui/tree-view/tree-view-folder.svelte
@@ -23,7 +23,7 @@
</Collapsible.Trigger>
<Collapsible.Content class="mx-2 border-l">
<div class="relative flex place-items-start">
- <div class="bg-border mx-2 h-full w-px"></div>
+ <div class="mx-2 h-full w-px bg-border"></div>
<div class="flex flex-col">
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte b/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte
index 74936a64e..08b89c592 100644
--- a/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte
+++ b/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte
@@ -256,13 +256,13 @@
<ShieldXIcon class="size-4" />
<span class="text-sm font-medium">{m.vuln_scan_failed()}</span>
</div>
- <p class="text-muted-foreground text-xs">{scanErrorMessage}</p>
+ <p class="text-xs text-muted-foreground">{scanErrorMessage}</p>
{:else if isScanInProgress}
<div class="flex items-center gap-2 text-blue-500">
<Spinner class="size-4" />
<span class="text-sm font-medium">{activePhaseLabel}</span>
</div>
- <div class="bg-muted/40 space-y-1 rounded-md p-2 text-xs">
+ <div class="space-y-1 rounded-md bg-muted/40 p-2 text-xs">
<div class="space-y-1 pb-1">
{#each scanPhaseSteps as step, index (step.key)}
<div class="flex items-center gap-2">
@@ -305,15 +305,15 @@
{/if}
<div>
<p class="text-sm font-medium">{statusLabel}</p>
- <p class="text-muted-foreground text-xs">{m.vuln_summary()}</p>
+ <p class="text-xs text-muted-foreground">{m.vuln_summary()}</p>
</div>
</div>
- <div class="bg-muted/40 rounded-md p-2">
+ <div class="rounded-md bg-muted/40 p-2">
<div class="flex items-center justify-between text-xs">
<span class="text-muted-foreground">{m.common_total()}</span>
<span class="font-mono">{totalCount}</span>
</div>
- <div class="bg-muted/70 mt-2 flex h-2 overflow-hidden rounded-full">
+ <div class="mt-2 flex h-2 overflow-hidden rounded-full bg-muted/70">
{#each severitySegments as segment (segment.key)}
<div class={segment.barClass} style={`width: ${segment.pct}%`}></div>
{/each}
@@ -331,11 +331,11 @@
{/if}
</div>
{:else}
- <div class="text-muted-foreground flex items-center gap-2">
+ <div class="flex items-center gap-2 text-muted-foreground">
<ScanIcon class="size-4" />
<span class="text-sm font-medium">{m.vuln_no_scan()}</span>
</div>
- <p class="text-muted-foreground text-xs">
+ <p class="text-xs text-muted-foreground">
{m.vuln_click_to_scan()}
</p>
{/if}
@@ -344,7 +344,7 @@
<button
onclick={startScan}
disabled={isScanning}
- class="bg-secondary text-secondary-foreground hover:bg-secondary/80 w-full rounded-md px-3 py-1.5 text-xs font-medium transition-colors disabled:opacity-50"
+ class="w-full rounded-md bg-secondary px-3 py-1.5 text-xs font-medium text-secondary-foreground transition-colors hover:bg-secondary/80 disabled:opacity-50"
>
{isScanning
? m.vuln_scanning()
@@ -386,10 +386,10 @@
</div>
{:else if isCompleted}
<div
- class="border-border/50 bg-muted/20 flex w-full min-w-0 items-center justify-center gap-1.5 rounded-md border px-2 py-1"
+ class="flex w-full min-w-0 items-center justify-center gap-1.5 rounded-md border border-border/50 bg-muted/20 px-2 py-1"
>
<span class="{triggerDotClass} size-2 shrink-0 rounded-full" aria-hidden="true"></span>
- <span class="text-foreground text-xs font-medium tabular-nums">{totalCount}</span>
+ <span class="text-xs font-medium text-foreground tabular-nums">{totalCount}</span>
</div>
{/if}
</div>
diff --git a/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte b/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte
index 4040a4fae..6cd1632e2 100644
--- a/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte
+++ b/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte
@@ -296,10 +296,10 @@
{/snippet}
{#snippet ScanMetaChips()}
- <div class="text-muted-foreground mt-4 flex flex-wrap gap-2 text-xs">
- <span class="bg-muted/50 rounded-full px-2 py-1">{scanDurationLabel}</span>
+ <div class="mt-4 flex flex-wrap gap-2 text-xs text-muted-foreground">
+ <span class="rounded-full bg-muted/50 px-2 py-1">{scanDurationLabel}</span>
{#if scan?.scannerVersion}
- <span class="bg-muted/50 rounded-full px-2 py-1">Trivy {scan.scannerVersion}</span>
+ <span class="rounded-full bg-muted/50 px-2 py-1">Trivy {scan.scannerVersion}</span>
{/if}
</div>
{/snippet}
@@ -307,7 +307,7 @@
{#if isWorking}
<div class="flex items-center justify-center py-8">
<Spinner class="size-8" />
- <span class="text-muted-foreground ml-3">{m.vuln_scanning()}</span>
+ <span class="ml-3 text-muted-foreground">{m.vuln_scanning()}</span>
</div>
{:else if scan?.status === 'completed' && resolvedSummary}
{@const summary = resolvedSummary}
@@ -327,14 +327,14 @@
</div>
{:else}
<div class="grid gap-4 xl:grid-cols-[minmax(0,1.2fr)_minmax(0,1fr)]">
- <div class="border-border/60 bg-muted/30 rounded-2xl border p-5 shadow-sm">
+ <div class="rounded-2xl border border-border/60 bg-muted/30 p-5 shadow-sm">
<div class="flex items-center justify-between">
- <p class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.vuln_summary()}</p>
+ <p class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.vuln_summary()}</p>
<Badge variant={scanStatusVariant}>{scanStatusLabel}</Badge>
</div>
<div class="mt-5 flex items-end gap-4">
<div class="text-5xl leading-none font-semibold tracking-tight">{summary.total}</div>
- <div class="text-muted-foreground space-y-1 text-xs">
+ <div class="space-y-1 text-xs text-muted-foreground">
<div class="tracking-wide uppercase">{m.common_total()}</div>
<div>{m.vuln_details()}</div>
</div>
@@ -342,8 +342,8 @@
<div class="mt-5 space-y-2">
{#each severityBars as bar (bar.key)}
<div class="flex items-center gap-3 text-xs">
- <span class="text-muted-foreground w-24">{bar.label}</span>
- <div class="bg-muted/60 relative h-2 flex-1 overflow-hidden rounded-full">
+ <span class="w-24 text-muted-foreground">{bar.label}</span>
+ <div class="relative h-2 flex-1 overflow-hidden rounded-full bg-muted/60">
<div class={`h-full ${bar.barClass}`} style={`width: ${bar.pct}%`}></div>
</div>
<span class={`w-8 text-right font-mono ${bar.textClass}`}>{bar.count}</span>
@@ -355,12 +355,12 @@
<div class="grid gap-3 sm:grid-cols-2">
{#each severityBars as bar (bar.key)}
- <div class="border-border/60 bg-muted/30 rounded-xl border p-4 shadow-sm">
+ <div class="rounded-xl border border-border/60 bg-muted/30 p-4 shadow-sm">
<div class="flex items-center justify-between">
- <span class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{bar.label}</span>
+ <span class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{bar.label}</span>
</div>
<div class={`mt-2 text-3xl font-semibold ${bar.textClass}`}>{bar.count}</div>
- <div class="bg-muted/60 mt-3 h-1.5 rounded-full">
+ <div class="mt-3 h-1.5 rounded-full bg-muted/60">
<div class={`h-full ${bar.barClass}`} style={`width: ${bar.pct}%`}></div>
</div>
</div>
@@ -371,8 +371,8 @@
{#if resolvedSummary && resolvedSummary.total > 0}
<div class="mt-6 space-y-2">
- <h4 class="text-muted-foreground text-sm font-semibold">{m.vuln_details()}</h4>
- <div class="border-border/60 rounded-xl border">
+ <h4 class="text-sm font-semibold text-muted-foreground">{m.vuln_details()}</h4>
+ <div class="rounded-xl border border-border/60">
<ArcaneTable
items={vulnerabilityItems}
bind:requestOptions={vulnerabilityRequestOptions}
@@ -396,8 +396,8 @@
</div>
{:else}
<div class="flex flex-col items-center justify-center py-8 text-center">
- <ScanIcon class="text-muted-foreground/50 mb-4 size-12" />
- <p class="text-muted-foreground mb-2">{m.vuln_no_scan()}</p>
+ <ScanIcon class="mb-4 size-12 text-muted-foreground/50" />
+ <p class="mb-2 text-muted-foreground">{m.vuln_no_scan()}</p>
<ArcaneButton action="base" onclick={onScan} disabled={!onScan || isScanning}>
{#if isScanning}
<Spinner class="mr-2 size-4" />
diff --git a/frontend/src/lib/layouts/resource-detail-layout.svelte b/frontend/src/lib/layouts/resource-detail-layout.svelte
index 2e18d8f50..f1a242f12 100644
--- a/frontend/src/lib/layouts/resource-detail-layout.svelte
+++ b/frontend/src/lib/layouts/resource-detail-layout.svelte
@@ -55,23 +55,23 @@
{#if showFloatingHeader}
<div
- class="animate-in fade-in slide-in-from-top-2 fixed top-4 left-1/2 z-[var(--arcane-z-page-floating)] w-[calc(100%-2rem)] max-w-fit -translate-x-1/2 px-2 duration-200 sm:w-auto sm:px-0"
+ class="fixed top-4 left-1/2 z-[var(--arcane-z-page-floating)] w-[calc(100%-2rem)] max-w-fit -translate-x-1/2 animate-in px-2 duration-200 fade-in slide-in-from-top-2 sm:w-auto sm:px-0"
>
<div
- class="bg-popover/95 supports-backdrop-filter:bg-popover/85 border-border/60 bubble-shadow-lg flex items-center gap-3 rounded-lg border px-4 py-2 backdrop-blur-md"
+ class="bubble-shadow-lg flex items-center gap-3 rounded-lg border border-border/60 bg-popover/95 px-4 py-2 backdrop-blur-md supports-backdrop-filter:bg-popover/85"
>
{#if backUrl}
<ArcaneButton action="base" tone="ghost" href={backUrl} class="size-8 rounded-md p-0">
<ArrowLeftIcon class="size-4" />
</ArcaneButton>
- <div class="bg-border/60 h-4 w-px"></div>
+ <div class="h-4 w-px bg-border/60"></div>
{/if}
<span class="max-w-[200px] truncate text-sm font-semibold">{title}</span>
{#if actions.length > 0}
- <div class="bg-border/60 h-4 w-px"></div>
+ <div class="h-4 w-px bg-border/60"></div>
<div class="flex items-center gap-1.5">
{#if primaryAction}
<ArcaneButton
@@ -140,7 +140,7 @@
<div class="min-w-0 flex-1 space-y-2">
<h1 class="text-xl font-semibold tracking-tight break-all sm:text-2xl">{title}</h1>
{#if subtitle}
- <p class="text-muted-foreground text-sm">{subtitle}</p>
+ <p class="text-sm text-muted-foreground">{subtitle}</p>
{/if}
{#if badges}
<div class="flex flex-wrap items-center gap-2 pt-1">
diff --git a/frontend/src/lib/layouts/resource-page-layout.svelte b/frontend/src/lib/layouts/resource-page-layout.svelte
index 3844c2e16..1492cefac 100644
--- a/frontend/src/lib/layouts/resource-page-layout.svelte
+++ b/frontend/src/lib/layouts/resource-page-layout.svelte
@@ -52,7 +52,7 @@
<div class="flex min-w-0 flex-1 items-start gap-3 sm:gap-4">
{#if Icon}
<div
- class="bg-primary/10 text-primary ring-primary/20 flex size-8 shrink-0 items-center justify-center rounded-lg ring-1 sm:size-10"
+ class="flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary ring-1 ring-primary/20 sm:size-10"
>
<Icon class="size-4 sm:size-5" />
</div>
@@ -60,7 +60,7 @@
<div class="min-w-0">
<h1 class="text-xl font-semibold tracking-tight sm:text-2xl">{title}</h1>
{#if subtitle}
- <p class="text-muted-foreground mt-1 text-sm">{subtitle}</p>
+ <p class="mt-1 text-sm text-muted-foreground">{subtitle}</p>
{/if}
{#if statCards && statCards.length > 0}
<div class="mt-2 flex flex-wrap items-center gap-x-4 gap-y-1">
diff --git a/frontend/src/lib/layouts/settings-page-layout.svelte b/frontend/src/lib/layouts/settings-page-layout.svelte
index d1d4517bc..f9143688e 100644
--- a/frontend/src/lib/layouts/settings-page-layout.svelte
+++ b/frontend/src/lib/layouts/settings-page-layout.svelte
@@ -62,12 +62,12 @@
{/snippet}
<div class={cn('px-2 py-4 pb-5 sm:px-6 sm:py-6 sm:pb-10 lg:px-8', className)}>
- <div class="border-border/50 border-b pb-4 sm:pb-6">
+ <div class="border-b border-border/50 pb-4 sm:pb-6">
<div class="flex items-center justify-between gap-4">
<div class="flex flex-1 items-start gap-3 sm:gap-4">
{#if Icon}
<div
- class="bg-primary/10 text-primary ring-primary/20 flex size-8 shrink-0 items-center justify-center rounded-lg ring-1 sm:size-10"
+ class="flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary ring-1 ring-primary/20 sm:size-10"
>
<Icon class="size-4 sm:size-5" />
</div>
@@ -75,13 +75,13 @@
<div class="min-w-0">
<h1 class="text-xl font-semibold tracking-tight sm:text-2xl">{title}</h1>
{#if description}
- <p class="text-muted-foreground mt-1 hidden text-sm sm:block sm:text-base">{@html description}</p>
+ <p class="mt-1 hidden text-sm text-muted-foreground sm:block sm:text-base">{@html description}</p>
{/if}
{#if pageType === 'management' && statCards && statCards.length > 0}
<div class="mt-2 flex flex-wrap items-center gap-x-4 gap-y-1">
{#each statCards as card, i}
{#if i > 0}
- <div class="bg-border/50 h-4 w-px"></div>
+ <div class="h-4 w-px bg-border/50"></div>
{/if}
<StatCard
variant="mini"
@@ -150,7 +150,7 @@
<DropdownMenu.Root>
<DropdownMenu.Trigger>
{#snippet child({ props })}
- <ArcaneButton {...props} action="base" tone="ghost" size="icon" class="bg-background/70 size-8 border">
+ <ArcaneButton {...props} action="base" tone="ghost" size="icon" class="size-8 border bg-background/70">
<span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon class="size-4" />
</ArcaneButton>
@@ -159,7 +159,7 @@
<DropdownMenu.Content
align="end"
- class="bg-popover/90 z-[var(--arcane-z-surface)] min-w-[160px] rounded-xl border p-1 shadow-lg backdrop-blur-md"
+ class="z-[var(--arcane-z-surface)] min-w-[160px] rounded-xl border bg-popover/90 p-1 shadow-lg backdrop-blur-md"
>
<DropdownMenu.Group>
{#each mobileDropdownButtons as button}
diff --git a/frontend/src/lib/layouts/tabbed-page-layout.svelte b/frontend/src/lib/layouts/tabbed-page-layout.svelte
index e08bfbd56..c103ba9ab 100644
--- a/frontend/src/lib/layouts/tabbed-page-layout.svelte
+++ b/frontend/src/lib/layouts/tabbed-page-layout.svelte
@@ -49,7 +49,7 @@
});
</script>
-<div class={cn('bg-background flex h-full min-h-0 flex-col', className)}>
+<div class={cn('flex h-full min-h-0 flex-col bg-background', className)}>
<Tabs.Root value={selectedTab} class="flex min-h-0 w-full flex-1 flex-col">
<div
class="sticky top-0 border-b transition-all duration-300"
@@ -88,14 +88,14 @@
class="fixed top-4 left-1/2 z-[var(--arcane-z-page-floating)] -translate-x-1/2 transition-all duration-300 ease-in-out"
>
<div
- class="bg-popover/90 supports-backdrop-filter:bg-popover/80 bubble-shadow-lg border-border/50 rounded-lg border px-4 py-3 backdrop-blur-md"
+ class="bubble-shadow-lg rounded-lg border border-border/50 bg-popover/90 px-4 py-3 backdrop-blur-md supports-backdrop-filter:bg-popover/80"
>
<div class="flex items-center gap-4">
<div class="min-w-0">
{@render headerInfo()}
</div>
{#if headerActions}
- <div class="bg-border h-4 w-px"></div>
+ <div class="h-4 w-px bg-border"></div>
{@render headerActions()}
{/if}
</div>
diff --git a/frontend/src/lib/types/notifications.ts b/frontend/src/lib/types/notifications.ts
index 114391395..0ca442a0a 100644
--- a/frontend/src/lib/types/notifications.ts
+++ b/frontend/src/lib/types/notifications.ts
@@ -1,7 +1,16 @@
// --- Notification settings ---
export type NotificationProvider =
- 'discord' | 'email' | 'telegram' | 'signal' | 'slack' | 'ntfy' | 'pushover' | 'gotify' | 'matrix' | 'generic';
+ | 'discord'
+ | 'email'
+ | 'telegram'
+ | 'signal'
+ | 'slack'
+ | 'ntfy'
+ | 'pushover'
+ | 'gotify'
+ | 'matrix'
+ | 'generic';
export type EmailTLSMode = 'none' | 'starttls' | 'ssl';
export type EmailAuthMode = 'none' | 'auto' | 'plain' | 'login' | 'crammd5';
diff --git a/frontend/src/routes/(app)/account/+page.svelte b/frontend/src/routes/(app)/account/+page.svelte
index 2f88b97bd..453c4c923 100644
--- a/frontend/src/routes/(app)/account/+page.svelte
+++ b/frontend/src/routes/(app)/account/+page.svelte
@@ -292,13 +292,13 @@
<div class="flex items-center justify-between gap-4">
<div class="flex min-w-0 flex-1 items-center gap-3 sm:gap-4">
<div
- class="bg-primary/10 text-primary ring-primary/20 flex size-8 shrink-0 items-center justify-center rounded-lg ring-1 sm:size-10"
+ class="flex size-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary ring-1 ring-primary/20 sm:size-10"
>
<UserIcon class="size-4 sm:size-5" />
</div>
<div class="min-w-0">
<h1 class="text-2xl font-semibold tracking-tight sm:text-3xl">{m.account_title()}</h1>
- <p class="text-muted-foreground mt-1 text-sm">{m.account_subtitle()}</p>
+ <p class="mt-1 text-sm text-muted-foreground">{m.account_subtitle()}</p>
</div>
</div>
</div>
@@ -312,7 +312,7 @@
<Card class="overflow-hidden">
<div class="border-b p-4 sm:p-6">
<h2 class="text-base font-semibold tracking-tight sm:text-lg">{m.account_profile_title()}</h2>
- <p class="text-muted-foreground mt-1 text-xs sm:text-sm">{m.account_profile_description()}</p>
+ <p class="mt-1 text-xs text-muted-foreground sm:text-sm">{m.account_profile_description()}</p>
</div>
<div class="space-y-5 p-4 sm:p-6">
<ImageCropper.Root
@@ -326,9 +326,9 @@
<ImageCropper.Dialog>
<div class="space-y-1">
<h3 class="text-base font-semibold tracking-tight">{m.account_avatar_crop_title()}</h3>
- <p class="text-muted-foreground text-sm">{m.account_avatar_crop_description()}</p>
+ <p class="text-sm text-muted-foreground">{m.account_avatar_crop_description()}</p>
</div>
- <div class="bg-muted/40 h-72 overflow-hidden rounded-lg border">
+ <div class="h-72 overflow-hidden rounded-lg border bg-muted/40">
<ImageCropper.Cropper />
</div>
<ImageCropper.Controls class="justify-end">
@@ -337,12 +337,12 @@
</ImageCropper.Controls>
</ImageCropper.Dialog>
- <div class="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4">
+ <div class="flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center">
<div class="flex min-w-0 items-center gap-4">
<ImageCropper.UploadTrigger
aria-label={m.account_upload_photo()}
class={cn(
- 'group/avatar relative size-16 overflow-hidden rounded-xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2',
+ 'group/avatar relative size-16 overflow-hidden rounded-xl focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:outline-none',
avatarUploading && 'pointer-events-none opacity-70'
)}
disabled={avatarUploading}
@@ -354,7 +354,7 @@
{:else if avatarUrl}
<Avatar.Image src={avatarUrl} alt={currentUser.displayName ?? currentUser.username} />
{/if}
- <Avatar.Fallback class="bg-primary text-primary-foreground rounded-xl text-xl font-semibold">
+ <Avatar.Fallback class="rounded-xl bg-primary text-xl font-semibold text-primary-foreground">
{(currentUser.displayName ?? currentUser.username).charAt(0).toUpperCase()}
</Avatar.Fallback>
</Avatar.Root>
@@ -362,12 +362,12 @@
<div
class="absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover/avatar:opacity-100"
>
- <div class="text-white text-xs font-medium">{m.account_upload_overlay()}</div>
+ <div class="text-xs font-medium text-white">{m.account_upload_overlay()}</div>
</div>
</ImageCropper.UploadTrigger>
- <div class="min-w-0 flex flex-col items-start gap-1">
+ <div class="flex min-w-0 flex-col items-start gap-1">
<div class="text-sm font-medium">@{currentUser.username}</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{isOidcUser ? m.account_single_sign_on() : m.account_local_account()}
</div>
{#if currentUser.avatarUrl}
@@ -378,7 +378,7 @@
tone="ghost"
customLabel={m.account_remove_photo()}
showLabel={true}
- class="text-muted-foreground hover:text-destructive hover:bg-destructive/10"
+ class="text-muted-foreground hover:bg-destructive/10 hover:text-destructive"
onclick={removeAvatar}
disabled={avatarUploading}
/>
@@ -388,12 +388,12 @@
</div>
<div class="hidden text-right sm:block">
{#if safeFormatDate(currentUser.createdAt, 'PP')}
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{m.account_member_since()}
{safeFormatDate(currentUser.createdAt, 'PP')}
</div>
{/if}
- <div class="text-muted-foreground text-xs" title={currentUser.lastLogin ?? ''}>
+ <div class="text-xs text-muted-foreground" title={currentUser.lastLogin ?? ''}>
{m.account_last_login_prefix()}
{safeFormatRelative(currentUser.lastLogin) ?? m.common_never()}
</div>
@@ -436,7 +436,7 @@
/>
</div>
{:else}
- <p class="text-muted-foreground text-xs">{m.account_profile_managed_by_idp()}</p>
+ <p class="text-xs text-muted-foreground">{m.account_profile_managed_by_idp()}</p>
{/if}
</div>
</Card>
@@ -446,7 +446,7 @@
<Card class="overflow-hidden">
<div class="border-b p-4 sm:p-6">
<h2 class="text-base font-semibold tracking-tight sm:text-lg">{m.account_password()}</h2>
- <p class="text-muted-foreground mt-1 text-xs sm:text-sm">{m.account_password_desc()}</p>
+ <p class="mt-1 text-xs text-muted-foreground sm:text-sm">{m.account_password_desc()}</p>
</div>
<div class="space-y-5 p-4 sm:p-6">
<TextInputWithLabel
@@ -492,7 +492,7 @@
<div class="flex items-start justify-between gap-3 border-b p-4 sm:p-6">
<div class="min-w-0">
<h2 class="text-base font-semibold tracking-tight sm:text-lg">{m.account_api_keys_title()}</h2>
- <p class="text-muted-foreground mt-1 text-xs sm:text-sm">{m.account_api_keys_description()}</p>
+ <p class="mt-1 text-xs text-muted-foreground sm:text-sm">{m.account_api_keys_description()}</p>
</div>
{#if !showCreateKeyForm && !createdKey}
<ArcaneButton
@@ -508,13 +508,13 @@
<div class="p-4 sm:p-6">
{#if createdKey}
- <div class="border-primary/30 bg-primary/5 mb-4 space-y-3 rounded-lg border p-4">
+ <div class="mb-4 space-y-3 rounded-lg border border-primary/30 bg-primary/5 p-4">
<div>
<div class="text-sm font-semibold">Key created: {createdKey.name}</div>
- <p class="text-muted-foreground mt-1 text-xs">Copy this token now &mdash; you won't be able to see it again.</p>
+ <p class="mt-1 text-xs text-muted-foreground">Copy this token now &mdash; you won't be able to see it again.</p>
</div>
<div class="flex items-center gap-2">
- <code class="bg-background flex-1 truncate rounded border px-3 py-2 font-mono text-xs">
+ <code class="flex-1 truncate rounded border bg-background px-3 py-2 font-mono text-xs">
{createdKey.key}
</code>
<ArcaneButton
@@ -539,9 +539,9 @@
{/if}
{#if apiKeysLoading && apiKeys.length === 0}
- <div class="text-muted-foreground py-8 text-center text-sm">Loading keys…</div>
+ <div class="py-8 text-center text-sm text-muted-foreground">Loading keys…</div>
{:else if apiKeys.length === 0}
- <div class="text-muted-foreground py-8 text-center text-sm">
+ <div class="py-8 text-center text-sm text-muted-foreground">
<ApiKeyIcon class="mx-auto mb-2 size-8 opacity-40" />
No API keys yet.
</div>
@@ -552,14 +552,14 @@
<div class="min-w-0 flex-1">
<div class="flex items-center gap-2">
<span class="truncate text-sm font-medium">{key.name}</span>
- <code class="text-muted-foreground bg-muted/40 rounded px-1.5 py-0.5 font-mono text-xs">
+ <code class="rounded bg-muted/40 px-1.5 py-0.5 font-mono text-xs text-muted-foreground">
{key.keyPrefix}…
</code>
</div>
{#if key.description}
- <div class="text-muted-foreground mt-0.5 truncate text-xs">{key.description}</div>
+ <div class="mt-0.5 truncate text-xs text-muted-foreground">{key.description}</div>
{/if}
- <div class="text-muted-foreground mt-1 text-xs">
+ <div class="mt-1 text-xs text-muted-foreground">
{#if safeFormatDate(key.createdAt, 'PP')}
Created {safeFormatDate(key.createdAt, 'PP')}
{/if}
@@ -577,7 +577,7 @@
icon={TrashIcon}
customLabel={m.common_delete()}
showLabel={false}
- class="text-muted-foreground hover:text-destructive hover:bg-destructive/10"
+ class="text-muted-foreground hover:bg-destructive/10 hover:text-destructive"
onclick={() => deleteApiKey(key.id, key.name)}
/>
</li>
@@ -594,34 +594,34 @@
<Card class="overflow-hidden">
<div class="border-b p-4 sm:p-6">
<h2 class="text-base font-semibold tracking-tight sm:text-lg">{m.account_preferences()}</h2>
- <p class="text-muted-foreground mt-1 text-xs sm:text-sm">{m.account_preferences_desc()}</p>
+ <p class="mt-1 text-xs text-muted-foreground sm:text-sm">{m.account_preferences_desc()}</p>
</div>
<div class="divide-y p-2">
<div class="flex items-center justify-between gap-4 p-3">
<div class="min-w-0">
<div class="text-sm font-medium">{m.account_theme()}</div>
- <div class="text-muted-foreground text-xs">{m.appearance_theme_current_user_description()}</div>
+ <div class="text-xs text-muted-foreground">{m.appearance_theme_current_user_description()}</div>
</div>
<ThemeModeSelector />
</div>
<div class="flex items-center justify-between gap-4 p-3">
<div class="min-w-0">
<div class="text-sm font-medium">{m.account_language()}</div>
- <div class="text-muted-foreground text-xs">{m.account_language_desc()}</div>
+ <div class="text-xs text-muted-foreground">{m.account_language_desc()}</div>
</div>
<LocalePicker inline />
</div>
<div class="flex items-center justify-between gap-4 p-3">
<div class="min-w-0">
<div class="text-sm font-medium">{m.time_format()}</div>
- <div class="text-muted-foreground text-xs">{m.account_time_format_desc()}</div>
+ <div class="text-xs text-muted-foreground">{m.account_time_format_desc()}</div>
</div>
<TimeFormatPicker id="accountTimeFormatPicker" />
</div>
<div class="flex items-center justify-between gap-4 p-3">
<div class="min-w-0">
<div class="text-sm font-medium">{m.font_size()}</div>
- <div class="text-muted-foreground text-xs">{m.font_size_description()}</div>
+ <div class="text-xs text-muted-foreground">{m.font_size_description()}</div>
</div>
<FontSizePicker />
</div>
@@ -632,16 +632,16 @@
<Card class="overflow-hidden">
<div class="border-b p-4 sm:p-6">
<h2 class="text-base font-semibold tracking-tight sm:text-lg">{m.account_roles_and_access()}</h2>
- <p class="text-muted-foreground mt-1 text-xs sm:text-sm">{m.account_roles()}</p>
+ <p class="mt-1 text-xs text-muted-foreground sm:text-sm">{m.account_roles()}</p>
</div>
<div class="p-4 sm:p-6">
{#if currentUser.roleAssignments && currentUser.roleAssignments.length > 0}
<ul class="space-y-2">
{#each currentUser.roleAssignments as ra (`${ra.roleId}-${ra.environmentId ?? 'global'}`)}
- <li class="bg-muted/30 flex items-center justify-between gap-3 rounded-lg px-3 py-2">
+ <li class="flex items-center justify-between gap-3 rounded-lg bg-muted/30 px-3 py-2">
<div class="min-w-0">
<div class="text-sm font-medium">{prettyRoleName(ra.roleId)}</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{ra.environmentId ? m.account_role_environment({ env: ra.environmentId }) : m.account_global_scope()}
{#if ra.source === 'oidc'}
<span class="ml-1 opacity-70">{m.account_via_sso()}</span>
@@ -652,13 +652,13 @@
{/each}
</ul>
{:else}
- <p class="text-muted-foreground text-sm">{m.account_no_roles()}</p>
+ <p class="text-sm text-muted-foreground">{m.account_no_roles()}</p>
{/if}
{#if currentUser.permissionsByEnv}
{@const envCount = Object.keys(currentUser.permissionsByEnv).length}
{@const globalCount = currentUser.permissionsByEnv[GLOBAL_SCOPE]?.length ?? 0}
- <p class="text-muted-foreground mt-3 text-xs">
+ <p class="mt-3 text-xs text-muted-foreground">
{globalCount} global permission{globalCount === 1 ? '' : 's'} across {envCount} environment{envCount === 1
? ''
: 's'}.
@@ -668,18 +668,18 @@
</Card>
{#if !autoLoginEnabled}
- <Card class="border-destructive/30 overflow-hidden">
- <div class="border-destructive/20 border-b p-4 sm:p-6">
+ <Card class="overflow-hidden border-destructive/30">
+ <div class="border-b border-destructive/20 p-4 sm:p-6">
<div class="flex items-center gap-2">
- <ShieldAlertIcon class="text-destructive size-5" />
+ <ShieldAlertIcon class="size-5 text-destructive" />
<h2 class="text-base font-semibold tracking-tight sm:text-lg">{m.account_danger_zone()}</h2>
</div>
- <p class="text-muted-foreground mt-1 text-xs sm:text-sm">{m.account_danger_zone_desc()}</p>
+ <p class="mt-1 text-xs text-muted-foreground sm:text-sm">{m.account_danger_zone_desc()}</p>
</div>
<div class="space-y-4 p-4 sm:p-6">
<div class="space-y-2">
<div class="text-sm font-medium">{m.account_signout_other()}</div>
- <p class="text-muted-foreground text-xs">
+ <p class="text-xs text-muted-foreground">
{m.account_signout_other_desc()}
</p>
<ArcaneButton
@@ -696,7 +696,7 @@
<div class="space-y-2">
<div class="text-sm font-medium">{m.common_log_out()}</div>
- <p class="text-muted-foreground text-xs">{m.account_signout_this()}</p>
+ <p class="text-xs text-muted-foreground">{m.account_signout_this()}</p>
<form action="/logout" method="POST">
<ArcaneButton
action="cancel"
@@ -704,7 +704,7 @@
customLabel={m.common_log_out()}
icon={LogoutIcon}
type="submit"
- class="text-destructive border-destructive/30 hover:bg-destructive/10 hover:text-destructive"
+ class="border-destructive/30 text-destructive hover:bg-destructive/10 hover:text-destructive"
/>
</form>
</div>
@@ -714,7 +714,7 @@
</div>
</div>
{:else}
- <div class="text-muted-foreground py-12 text-center text-sm">Loading account…</div>
+ <div class="py-12 text-center text-sm text-muted-foreground">Loading account…</div>
{/if}
</div>
diff --git a/frontend/src/routes/(app)/containers/components/ContainerConfiguration.svelte b/frontend/src/routes/(app)/containers/components/ContainerConfiguration.svelte
index 1e4ad7bfb..7fbdc32e7 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerConfiguration.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerConfiguration.svelte
@@ -37,7 +37,7 @@
valueTitle={m.common_click_to_select()}
/>
{:else}
- <div class="text-muted-foreground rounded-lg border border-dashed py-8 text-center">
+ <div class="rounded-lg border border-dashed py-8 text-center text-muted-foreground">
<div class="text-sm">{m.containers_no_env_vars()}</div>
</div>
{/if}
@@ -66,7 +66,7 @@
{/each}
</KeyValueGrid>
{:else}
- <div class="text-muted-foreground rounded-lg border border-dashed py-8 text-center">
+ <div class="rounded-lg border border-dashed py-8 text-center text-muted-foreground">
<div class="text-sm">{m.containers_no_labels_defined()}</div>
</div>
{/if}
diff --git a/frontend/src/routes/(app)/containers/components/ContainerHealthcheck.svelte b/frontend/src/routes/(app)/containers/components/ContainerHealthcheck.svelte
index 0f7da4c38..c4fc6266d 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerHealthcheck.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerHealthcheck.svelte
@@ -131,7 +131,7 @@
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_health_status()}
</div>
<div>
@@ -142,10 +142,10 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.health_failing_streak()}
</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-sm font-medium text-foreground">
{health?.failingStreak ?? 0}
</div>
</Card.Content>
@@ -154,10 +154,10 @@
{#if retriesBudget}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.health_retries_remaining()}
</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-sm font-medium text-foreground">
{retriesBudget.remaining} / {retriesBudget.retries}
</div>
</Card.Content>
@@ -167,10 +167,10 @@
{#if nextCheck}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.health_next_check()}
</div>
- <div class="text-foreground text-sm font-medium" title={formatProbeDate(nextCheck.at)}>
+ <div class="text-sm font-medium text-foreground" title={formatProbeDate(nextCheck.at)}>
{#if nextCheck.overdue}
{m.health_next_check_running_now()}
{:else}
@@ -197,20 +197,20 @@
<div class="space-y-3">
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.health_test_command()}
</div>
{#if testCommand.type === 'inherit'}
- <div class="text-muted-foreground text-sm italic">
+ <div class="text-sm text-muted-foreground italic">
{m.health_inherit_from_image()}
</div>
{:else if testCommand.type === 'none'}
- <div class="text-muted-foreground text-sm italic">
+ <div class="text-sm text-muted-foreground italic">
{m.health_disabled_in_image()}
</div>
{:else}
<pre
- class="text-foreground cursor-pointer rounded-md bg-black/5 p-2 font-mono text-sm break-all whitespace-pre-wrap select-all dark:bg-white/5"
+ class="cursor-pointer rounded-md bg-black/5 p-2 font-mono text-sm break-all whitespace-pre-wrap text-foreground select-all dark:bg-white/5"
title={m.common_click_to_select()}>{testCommand.text}</pre>
{/if}
</Card.Content>
@@ -219,50 +219,50 @@
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5">
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.health_interval()}
</div>
- <div class="text-foreground font-mono text-sm font-medium">
+ <div class="font-mono text-sm font-medium text-foreground">
{formatDurationNs(healthcheck?.interval)}
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.health_timeout()}
</div>
- <div class="text-foreground font-mono text-sm font-medium">
+ <div class="font-mono text-sm font-medium text-foreground">
{formatDurationNs(healthcheck?.timeout)}
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.health_start_period()}
</div>
- <div class="text-foreground font-mono text-sm font-medium">
+ <div class="font-mono text-sm font-medium text-foreground">
{formatDurationNs(healthcheck?.startPeriod)}
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.health_start_interval()}
</div>
- <div class="text-foreground font-mono text-sm font-medium">
+ <div class="font-mono text-sm font-medium text-foreground">
{formatDurationNs(healthcheck?.startInterval)}
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.health_retries()}
</div>
- <div class="text-foreground font-mono text-sm font-medium">
+ <div class="font-mono text-sm font-medium text-foreground">
{healthcheck?.retries ?? 0}
</div>
</Card.Content>
@@ -283,7 +283,7 @@
</Card.Header>
<Card.Content class="p-4">
{#if recentProbes.length === 0}
- <div class="text-muted-foreground rounded-lg border border-dashed py-8 text-center">
+ <div class="rounded-lg border border-dashed py-8 text-center text-muted-foreground">
<div class="text-sm">{m.health_no_probes_yet()}</div>
</div>
{:else}
@@ -297,22 +297,22 @@
<Badge variant={probe.exitCode === 0 ? 'green' : 'red'} size="sm" minWidth="20"
>{`${m.health_exit_code()}: ${probe.exitCode}`}</Badge
>
- <span class="text-muted-foreground text-xs" title={formatProbeDate(probe.start)}>
+ <span class="text-xs text-muted-foreground" title={formatProbeDate(probe.start)}>
{probe.start ? formatDistanceToNow(probe.start, { addSuffix: true }) : '—'}
</span>
- <span class="text-muted-foreground text-xs">
+ <span class="text-xs text-muted-foreground">
{m.health_probe_duration()}: {probeDuration(probe.start, probe.end)}
</span>
</div>
{#if probe.output}
- <button type="button" class="text-primary text-xs hover:underline" onclick={() => toggleExpanded(key)}>
+ <button type="button" class="text-xs text-primary hover:underline" onclick={() => toggleExpanded(key)}>
{expanded[key] ? m.common_hide() : m.common_show()}
</button>
{/if}
</div>
{#if probe.output && expanded[key]}
<pre
- class="text-foreground max-h-64 overflow-auto rounded-md bg-black/5 p-2 font-mono text-xs whitespace-pre-wrap dark:bg-white/5">{probe.output}</pre>
+ class="max-h-64 overflow-auto rounded-md bg-black/5 p-2 font-mono text-xs whitespace-pre-wrap text-foreground dark:bg-white/5">{probe.output}</pre>
{/if}
</Card.Content>
</Card.Root>
diff --git a/frontend/src/routes/(app)/containers/components/ContainerInspect.svelte b/frontend/src/routes/(app)/containers/components/ContainerInspect.svelte
index d4fc159fa..457ddf26c 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerInspect.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerInspect.svelte
@@ -29,6 +29,6 @@
</div>
</Card.Header>
<Card.Content class="p-0">
- <pre class="bg-muted/40 overflow-auto rounded-b-lg p-4 font-mono text-xs leading-relaxed"><code>{json}</code></pre>
+ <pre class="overflow-auto rounded-b-lg bg-muted/40 p-4 font-mono text-xs leading-relaxed"><code>{json}</code></pre>
</Card.Content>
</Card.Root>
diff --git a/frontend/src/routes/(app)/containers/components/ContainerLogStatMonitor.svelte b/frontend/src/routes/(app)/containers/components/ContainerLogStatMonitor.svelte
index 3accb269e..954e4bf76 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerLogStatMonitor.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerLogStatMonitor.svelte
@@ -27,18 +27,18 @@
<section
class={cn(
- 'bg-card/35 border-border/70 grid min-w-0 gap-2 rounded-lg border px-3 py-2.5',
+ 'grid min-w-0 gap-2 rounded-lg border border-border/70 bg-card/35 px-3 py-2.5',
disabled && 'bg-muted/25 text-muted-foreground'
)}
data-testid={testId}
>
<div class="grid grid-cols-[minmax(0,1fr)_auto] items-start gap-x-3">
<div class="flex min-w-0 items-center gap-2">
- <div class="bg-background/70 border-border/60 flex size-7 shrink-0 items-center justify-center rounded-md border">
+ <div class="flex size-7 shrink-0 items-center justify-center rounded-md border border-border/60 bg-background/70">
<Icon class={cn('size-4', disabled ? 'text-muted-foreground' : iconColorClass)} />
</div>
<div class="min-w-0">
- <div class="text-muted-foreground text-[11px] font-medium tracking-normal">{label}</div>
+ <div class="text-[11px] font-medium tracking-normal text-muted-foreground">{label}</div>
{#if loading}
<Skeleton class="mt-1 h-5 w-20" />
{:else}
@@ -52,14 +52,14 @@
{#if loading}
<Skeleton class="mt-0.5 h-4 w-16 justify-self-end" />
{:else}
- <div class="text-muted-foreground shrink-0 justify-self-end pl-2 text-right text-[11px] tabular-nums">{detail}</div>
+ <div class="shrink-0 justify-self-end pl-2 text-right text-[11px] text-muted-foreground tabular-nums">{detail}</div>
{/if}
</div>
{#if loading}
<Skeleton class="h-8 w-full" />
{:else}
- <div class="bg-background/60 border-border/60 flex h-8 items-end gap-[3px] overflow-hidden rounded-md border px-1.5 py-1">
+ <div class="flex h-8 items-end gap-[3px] overflow-hidden rounded-md border border-border/60 bg-background/60 px-1.5 py-1">
{#each history as sample, index (`${tone}-${index}`)}
<ArcaneTooltip.Root>
<ArcaneTooltip.Trigger class="flex h-full min-w-0 flex-1 items-end self-stretch">
@@ -71,7 +71,7 @@
<ArcaneTooltip.Content side="top">
<div class="space-y-1">
<div class="text-xs font-medium">{label}</div>
- <div class="text-muted-foreground text-xs tabular-nums">{sample.tooltip}</div>
+ <div class="text-xs text-muted-foreground tabular-nums">{sample.tooltip}</div>
</div>
</ArcaneTooltip.Content>
</ArcaneTooltip.Root>
diff --git a/frontend/src/routes/(app)/containers/components/ContainerLogsPanel.svelte b/frontend/src/routes/(app)/containers/components/ContainerLogsPanel.svelte
index 936f50a95..9cf5b7f38 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerLogsPanel.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerLogsPanel.svelte
@@ -251,7 +251,7 @@
/>
</div>
</div>
- <div class="bg-card/90 min-h-0 flex-1 overflow-hidden rounded-lg border p-0 backdrop-blur-sm">
+ <div class="min-h-0 flex-1 overflow-hidden rounded-lg border bg-card/90 p-0 backdrop-blur-sm">
<LogViewer
bind:this={viewer}
bind:autoScroll
diff --git a/frontend/src/routes/(app)/containers/components/ContainerNetwork.svelte b/frontend/src/routes/(app)/containers/components/ContainerNetwork.svelte
index b831f4baa..bcb850ed0 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerNetwork.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerNetwork.svelte
@@ -29,7 +29,7 @@
<!-- fallow-ignore-next-line code-duplication container vs swarm-service network; typed props diverge across the boundary -->
<PortBadge ports={container.ports} />
{:else}
- <div class="text-muted-foreground rounded-lg border border-dashed py-12 text-center">
+ <div class="rounded-lg border border-dashed py-12 text-center text-muted-foreground">
<div class="text-sm">{m.containers_no_ports()}</div>
</div>
{/if}
@@ -54,26 +54,26 @@
{#each Object.entries(container.networkSettings.networks) as [networkName, rawNetworkConfig] (networkName)}
<Card.Root variant="subtle">
<Card.Content class="p-4">
- <div class="border-border mb-4 flex items-center gap-3 border-b pb-4">
+ <div class="mb-4 flex items-center gap-3 border-b border-border pb-4">
<div class="rounded-lg bg-blue-500/10 p-2">
<NetworksIcon class="size-5 text-blue-500" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-foreground text-base font-semibold break-all">
+ <div class="text-base font-semibold break-all text-foreground">
{networkName}
</div>
- <div class="text-muted-foreground text-xs">{m.network_interface()}</div>
+ <div class="text-xs text-muted-foreground">{m.network_interface()}</div>
</div>
</div>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_ip_address()}
</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{rawNetworkConfig.ipAddress || m.common_na()}
@@ -83,9 +83,9 @@
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.common_gateway()}</div>
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">{m.common_gateway()}</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{rawNetworkConfig.gateway || m.common_na()}
@@ -95,11 +95,11 @@
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_mac_address()}
</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{rawNetworkConfig.macAddress || m.common_na()}
@@ -109,9 +109,9 @@
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.common_subnet()}</div>
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">{m.common_subnet()}</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{rawNetworkConfig.ipPrefixLen
@@ -124,9 +124,9 @@
{#if rawNetworkConfig.networkId}
<Card.Root variant="outlined" class="sm:col-span-2">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.container_network_id()}</div>
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">{m.container_network_id()}</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{rawNetworkConfig.networkId}
@@ -138,9 +138,9 @@
{#if rawNetworkConfig.endpointId}
<Card.Root variant="outlined" class="sm:col-span-2">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.container_endpoint_id()}</div>
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">{m.container_endpoint_id()}</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{rawNetworkConfig.endpointId}
@@ -152,10 +152,10 @@
{#if rawNetworkConfig.aliases && rawNetworkConfig.aliases.length > 0}
<Card.Root variant="outlined" class="sm:col-span-2">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_aliases()}
</div>
- <div class="text-foreground space-y-1 text-sm font-medium">
+ <div class="space-y-1 text-sm font-medium text-foreground">
{#each rawNetworkConfig.aliases as alias, index (index)}
<div class="cursor-pointer font-mono break-all select-all" title={m.common_click_to_select()}>
{alias}
@@ -172,7 +172,7 @@
{/each}
</div>
{:else}
- <div class="text-muted-foreground rounded-lg border border-dashed py-12 text-center">
+ <div class="rounded-lg border border-dashed py-12 text-center text-muted-foreground">
<div class="text-sm">{m.containers_no_networks_connected()}</div>
</div>
{/if}
diff --git a/frontend/src/routes/(app)/containers/components/ContainerOverview.svelte b/frontend/src/routes/(app)/containers/components/ContainerOverview.svelte
index b269706d5..ce6e821c9 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerOverview.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerOverview.svelte
@@ -137,7 +137,7 @@
<Card.Content class="p-4">
<div class="mb-6 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4">
<div>
- <div class="text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_image()}
</div>
<div class="flex items-center gap-3">
@@ -145,7 +145,7 @@
<VolumesIcon class="size-5 text-blue-500" />
</div>
<div
- class="text-foreground cursor-pointer text-base font-semibold break-all select-all"
+ class="cursor-pointer text-base font-semibold break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{container.image || m.common_na()}
@@ -155,24 +155,24 @@
{#if container.state?.running}
<div>
- <div class="text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase">{m.common_uptime()}</div>
+ <div class="mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_uptime()}</div>
<div class="flex items-center gap-3">
<div class="flex size-10 shrink-0 items-center justify-center rounded-full bg-green-500/10">
<StartIcon class="size-5 text-green-500" />
</div>
- <div class="text-foreground text-base font-semibold">
+ <div class="text-base font-semibold text-foreground">
{getUptime(container.state.startedAt)}
</div>
</div>
</div>
{:else}
<div>
- <div class="text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase">{m.common_status()}</div>
+ <div class="mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_status()}</div>
<div class="flex items-center gap-3">
<div class="flex size-10 shrink-0 items-center justify-center rounded-full bg-gray-500/10">
<StopIcon class="size-5 text-gray-500" />
</div>
- <div class="text-foreground text-base font-semibold">
+ <div class="text-base font-semibold text-foreground">
{container.state?.status || m.common_stopped()}
</div>
</div>
@@ -180,7 +180,7 @@
{/if}
<div>
- <div class="text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.containers_ip_address()}
</div>
<div class="flex items-center gap-3">
@@ -188,7 +188,7 @@
<NetworksIcon class="size-5 text-purple-500" />
</div>
<div
- class="text-foreground cursor-pointer font-mono text-base font-semibold select-all"
+ class="cursor-pointer font-mono text-base font-semibold text-foreground select-all"
title={m.common_click_to_select()}
>
{primaryIpAddress}
@@ -198,7 +198,7 @@
{#if container.state?.health}
<div>
- <div class="text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase">{m.common_health_status()}</div>
+ <div class="mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_health_status()}</div>
<div class="flex items-center gap-3">
<div class="flex size-10 shrink-0 items-center justify-center rounded-full bg-pink-500/10">
<HealthIcon class="size-5 text-pink-500" />
@@ -221,13 +221,13 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_created()}
</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-sm font-medium text-foreground">
{formatRelativeDate(container?.created)}
</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{formatDockerDate(container?.created)}
</div>
</Card.Content>
@@ -236,11 +236,11 @@
{#if container.state?.running}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.common_started()}</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_started()}</div>
+ <div class="text-sm font-medium text-foreground">
{formatRelativeDate(container.state.startedAt)}
</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{formatDockerDate(container.state.startedAt)}
</div>
</Card.Content>
@@ -248,11 +248,11 @@
{:else if container.state?.finishedAt && !container.state.finishedAt.startsWith('0001')}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.common_finished()}</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_finished()}</div>
+ <div class="text-sm font-medium text-foreground">
{formatRelativeDate(container.state.finishedAt)}
</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{formatDockerDate(container.state.finishedAt)}
</div>
</Card.Content>
@@ -261,8 +261,8 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.common_restart_policy()}</div>
- <div class="text-foreground text-sm font-medium capitalize">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_restart_policy()}</div>
+ <div class="text-sm font-medium text-foreground capitalize">
{restartPolicy}
</div>
</Card.Content>
@@ -270,27 +270,27 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.auto_update_title()}</div>
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.auto_update_title()}</div>
<div class="flex items-center gap-3">
<Switch
checked={autoUpdateEnabled}
disabled={autoUpdateToggling || autoUpdateLabelControlled}
onCheckedChange={handleAutoUpdateToggle}
/>
- <span class="text-foreground text-sm font-medium">
+ <span class="text-sm font-medium text-foreground">
{autoUpdateEnabled ? m.common_enabled() : m.common_disabled()}
</span>
</div>
{#if autoUpdateLabelControlled}
- <span class="text-muted-foreground text-xs">{m.auto_update_controlled_by_label()}</span>
+ <span class="text-xs text-muted-foreground">{m.auto_update_controlled_by_label()}</span>
{/if}
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.common_ports()}</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_ports()}</div>
+ <div class="text-sm font-medium text-foreground">
{#if uniquePorts.total === 0}
{m.containers_no_ports()}
{:else if uniquePorts.published > 0 && uniquePorts.exposed > 0}
@@ -302,7 +302,7 @@
{/if}
</div>
{#if onViewPortMappings && uniquePorts.total > 0}
- <button type="button" class="text-primary w-fit text-xs font-medium hover:underline" onclick={onViewPortMappings}>
+ <button type="button" class="w-fit text-xs font-medium text-primary hover:underline" onclick={onViewPortMappings}>
{m.common_view_details()} → {m.containers_nav_networks()}
</button>
{/if}
@@ -311,8 +311,8 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.resource_volumes_cap()}</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.resource_volumes_cap()}</div>
+ <div class="text-sm font-medium text-foreground">
{mountCount}
{mountCount === 1 ? m.common_mount() : m.common_mounts()}
</div>
@@ -321,8 +321,8 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.resource_networks_cap()}</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.resource_networks_cap()}</div>
+ <div class="text-sm font-medium text-foreground">
{networkCount}
{networkCount === 1 ? m.resource_network() : m.resource_networks()}
</div>
@@ -331,9 +331,9 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.common_image_id()}</div>
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_image_id()}</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{container.imageId}
@@ -344,11 +344,11 @@
{#if container.config?.workingDir}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_working_directory()}
</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{container.config.workingDir}
@@ -360,9 +360,9 @@
{#if container.config?.user}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.resource_user_cap()}</div>
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.resource_user_cap()}</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium select-all"
+ class="cursor-pointer font-mono text-sm font-medium text-foreground select-all"
title={m.common_click_to_select()}
>
{container.config.user}
@@ -374,9 +374,9 @@
{#if container.config?.entrypoint && container.config.entrypoint.length > 0}
<Card.Root variant="subtle" class="sm:col-span-2">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.common_entrypoint()}</div>
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_entrypoint()}</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{container.config.entrypoint.join(' ')}
@@ -388,11 +388,11 @@
{#if container.config?.cmd && container.config.cmd.length > 0}
<Card.Root variant="subtle" class="sm:col-span-2 lg:col-span-3 xl:col-span-4">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_command()}
</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{container.config.cmd.join(' ')}
diff --git a/frontend/src/routes/(app)/containers/components/ContainerStats.svelte b/frontend/src/routes/(app)/containers/components/ContainerStats.svelte
index 46c867162..9f1d15b0d 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerStats.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerStats.svelte
@@ -202,9 +202,9 @@
<div class="lg:col-span-2">
<div class="space-y-3">
<div class="flex min-h-[44px] items-start justify-between">
- <span class="text-foreground text-base font-semibold">{m.dashboard_meter_cpu()}</span>
+ <span class="text-base font-semibold text-foreground">{m.dashboard_meter_cpu()}</span>
<div class="text-right">
- <div class="text-muted-foreground text-sm font-semibold">
+ <div class="text-sm font-semibold text-muted-foreground">
{cpuUsagePercent.toFixed(2)}%
</div>
</div>
@@ -215,7 +215,7 @@
class="h-3 {cpuUsagePercent > 80 ? '[&>div]:bg-destructive' : cpuUsagePercent > 60 ? '[&>div]:bg-warning' : ''}"
/>
{#if stats.cpu_stats}
- <div class="text-muted-foreground mt-2 flex items-center justify-between text-xs">
+ <div class="mt-2 flex items-center justify-between text-xs text-muted-foreground">
{#if cpuLimit > 0}
<span
>{m.containers_stats_cpu_limit()}: {cpuLimit}
@@ -236,12 +236,12 @@
<div class="lg:col-span-2">
<div class="space-y-3">
<div class="flex min-h-[44px] items-start justify-between">
- <span class="text-foreground text-base font-semibold">{m.dashboard_meter_memory()}</span>
+ <span class="text-base font-semibold text-foreground">{m.dashboard_meter_memory()}</span>
<div class="text-right">
- <div class="text-muted-foreground text-sm font-semibold">
+ <div class="text-sm font-semibold text-muted-foreground">
{memoryUsagePercent.toFixed(1)}%
</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{memoryUsageFormatted} / {memoryLimitFormatted}
</div>
</div>
@@ -255,7 +255,7 @@
? '[&>div]:bg-warning'
: ''}"
/>
- <div class="text-muted-foreground mt-2 grid grid-cols-3 gap-2 text-xs">
+ <div class="mt-2 grid grid-cols-3 gap-2 text-xs text-muted-foreground">
<div>
<div class="font-medium">{m.containers_stats_cache()}</div>
<div>{bytes.format(memoryCacheBytes)}</div>
@@ -278,12 +278,12 @@
{#if stats.pids_stats && stats.pids_stats.current !== undefined}
<Card.Root variant="subtle" class="flex flex-col justify-center">
<Card.Content class="flex flex-col justify-center p-4">
- <div class="text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.containers_process_count()}
</div>
- <div class="text-foreground text-2xl font-semibold">{stats.pids_stats.current}</div>
+ <div class="text-2xl font-semibold text-foreground">{stats.pids_stats.current}</div>
{#if stats.pids_stats.limit && stats.pids_stats.limit < Number.MAX_SAFE_INTEGER}
- <div class="text-muted-foreground mt-1 text-xs">
+ <div class="mt-1 text-xs text-muted-foreground">
{m.common_limit()}: {stats.pids_stats.limit}
</div>
{/if}
@@ -294,30 +294,30 @@
<!-- Network I/O Summary -->
<Card.Root variant="subtle" class="flex flex-col">
<Card.Content class="flex flex-col p-4">
- <div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-3 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.containers_network_io()}
</div>
<div class="grid flex-1 grid-cols-2 gap-3">
<div>
- <div class="text-muted-foreground text-xs font-medium">
+ <div class="text-xs font-medium text-muted-foreground">
{m.containers_network_received()}
</div>
- <div class="text-foreground text-sm font-semibold">
+ <div class="text-sm font-semibold text-foreground">
{bytes.format(totalNetworkRx)}
</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{totalNetworkRxPackets}
{m.containers_stats_packets()}
</div>
</div>
<div>
- <div class="text-muted-foreground text-xs font-medium">
+ <div class="text-xs font-medium text-muted-foreground">
{m.containers_network_transmitted()}
</div>
- <div class="text-foreground text-sm font-semibold">
+ <div class="text-sm font-semibold text-foreground">
{bytes.format(totalNetworkTx)}
</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{totalNetworkTxPackets}
{m.containers_stats_packets()}
</div>
@@ -330,23 +330,23 @@
{#if stats.blkio_stats && stats.blkio_stats.io_service_bytes_recursive && stats.blkio_stats.io_service_bytes_recursive.length > 0}
<Card.Root variant="subtle" class="flex flex-col">
<Card.Content class="flex flex-col p-4">
- <div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-3 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.containers_block_io()}
</div>
<div class="grid flex-1 grid-cols-2 gap-3">
<div>
- <div class="text-muted-foreground text-xs font-medium">
+ <div class="text-xs font-medium text-muted-foreground">
{m.containers_block_io_read()}
</div>
- <div class="text-foreground text-sm font-semibold">
+ <div class="text-sm font-semibold text-foreground">
{bytes.format(blockIoRead)}
</div>
</div>
<div>
- <div class="text-muted-foreground text-xs font-medium">
+ <div class="text-xs font-medium text-muted-foreground">
{m.containers_block_io_write()}
</div>
- <div class="text-foreground text-sm font-semibold">
+ <div class="text-sm font-semibold text-foreground">
{bytes.format(blockIoWrite)}
</div>
</div>
@@ -361,27 +361,27 @@
<div class="mt-4">
<Card.Root variant="subtle">
<Card.Content class="p-4">
- <div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-3 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.containers_stats_network_interfaces()}
</div>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
{#each networkInterfaces as [interfaceName, interfaceStats]}
<Card.Root variant="outlined" class="flex flex-col">
<Card.Content class="flex flex-col p-3">
- <div class="text-foreground mb-2 text-sm font-semibold">
+ <div class="mb-2 text-sm font-semibold text-foreground">
{interfaceName}
</div>
<div class="flex-1 space-y-1 text-xs">
<div class="flex justify-between">
<span class="text-muted-foreground">RX:</span>
- <span class="text-foreground font-medium">{bytes.format(interfaceStats.rx_bytes)}</span>
+ <span class="font-medium text-foreground">{bytes.format(interfaceStats.rx_bytes)}</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">TX:</span>
- <span class="text-foreground font-medium">{bytes.format(interfaceStats.tx_bytes)}</span>
+ <span class="font-medium text-foreground">{bytes.format(interfaceStats.tx_bytes)}</span>
</div>
{#if interfaceStats.rx_errors > 0 || interfaceStats.tx_errors > 0}
- <div class="text-destructive mt-1 text-xs">
+ <div class="mt-1 text-xs text-destructive">
{m.containers_stats_errors()}: {interfaceStats.rx_errors + interfaceStats.tx_errors}
</div>
{/if}
@@ -405,44 +405,44 @@
{#if stats.memory_stats?.stats}
<Card.Root variant="subtle" class="flex flex-col">
<Card.Content class="flex flex-col p-4">
- <div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-3 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.containers_stats_memory_details()}
</div>
<div class="grid flex-1 grid-cols-2 gap-x-4 gap-y-2 text-xs">
<div class="flex justify-between">
<span class="text-muted-foreground">{m.common_usage()}:</span>
- <span class="text-foreground font-medium">{memoryUsageFormatted}</span>
+ <span class="font-medium text-foreground">{memoryUsageFormatted}</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.common_limit()}:</span>
- <span class="text-foreground font-medium">{memoryLimitFormatted}</span>
+ <span class="font-medium text-foreground">{memoryLimitFormatted}</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_cache()}:</span>
- <span class="text-foreground font-medium">{bytes.format(memoryCacheBytes)}</span>
+ <span class="font-medium text-foreground">{bytes.format(memoryCacheBytes)}</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_memory_rss()}:</span>
- <span class="text-foreground font-medium">{bytes.format(stats.memory_stats.stats.anon || 0)}</span>
+ <span class="font-medium text-foreground">{bytes.format(stats.memory_stats.stats.anon || 0)}</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_memory_active_file()}:</span>
- <span class="text-foreground font-medium">{bytes.format(stats.memory_stats.stats.active_file || 0)}</span>
+ <span class="font-medium text-foreground">{bytes.format(stats.memory_stats.stats.active_file || 0)}</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_memory_inactive_file()}:</span>
- <span class="text-foreground font-medium">{bytes.format(stats.memory_stats.stats.inactive_file || 0)}</span>
+ <span class="font-medium text-foreground">{bytes.format(stats.memory_stats.stats.inactive_file || 0)}</span>
</div>
{#if stats.memory_stats.stats.pgfault}
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_memory_page_faults()}:</span>
- <span class="text-foreground font-medium">{stats.memory_stats.stats.pgfault.toLocaleString()}</span>
+ <span class="font-medium text-foreground">{stats.memory_stats.stats.pgfault.toLocaleString()}</span>
</div>
{/if}
{#if stats.memory_stats.stats.pgmajfault}
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_memory_major_faults()}:</span>
- <span class="text-foreground font-medium">{stats.memory_stats.stats.pgmajfault.toLocaleString()}</span>
+ <span class="font-medium text-foreground">{stats.memory_stats.stats.pgmajfault.toLocaleString()}</span>
</div>
{/if}
</div>
@@ -454,38 +454,38 @@
{#if stats.cpu_stats}
<Card.Root variant="subtle" class="flex flex-col">
<Card.Content class="flex flex-col p-4">
- <div class="text-muted-foreground mb-3 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-3 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.containers_stats_cpu_details()}
</div>
<div class="grid flex-1 grid-cols-2 gap-x-4 gap-y-2 text-xs">
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_online_cpus()}:</span>
- <span class="text-foreground font-medium">{stats.cpu_stats.online_cpus}</span>
+ <span class="font-medium text-foreground">{stats.cpu_stats.online_cpus}</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.common_usage()}:</span>
- <span class="text-foreground font-medium">{cpuUsagePercent.toFixed(2)}%</span>
+ <span class="font-medium text-foreground">{cpuUsagePercent.toFixed(2)}%</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_cpu_user_mode()}:</span>
- <span class="text-foreground font-medium"
+ <span class="font-medium text-foreground"
>{(stats.cpu_stats.cpu_usage.usage_in_usermode / 1000000000).toFixed(2)}s</span
>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_cpu_kernel_mode()}:</span>
- <span class="text-foreground font-medium"
+ <span class="font-medium text-foreground"
>{(stats.cpu_stats.cpu_usage.usage_in_kernelmode / 1000000000).toFixed(2)}s</span
>
</div>
{#if stats.cpu_stats.throttling_data}
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_cpu_throttled_periods()}:</span>
- <span class="text-foreground font-medium">{stats.cpu_stats.throttling_data.throttled_periods}</span>
+ <span class="font-medium text-foreground">{stats.cpu_stats.throttling_data.throttled_periods}</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.containers_stats_cpu_throttled_time()}:</span>
- <span class="text-foreground font-medium"
+ <span class="font-medium text-foreground"
>{(stats.cpu_stats.throttling_data.throttled_time / 1000000000).toFixed(2)}s</span
>
</div>
@@ -496,11 +496,11 @@
{/if}
</div>
{:else if !container.state?.running}
- <div class="text-muted-foreground rounded-lg border border-dashed py-12 text-center">
+ <div class="rounded-lg border border-dashed py-12 text-center text-muted-foreground">
<div class="text-sm">{m.containers_stats_unavailable()}</div>
</div>
{:else}
- <div class="text-muted-foreground rounded-lg border border-dashed py-12 text-center">
+ <div class="rounded-lg border border-dashed py-12 text-center text-muted-foreground">
<div class="text-sm">{m.containers_stats_loading()}</div>
</div>
{/if}
diff --git a/frontend/src/routes/(app)/containers/components/ContainerStorage.svelte b/frontend/src/routes/(app)/containers/components/ContainerStorage.svelte
index 46f3b3d6b..011693ec7 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerStorage.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerStorage.svelte
@@ -30,7 +30,7 @@
{#each container.mounts as mount (mount.destination)}
<Card.Root variant="subtle">
<Card.Content class="p-4">
- <div class="border-border mb-4 flex items-center justify-between border-b pb-4">
+ <div class="mb-4 flex items-center justify-between border-b border-border pb-4">
<div class="flex items-center gap-3">
<div
class="rounded-lg p-2 {mount.type === 'volume'
@@ -48,14 +48,14 @@
{/if}
</div>
<div class="min-w-0 flex-1">
- <div class="text-foreground text-base font-semibold break-all">
+ <div class="text-base font-semibold break-all text-foreground">
{mount.type === 'tmpfs'
? m.containers_mount_type_tmpfs()
: mount.type === 'volume'
? mount.name || m.containers_mount_type_volume()
: m.containers_mount_type_bind()}
</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{mount.type} mount
</div>
</div>
@@ -68,11 +68,11 @@
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
<Card.Root variant="outlined" class="sm:col-span-2">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_mount_label_container()}
</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{mount.destination}
@@ -82,7 +82,7 @@
<Card.Root variant="outlined" class="sm:col-span-2">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">
{mount.type === 'volume'
? m.containers_mount_label_volume()
: mount.type === 'bind'
@@ -90,7 +90,7 @@
: m.containers_mount_label_source()}
</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{mount.source}
@@ -101,8 +101,8 @@
{#if mount.type === 'volume' && mount.driver}
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.container_driver()}</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">{m.container_driver()}</div>
+ <div class="text-sm font-medium text-foreground">
{mount.driver}
</div>
</Card.Content>
@@ -112,8 +112,8 @@
{#if mount.propagation}
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.container_propagation()}</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">{m.container_propagation()}</div>
+ <div class="text-sm font-medium text-foreground">
<!-- fallow-ignore-next-line code-duplication container vs swarm-service storage; typed Mount vs ServiceMount props diverge across the boundary -->
{mount.propagation}
</div>
@@ -127,10 +127,10 @@
</div>
{:else}
<div class="rounded-lg border border-dashed py-12 text-center">
- <div class="bg-muted/30 mx-auto mb-4 flex size-16 items-center justify-center rounded-full">
- <VolumesIcon class="text-muted-foreground size-6" />
+ <div class="mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-muted/30">
+ <VolumesIcon class="size-6 text-muted-foreground" />
</div>
- <div class="text-muted-foreground text-sm">{m.containers_no_mounts_configured()}</div>
+ <div class="text-sm text-muted-foreground">{m.containers_no_mounts_configured()}</div>
</div>
{/if}
</Card.Content>
diff --git a/frontend/src/routes/(app)/containers/components/container-commit-dialog.svelte b/frontend/src/routes/(app)/containers/components/container-commit-dialog.svelte
index ddb95865f..236462be9 100644
--- a/frontend/src/routes/(app)/containers/components/container-commit-dialog.svelte
+++ b/frontend/src/routes/(app)/containers/components/container-commit-dialog.svelte
@@ -98,7 +98,7 @@
/>
<FormInput label={m.common_author()} placeholder={m.containers_commit_author_placeholder()} bind:input={$inputs.author} />
<label class="flex items-center gap-2 text-sm">
- <input type="checkbox" bind:checked={$inputs.noPause.value} class="accent-primary size-4" />
+ <input type="checkbox" bind:checked={$inputs.noPause.value} class="size-4 accent-primary" />
<span>{m.containers_commit_no_pause()}</span>
</label>
</form>
diff --git a/frontend/src/routes/(app)/containers/components/container-stats-cell.svelte b/frontend/src/routes/(app)/containers/components/container-stats-cell.svelte
index a57c17641..b035e4d49 100644
--- a/frontend/src/routes/(app)/containers/components/container-stats-cell.svelte
+++ b/frontend/src/routes/(app)/containers/components/container-stats-cell.svelte
@@ -82,26 +82,26 @@
{/snippet}
{#if stopped}
- <div class="text-muted-foreground text-xs">{m.common_na()}</div>
+ <div class="text-xs text-muted-foreground">{m.common_na()}</div>
{:else if loading}
<div class="flex items-center gap-2">
- <div class="bg-muted size-[26px] shrink-0 animate-pulse rounded-full"></div>
- <div class="bg-muted h-3 w-16 animate-pulse rounded"></div>
+ <div class="size-[26px] shrink-0 animate-pulse rounded-full bg-muted"></div>
+ <div class="h-3 w-16 animate-pulse rounded bg-muted"></div>
</div>
{:else if type === 'memory' && memoryFormatted}
<div class="flex items-center gap-2">
{@render ring()}
- <span class="text-foreground text-xs font-medium tabular-nums">
+ <span class="text-xs font-medium text-foreground tabular-nums">
{memoryFormatted}
</span>
</div>
{:else if type === 'cpu' && value !== undefined}
<div class="flex items-center gap-2">
{@render ring()}
- <span class="text-foreground text-xs font-medium tabular-nums">
+ <span class="text-xs font-medium text-foreground tabular-nums">
{value.toFixed(1)}%
</span>
</div>
{:else}
- <div class="text-muted-foreground text-xs">—</div>
+ <div class="text-xs text-muted-foreground">—</div>
{/if}
diff --git a/frontend/src/routes/(app)/containers/container-table.helpers.ts b/frontend/src/routes/(app)/containers/container-table.helpers.ts
index fe1c82e80..f9dd068da 100644
--- a/frontend/src/routes/(app)/containers/container-table.helpers.ts
+++ b/frontend/src/routes/(app)/containers/container-table.helpers.ts
@@ -2,7 +2,16 @@ import { m } from '$lib/paraglide/messages';
import type { ContainerSummaryDto } from '$lib/types/docker';
export type ActionStatus =
- 'starting' | 'stopping' | 'restarting' | 'pausing' | 'unpausing' | 'killing' | 'updating' | 'removing' | 'redeploying' | '';
+ | 'starting'
+ | 'stopping'
+ | 'restarting'
+ | 'pausing'
+ | 'unpausing'
+ | 'killing'
+ | 'updating'
+ | 'removing'
+ | 'redeploying'
+ | '';
export type StateBadgeVariant = 'green' | 'red' | 'amber';
export function parseImageRef(imageRef: string): { repo: string; tag: string } {
diff --git a/frontend/src/routes/(app)/containers/container-table.svelte b/frontend/src/routes/(app)/containers/container-table.svelte
index 7ce41f913..ecb462f3c 100644
--- a/frontend/src/routes/(app)/containers/container-table.svelte
+++ b/frontend/src/routes/(app)/containers/container-table.svelte
@@ -415,7 +415,7 @@
{#if status}
<div class="flex items-center gap-1.5">
<Spinner class="size-3.5" />
- <span class="text-muted-foreground text-xs font-medium">
+ <span class="text-xs font-medium text-muted-foreground">
{getActionStatusMessage(status)}
</span>
</div>
@@ -594,7 +594,7 @@
<NetworksIcon class="size-3.5 text-sky-500" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">
+ <div class="text-[10px] font-medium tracking-wide text-muted-foreground uppercase">
{m.common_ports()}
</div>
<div class="mt-1">
@@ -606,7 +606,7 @@
{#if mobileFieldVisibility['updates'] ?? true}
<div class="flex min-w-0 flex-1 items-start gap-2.5">
<div class="flex min-w-0 flex-col">
- <div class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">
+ <div class="text-[10px] font-medium tracking-wide text-muted-foreground uppercase">
{m.images_updates()}
</div>
<div class="mt-1">
diff --git a/frontend/src/routes/(app)/customize/git-repositories/repository-table.svelte b/frontend/src/routes/(app)/customize/git-repositories/repository-table.svelte
index 9498ffb5c..a8a4506d7 100644
--- a/frontend/src/routes/(app)/customize/git-repositories/repository-table.svelte
+++ b/frontend/src/routes/(app)/customize/git-repositories/repository-table.svelte
@@ -178,13 +178,13 @@
{#snippet NameCell({ value }: { value: unknown })}
<div class="flex items-center gap-2">
- <GitBranchIcon class="text-muted-foreground size-4" />
+ <GitBranchIcon class="size-4 text-muted-foreground" />
<span class="font-medium">{value}</span>
</div>
{/snippet}
{#snippet UrlCell({ value }: { value: unknown })}
- <code class="bg-muted text-muted-foreground rounded px-2 py-1 text-xs">{value}</code>
+ <code class="rounded bg-muted px-2 py-1 text-xs text-muted-foreground">{value}</code>
{/snippet}
{#snippet AuthTypeCell({ value }: { value: unknown })}
diff --git a/frontend/src/routes/(app)/customize/registries/+page.svelte b/frontend/src/routes/(app)/customize/registries/+page.svelte
index 60a7ba6ed..04c7e76a2 100644
--- a/frontend/src/routes/(app)/customize/registries/+page.svelte
+++ b/frontend/src/routes/(app)/customize/registries/+page.svelte
@@ -152,25 +152,25 @@
<div class="space-y-2 text-sm">
<div class="flex justify-between">
<span class="text-muted-foreground">{m.registry_docker_hub()}</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">{m.registry_docker_hub_url()}</code>
+ <code class="rounded bg-muted px-2 py-1 text-xs">{m.registry_docker_hub_url()}</code>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.registry_github_container_registry()}</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">{m.registry_github_url()}</code>
+ <code class="rounded bg-muted px-2 py-1 text-xs">{m.registry_github_url()}</code>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.registry_google_container_registry()}</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">{m.registry_google_url()}</code>
+ <code class="rounded bg-muted px-2 py-1 text-xs">{m.registry_google_url()}</code>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">{m.registry_quay_io()}</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">{m.registry_quay_url()}</code>
+ <code class="rounded bg-muted px-2 py-1 text-xs">{m.registry_quay_url()}</code>
</div>
</div>
</div>
<div class="space-y-3">
<h4 class="text-sm font-medium">{m.registries_auth_notes_title()}</h4>
- <div class="text-muted-foreground space-y-1 text-sm">
+ <div class="space-y-1 text-sm text-muted-foreground">
<p>• {m.registries_auth_notes_bullet_docker_hub()}</p>
<p>• {m.registries_auth_notes_bullet_github()}</p>
<p>• {m.registries_auth_notes_bullet_anonymous()}</p>
diff --git a/frontend/src/routes/(app)/customize/registries/registry-table.svelte b/frontend/src/routes/(app)/customize/registries/registry-table.svelte
index 6377689aa..ec38675a2 100644
--- a/frontend/src/routes/(app)/customize/registries/registry-table.svelte
+++ b/frontend/src/routes/(app)/customize/registries/registry-table.svelte
@@ -222,7 +222,7 @@
{#snippet UrlCell({ item }: { item: ContainerRegistry })}
<div class="flex flex-col">
<span class="font-medium">{item.url || 'docker.io'}</span>
- <span class="text-muted-foreground text-xs">{getRegistryDisplayName(item)}</span>
+ <span class="text-xs text-muted-foreground">{getRegistryDisplayName(item)}</span>
</div>
{/snippet}
@@ -235,7 +235,7 @@
{/snippet}
{#snippet DescriptionCell({ value }: { value: unknown })}
- <span class="text-muted-foreground text-sm">{String(value ?? m.common_no_description())}</span>
+ <span class="text-sm text-muted-foreground">{String(value ?? m.common_no_description())}</span>
{/snippet}
{#snippet PullUsageCell({ item }: { item: ContainerRegistry })}
diff --git a/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte b/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
index f7b1b01a9..839fde476 100644
--- a/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
+++ b/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
@@ -257,7 +257,7 @@
<div class="min-w-0 flex-1">
<h1 class="text-xl font-semibold break-words sm:text-2xl">{template.name}</h1>
{#if template.description}
- <p class="text-muted-foreground mt-1.5 text-sm break-words sm:text-base">{template.description}</p>
+ <p class="mt-1.5 text-sm break-words text-muted-foreground sm:text-base">{template.description}</p>
{/if}
</div>
</div>
@@ -330,7 +330,7 @@
<ContainersIcon class="size-6 text-blue-500" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.compose_services()}</div>
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.compose_services()}</div>
<div class="mt-1">
<div class="text-2xl font-semibold">{services?.length ?? 0}</div>
</div>
@@ -344,13 +344,13 @@
<VariableIcon class="size-6 text-purple-500" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_environment_variables()}
</div>
<div class="mt-1 flex flex-wrap items-baseline gap-2">
<div class="text-2xl font-semibold">{envVars?.length ?? 0}</div>
{#if envVars?.length}
- <div class="text-muted-foreground text-sm">{m.templates_configurable_settings()}</div>
+ <div class="text-sm text-muted-foreground">{m.templates_configurable_settings()}</div>
{/if}
</div>
</div>
@@ -416,13 +416,13 @@
{#each envVars as envVar (envVar.key)}
<Card.Root variant="subtle" class="min-w-0">
<Card.Content class="flex min-w-0 flex-col gap-2 p-3">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide break-words uppercase select-all">
+ <div class="text-xs font-semibold tracking-wide break-words text-muted-foreground uppercase select-all">
{envVar.key}
</div>
{#if envVar.value}
- <div class="text-foreground min-w-0 font-mono text-sm break-words select-all">{envVar.value}</div>
+ <div class="min-w-0 font-mono text-sm break-words text-foreground select-all">{envVar.value}</div>
{:else}
- <div class="text-muted-foreground text-xs italic">{m.common_no_default_value()}</div>
+ <div class="text-xs text-muted-foreground italic">{m.common_no_default_value()}</div>
{/if}
</Card.Content>
</Card.Root>
diff --git a/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte b/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte
index 5f3cbcb17..10c2ab313 100644
--- a/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte
+++ b/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte
@@ -31,7 +31,7 @@
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div>
<h3 class="text-lg font-semibold">{m.templates_registries_section_title()}</h3>
- <p class="text-muted-foreground text-sm">{m.templates_registries_section_description()}</p>
+ <p class="text-sm text-muted-foreground">{m.templates_registries_section_description()}</p>
</div>
<ArcaneButton
action="create"
@@ -72,14 +72,14 @@
{registry.enabled ? m.common_enabled() : m.common_disabled()}
</Badge>
</div>
- <p class="text-muted-foreground text-sm break-all">{registry.url}</p>
+ <p class="text-sm break-all text-muted-foreground">{registry.url}</p>
{#if registry.description}
- <p class="text-muted-foreground mt-1 text-sm">{registry.description}</p>
+ <p class="mt-1 text-sm text-muted-foreground">{registry.description}</p>
{/if}
{#if registry.lastFetchError}
- <div class="border-destructive/30 bg-destructive/10 mt-2 flex items-start gap-1.5 rounded-md border px-2 py-1.5">
- <AlertTriangleIcon class="text-destructive mt-0.5 size-3.5 shrink-0" />
- <p class="text-destructive text-xs break-all">{registry.lastFetchError}</p>
+ <div class="mt-2 flex items-start gap-1.5 rounded-md border border-destructive/30 bg-destructive/10 px-2 py-1.5">
+ <AlertTriangleIcon class="mt-0.5 size-3.5 shrink-0 text-destructive" />
+ <p class="text-xs break-all text-destructive">{registry.lastFetchError}</p>
</div>
{/if}
</div>
diff --git a/frontend/src/routes/(app)/customize/templates/create/+page.svelte b/frontend/src/routes/(app)/customize/templates/create/+page.svelte
index 3a6317b46..2e0ea6837 100644
--- a/frontend/src/routes/(app)/customize/templates/create/+page.svelte
+++ b/frontend/src/routes/(app)/customize/templates/create/+page.svelte
@@ -75,9 +75,9 @@
}
</script>
-<div class="bg-background flex h-full min-h-0 flex-col">
+<div class="flex h-full min-h-0 flex-col bg-background">
<div
- class="bg-background/95 supports-[backdrop-filter]:bg-background/80 sticky top-0 z-[var(--arcane-z-sticky)] mb-2 border-b backdrop-blur"
+ class="sticky top-0 z-[var(--arcane-z-sticky)] mb-2 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80"
>
<div class="mx-auto flex h-16 max-w-full items-center justify-between gap-4 px-6">
<div class="flex min-w-0 items-center gap-4">
@@ -90,7 +90,7 @@
customLabel={m.common_back()}
onclick={() => goto('/customize/templates')}
/>
- <div class="bg-border hidden h-4 w-px sm:block"></div>
+ <div class="hidden h-4 w-px bg-border sm:block"></div>
<div class="hidden min-w-0 items-center gap-3 sm:flex">
<EditableName
bind:value={$inputs.name.value}
diff --git a/frontend/src/routes/(app)/customize/templates/default/+page.svelte b/frontend/src/routes/(app)/customize/templates/default/+page.svelte
index ee87f99aa..9caaac4d4 100644
--- a/frontend/src/routes/(app)/customize/templates/default/+page.svelte
+++ b/frontend/src/routes/(app)/customize/templates/default/+page.svelte
@@ -109,7 +109,7 @@
<div class="flex flex-col justify-between gap-4 sm:flex-row sm:items-center">
<div>
<h1 class="text-xl font-semibold wrap-break-word sm:text-2xl">{m.templates_defaults_title()}</h1>
- <p class="text-muted-foreground mt-1.5 text-sm wrap-break-word sm:text-base">
+ <p class="mt-1.5 text-sm wrap-break-word text-muted-foreground sm:text-base">
{m.templates_defaults_description()}
</p>
</div>
diff --git a/frontend/src/routes/(app)/customize/templates/template-table.svelte b/frontend/src/routes/(app)/customize/templates/template-table.svelte
index aa45352f7..91265ed5b 100644
--- a/frontend/src/routes/(app)/customize/templates/template-table.svelte
+++ b/frontend/src/routes/(app)/customize/templates/template-table.svelte
@@ -184,7 +184,7 @@
{/snippet}
{#snippet DescriptionCell({ item }: { item: Template })}
- <span class="text-muted-foreground line-clamp-2 text-sm">
+ <span class="line-clamp-2 text-sm text-muted-foreground">
{truncateString(item.description, 80)}
</span>
{/snippet}
@@ -253,7 +253,7 @@
<TagIcon class="size-3.5 text-purple-500" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-[10px] font-medium tracking-wide uppercase">
+ <div class="text-[10px] font-medium tracking-wide text-muted-foreground uppercase">
{m.common_tags()}
</div>
<div class="mt-1 flex flex-wrap gap-1">
diff --git a/frontend/src/routes/(app)/customize/variables/+page.svelte b/frontend/src/routes/(app)/customize/variables/+page.svelte
index fb16830ad..d25f89033 100644
--- a/frontend/src/routes/(app)/customize/variables/+page.svelte
+++ b/frontend/src/routes/(app)/customize/variables/+page.svelte
@@ -135,14 +135,14 @@
{#snippet mainContent()}
<fieldset class="relative">
<div class="space-y-4 sm:space-y-6">
- <Card.Root class="border-primary/20 bg-primary/5 overflow-hidden pt-0">
+ <Card.Root class="overflow-hidden border-primary/20 bg-primary/5 pt-0">
<Card.Content class="px-3 py-4 sm:px-6">
<div class="flex items-start gap-3">
- <div class="text-primary mt-0.5 shrink-0">
+ <div class="mt-0.5 shrink-0 text-primary">
<AlertIcon class="size-5" />
</div>
<div class="space-y-1 text-sm">
- <p class="text-foreground font-medium">{m.variables_about_title()}</p>
+ <p class="font-medium text-foreground">{m.variables_about_title()}</p>
<p class="text-muted-foreground">
{m.variables_about_description()}
</p>
@@ -152,10 +152,10 @@
</Card.Root>
<Card.Root class="overflow-hidden pt-0">
- <Card.Header class="bg-muted/20 sticky top-0 z-[var(--arcane-z-sticky)] border-b !py-3">
+ <Card.Header class="sticky top-0 z-[var(--arcane-z-sticky)] border-b bg-muted/20 !py-3">
<div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
<div class="flex items-center gap-3">
- <div class="bg-primary/10 text-primary ring-primary/20 flex size-8 items-center justify-center rounded-lg ring-1">
+ <div class="flex size-8 items-center justify-center rounded-lg bg-primary/10 text-primary ring-1 ring-primary/20">
<VariableIcon class="size-4" />
</div>
<div>
@@ -172,7 +172,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 top-1/2 left-3 size-4 -translate-y-1/2" />
+ <SearchIcon class="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" />
<Input type="text" placeholder={m.common_search()} bind:value={searchQuery} class="h-9 pl-10" />
</div>
{#if canUpdateVariables}
@@ -191,13 +191,13 @@
<Card.Content class="px-3 py-4 sm:px-6">
{#if filteredVars.length === 0 && searchQuery.trim()}
- <div class="text-muted-foreground flex flex-col items-center justify-center py-12 text-center">
+ <div class="flex flex-col items-center justify-center py-12 text-center text-muted-foreground">
<SearchIcon class="mb-3 size-12 opacity-20" />
<p class="text-sm font-medium">{m.variables_no_results_title()}</p>
<p class="text-xs">{m.variables_no_results_description()}</p>
</div>
{:else if filteredVars.length === 0}
- <div class="text-muted-foreground flex flex-col items-center justify-center py-12 text-center">
+ <div class="flex flex-col items-center justify-center py-12 text-center text-muted-foreground">
<VariableIcon class="mb-3 size-12 opacity-20" />
<p class="text-sm font-medium">{m.variables_no_variables_title()}</p>
<p class="text-xs">{m.variables_no_variables_description()}</p>
@@ -231,7 +231,7 @@
}}
/>
</InputGroup.Root>
- <span class="text-muted-foreground font-mono text-sm">=</span>
+ <span class="font-mono text-sm text-muted-foreground">=</span>
<InputGroup.Root class="flex-[2]">
<InputGroup.Input
type="text"
diff --git a/frontend/src/routes/(app)/dashboard/dash-action-card.svelte b/frontend/src/routes/(app)/dashboard/dash-action-card.svelte
index 156e1939c..da3c3b63f 100644
--- a/frontend/src/routes/(app)/dashboard/dash-action-card.svelte
+++ b/frontend/src/routes/(app)/dashboard/dash-action-card.svelte
@@ -40,14 +40,14 @@
<Card.Root variant="outlined">
<Card.Content class="space-y-2.5 p-4">
<div class="flex items-center justify-between gap-2">
- <div class="text-foreground/80 flex items-center gap-2 text-sm font-medium">
+ <div class="flex items-center gap-2 text-sm font-medium text-foreground/80">
<Icon class="size-4" />
{title}
</div>
<Badge variant={badgeVariant} size="sm">{badgeText}</Badge>
</div>
<p class="text-2xl leading-none font-semibold tracking-tight">{value}</p>
- <p class="text-muted-foreground/90 text-xs leading-relaxed">{description}</p>
+ <p class="text-xs leading-relaxed text-muted-foreground/90">{description}</p>
<ArcaneButton
action="base"
tone="ghost"
diff --git a/frontend/src/routes/(app)/dashboard/dash-container-table.svelte b/frontend/src/routes/(app)/dashboard/dash-container-table.svelte
index 807df3eae..3de94a8c6 100644
--- a/frontend/src/routes/(app)/dashboard/dash-container-table.svelte
+++ b/frontend/src/routes/(app)/dashboard/dash-container-table.svelte
@@ -125,7 +125,7 @@
</Card.Content>
{#if tableLimit.shouldShowFooter(containers.data.length)}
<Card.Footer class="border-t px-6 py-3">
- <span class="text-muted-foreground text-xs">
+ <span class="text-xs text-muted-foreground">
{m.containers_showing_of_total({ shown: tableLimit.displayLimit, total: containers.pagination.totalItems })}
</span>
</Card.Footer>
diff --git a/frontend/src/routes/(app)/dashboard/dash-image-table.svelte b/frontend/src/routes/(app)/dashboard/dash-image-table.svelte
index 669e687e6..612fa6c9e 100644
--- a/frontend/src/routes/(app)/dashboard/dash-image-table.svelte
+++ b/frontend/src/routes/(app)/dashboard/dash-image-table.svelte
@@ -128,7 +128,7 @@
</Card.Content>
{#if tableLimit.shouldShowFooter(images.data.length)}
<Card.Footer class="border-t px-6 py-3">
- <span class="text-muted-foreground text-xs">
+ <span class="text-xs text-muted-foreground">
{m.images_showing_of_total({ shown: tableLimit.displayLimit, total: images.pagination.totalItems })}
</span>
</Card.Footer>
diff --git a/frontend/src/routes/(app)/dashboard/dash-metric-tile.svelte b/frontend/src/routes/(app)/dashboard/dash-metric-tile.svelte
index 90a78f913..d95f7c158 100644
--- a/frontend/src/routes/(app)/dashboard/dash-metric-tile.svelte
+++ b/frontend/src/routes/(app)/dashboard/dash-metric-tile.svelte
@@ -30,29 +30,29 @@
<div class="min-w-0 px-2.5 py-2.5">
<div class="flex items-start justify-between gap-2">
- <p class="text-foreground/70 flex items-center gap-1 text-[10px] font-semibold tracking-wide uppercase">
+ <p class="flex items-center gap-1 text-[10px] font-semibold tracking-wide text-foreground/70 uppercase">
<Icon class="size-3.5" />
{title}
</p>
<p class="text-base font-semibold tracking-tight tabular-nums">{value}</p>
</div>
- <p class={cn('text-muted-foreground/90 mt-0.5 text-[11px]', labelClass)}>{label}</p>
+ <p class={cn('mt-0.5 text-[11px] text-muted-foreground/90', labelClass)}>{label}</p>
{#if meterValue !== null}
<div class="mt-2.5">
- <div class="bg-muted/45 relative h-1.5 overflow-hidden rounded-full">
+ <div class="relative h-1.5 overflow-hidden rounded-full bg-muted/45">
<div class="pointer-events-none absolute inset-0">
{#each [25, 50, 75] as tick (tick)}
- <span class="bg-foreground/15 absolute top-0 h-full w-px opacity-60" style={`left: ${tick}%`}></span>
+ <span class="absolute top-0 h-full w-px bg-foreground/15 opacity-60" style={`left: ${tick}%`}></span>
{/each}
</div>
<div
- class="from-primary/65 via-primary absolute inset-y-0 left-0 rounded-full bg-gradient-to-r to-violet-500/85 transition-[width] duration-700 ease-out motion-reduce:transition-none"
+ class="absolute inset-y-0 left-0 rounded-full bg-gradient-to-r from-primary/65 via-primary to-violet-500/85 transition-[width] duration-700 ease-out motion-reduce:transition-none"
style={meterWidth}
></div>
{#if meterPercent > 0}
<div
- class="bg-primary absolute top-1/2 size-2 -translate-y-1/2 rounded-full shadow-[0_0_0_2px_hsl(var(--background))] transition-[left] duration-700 ease-out motion-reduce:transition-none"
+ class="absolute top-1/2 size-2 -translate-y-1/2 rounded-full bg-primary shadow-[0_0_0_2px_hsl(var(--background))] transition-[left] duration-700 ease-out motion-reduce:transition-none"
style={meterDotStyle}
></div>
{/if}
diff --git a/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte b/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
index e07bb2aa0..b9dc8bd83 100644
--- a/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
+++ b/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
@@ -764,10 +764,10 @@
</script>
<div class="flex h-full min-h-0 flex-col gap-3 overflow-hidden pt-2 md:gap-4 md:pt-3">
- <header class="bg-card/60 backdrop-blur-md border-border/70 shrink-0 rounded-xl border p-3 shadow-xs sm:p-4">
+ <header class="shrink-0 rounded-xl border border-border/70 bg-card/60 p-3 shadow-xs backdrop-blur-md sm:p-4">
<div class="relative flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between">
<div class="space-y-1">
- <p class="text-muted-foreground text-[11px] font-semibold tracking-[0.14em] uppercase">{m.dashboard_title()}</p>
+ <p class="text-[11px] font-semibold tracking-[0.14em] text-muted-foreground uppercase">{m.dashboard_title()}</p>
<h1 class="text-xl font-semibold tracking-tight sm:text-2xl">{heroGreeting}</h1>
</div>
@@ -788,8 +788,8 @@
{#if boardSummaryLoading}
<div class="grid grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-4">
{#each [{ icon: EnvironmentsIcon, label: m.environments_title() }, { icon: ContainersIcon, label: m.containers_title() }, { icon: ImagesIcon, label: m.images_title() }, { icon: VolumesIcon, label: m.dashboard_all_storage_title() }] as tile (tile.label)}
- <div class="border-border/50 bg-background/50 rounded-xl border p-3">
- <div class="text-muted-foreground flex items-center gap-1.5 text-[11px] font-semibold tracking-wide uppercase">
+ <div class="rounded-xl border border-border/50 bg-background/50 p-3">
+ <div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
<tile.icon class="size-3.5" />
<span>{tile.label}</span>
</div>
@@ -801,40 +801,40 @@
{:else}
{@const summary = boardState.summary}
<div class="grid grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-4">
- <div class="border-border/50 bg-background/50 rounded-xl border p-3">
- <div class="text-muted-foreground flex items-center gap-1.5 text-[11px] font-semibold tracking-wide uppercase">
+ <div class="rounded-xl border border-border/50 bg-background/50 p-3">
+ <div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
<EnvironmentsIcon class="size-3.5" />
<span>{m.environments_title()}</span>
</div>
<div class="mt-2 text-2xl font-semibold tracking-tight tabular-nums">{summary.totalEnvironments}</div>
- <div class="text-muted-foreground mt-0.5 text-xs">{formatEnvironmentOverviewLabel(summary)}</div>
+ <div class="mt-0.5 text-xs text-muted-foreground">{formatEnvironmentOverviewLabel(summary)}</div>
</div>
- <div class="border-border/50 bg-background/50 rounded-xl border p-3">
- <div class="text-muted-foreground flex items-center gap-1.5 text-[11px] font-semibold tracking-wide uppercase">
+ <div class="rounded-xl border border-border/50 bg-background/50 p-3">
+ <div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
<ContainersIcon class="size-3.5" />
<span>{m.containers_title()}</span>
</div>
<div class="mt-2 text-2xl font-semibold tracking-tight tabular-nums">{summary.totalContainers}</div>
- <div class="text-muted-foreground mt-0.5 text-xs">{formatContainerOverviewLabel(summary)}</div>
+ <div class="mt-0.5 text-xs text-muted-foreground">{formatContainerOverviewLabel(summary)}</div>
</div>
- <div class="border-border/50 bg-background/50 rounded-xl border p-3">
- <div class="text-muted-foreground flex items-center gap-1.5 text-[11px] font-semibold tracking-wide uppercase">
+ <div class="rounded-xl border border-border/50 bg-background/50 p-3">
+ <div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
<ImagesIcon class="size-3.5" />
<span>{m.images_title()}</span>
</div>
<div class="mt-2 text-2xl font-semibold tracking-tight tabular-nums">{summary.totalImages}</div>
- <div class="text-muted-foreground mt-0.5 text-xs">{formatImageOverviewLabel(summary)}</div>
+ <div class="mt-0.5 text-xs text-muted-foreground">{formatImageOverviewLabel(summary)}</div>
</div>
- <div class="border-border/50 bg-background/50 rounded-xl border p-3">
- <div class="text-muted-foreground flex items-center gap-1.5 text-[11px] font-semibold tracking-wide uppercase">
+ <div class="rounded-xl border border-border/50 bg-background/50 p-3">
+ <div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
<VolumesIcon class="size-3.5" />
<span>{m.dashboard_all_storage_title()}</span>
</div>
<div class="mt-2 text-2xl font-semibold tracking-tight tabular-nums">{bytes.format(summary.totalImageSize)}</div>
- <div class="text-muted-foreground mt-0.5 text-xs">{formatStorageOverviewLabel(summary)}</div>
+ <div class="mt-0.5 text-xs text-muted-foreground">{formatStorageOverviewLabel(summary)}</div>
</div>
</div>
{/if}
@@ -846,8 +846,8 @@
</div>
{#if environmentCards.length === 0}
- <div class="border-border/60 rounded-xl border border-dashed px-4 py-8 text-center">
- <p class="text-muted-foreground text-sm">{m.dashboard_all_no_visible_environments()}</p>
+ <div class="rounded-xl border border-dashed border-border/60 px-4 py-8 text-center">
+ <p class="text-sm text-muted-foreground">{m.dashboard_all_no_visible_environments()}</p>
</div>
{:else}
<div class="min-h-0 flex-1 overflow-y-auto pb-2">
@@ -873,10 +873,10 @@
class={`dashboard-environment-card [container-type:inline-size] overflow-hidden border transition-colors ${isCurrent ? 'border-blue-500/40 bg-blue-500/5' : 'border-border/60'}`}
>
<Card.Content class="space-y-5 p-5">
- <div class="border-border/60 flex flex-col gap-3 border-b pb-4 sm:flex-row sm:items-start sm:justify-between">
+ <div class="flex flex-col gap-3 border-b border-border/60 pb-4 sm:flex-row sm:items-start sm:justify-between">
<div class="min-w-0 space-y-2">
<div class="flex min-w-0 flex-wrap items-center gap-2">
- <div class="min-w-0 max-w-full break-words text-base font-semibold tracking-tight">{environment.name}</div>
+ <div class="max-w-full min-w-0 text-base font-semibold tracking-tight break-words">{environment.name}</div>
{#if isCurrent}
<Badge variant="blue" size="sm">{m.common_current()}</Badge>
{/if}
@@ -895,7 +895,7 @@
{#if vInfo.updateAvailable || debugUpgrade}
<ArcaneTooltip.Root>
<ArcaneTooltip.Trigger
- class={cn(badgeVariants({ variant: 'gray', size: 'sm' }), 'hover:text-foreground font-mono')}
+ class={cn(badgeVariants({ variant: 'gray', size: 'sm' }), 'font-mono hover:text-foreground')}
>
v{vInfo.displayVersion || vInfo.currentTag || vInfo.currentVersion || 'unknown'}
<span class="relative ml-1.5 flex h-2 w-2">
@@ -944,7 +944,7 @@
{/if}
</div>
- <div class="text-muted-foreground/70 mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[11px]">
+ <div class="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[11px] text-muted-foreground/70">
<span class="font-mono">{environment.apiUrl}</span>
<span>•</span>
<span title={activity.title}>{activity.label}: {activity.value}</span>
@@ -983,8 +983,8 @@
{#if shouldLoadEnvironment(environment) || isEnvironmentOnline(environment)}
<div class="grid grid-cols-1 gap-3 sm:grid-cols-3">
- <div class="border-border/50 bg-background/50 rounded-lg border p-3">
- <div class="text-muted-foreground text-[11px] font-semibold tracking-wide uppercase">
+ <div class="rounded-lg border border-border/50 bg-background/50 p-3">
+ <div class="text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
{m.containers_title()}
</div>
{#if isEnvironmentSnapshotLoading(environment.id)}
@@ -997,15 +997,15 @@
<div class="mt-1 text-lg font-semibold">
{loadedItem.containers.runningContainers}/{loadedItem.containers.totalContainers}
</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{loadedItem.containers.stoppedContainers}
{m.common_stopped()}
</div>
{/if}
</div>
- <div class="border-border/50 bg-background/50 rounded-lg border p-3">
- <div class="text-muted-foreground text-[11px] font-semibold tracking-wide uppercase">
+ <div class="rounded-lg border border-border/50 bg-background/50 p-3">
+ <div class="text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
{m.images_title()}
</div>
{#if isEnvironmentSnapshotLoading(environment.id)}
@@ -1016,7 +1016,7 @@
{:else}
{@const loadedItem = boardState.overviewById.get(environment.id) ?? baseItem}
<div class="mt-1 text-lg font-semibold">{loadedItem.imageUsageCounts.totalImages}</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{loadedItem.imageUsageCounts.imagesInuse}
{m.common_in_use()} · {loadedItem.imageUsageCounts.imagesUnused}
{m.common_unused()}
@@ -1024,8 +1024,8 @@
{/if}
</div>
- <div class="border-border/50 bg-background/50 rounded-lg border p-3">
- <div class="text-muted-foreground text-[11px] font-semibold tracking-wide uppercase">
+ <div class="rounded-lg border border-border/50 bg-background/50 p-3">
+ <div class="text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
{m.dashboard_action_items_title()}
</div>
{#if isEnvironmentSnapshotLoading(environment.id)}
@@ -1036,14 +1036,14 @@
{:else}
{@const loadedItem = boardState.overviewById.get(environment.id) ?? baseItem}
<div class="mt-1 text-lg font-semibold">{loadedItem.actionItems.items.length}</div>
- <div class="text-muted-foreground text-xs">{getActionSummary(loadedItem)}</div>
+ <div class="text-xs text-muted-foreground">{getActionSummary(loadedItem)}</div>
{/if}
</div>
</div>
{:else}
- <div class="border-border/50 bg-background/50 rounded-lg border px-4 py-3 text-sm">
+ <div class="rounded-lg border border-border/50 bg-background/50 px-4 py-3 text-sm">
<p class="font-medium">{m.dashboard_all_environment_unavailable_title()}</p>
- <p class="text-muted-foreground mt-1">{m.dashboard_all_environment_unavailable_description()}</p>
+ <p class="mt-1 text-muted-foreground">{m.dashboard_all_environment_unavailable_description()}</p>
</div>
{/if}
diff --git a/frontend/src/routes/(app)/environments/[id]/+page.svelte b/frontend/src/routes/(app)/environments/[id]/+page.svelte
index 78b9e2764..ae26821ba 100644
--- a/frontend/src/routes/(app)/environments/[id]/+page.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/+page.svelte
@@ -526,11 +526,11 @@
<div class="flex flex-1 items-start gap-4">
<div class="min-w-0 flex-1">
<h1 class="text-xl font-semibold wrap-break-word sm:text-2xl">{environment.name}</h1>
- <p class="text-muted-foreground mt-1.5 text-sm wrap-break-word sm:text-base">{m.environments_page_subtitle()}</p>
+ <p class="mt-1.5 text-sm wrap-break-word text-muted-foreground sm:text-base">{m.environments_page_subtitle()}</p>
</div>
<!-- Enable/Disable indicator -->
- <div class="border-border/60 bg-card/40 flex shrink-0 items-center gap-2.5 rounded-lg border px-3 py-1.5">
+ <div class="flex shrink-0 items-center gap-2.5 rounded-lg border border-border/60 bg-card/40 px-3 py-1.5">
<div class="flex items-center gap-2">
<div
class={cn(
@@ -640,7 +640,7 @@
<div class="space-y-2">
<p class="text-sm font-medium">{m.environments_new_api_key()}</p>
<div class="flex items-center gap-2">
- <code class="bg-background/70 flex-1 rounded-md px-3 py-2 font-mono text-sm break-all">
+ <code class="flex-1 rounded-md bg-background/70 px-3 py-2 font-mono text-sm break-all">
{regeneratedApiKey}
</code>
<CopyButton text={regeneratedApiKey} size="icon" class="size-8 shrink-0" />
diff --git a/frontend/src/routes/(app)/environments/[id]/components/DockerTab.svelte b/frontend/src/routes/(app)/environments/[id]/components/DockerTab.svelte
index 7ea313e13..032403a0e 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/DockerTab.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/DockerTab.svelte
@@ -105,7 +105,7 @@
<div class="space-y-4 border-t pt-6">
<div class="space-y-0.5">
<h3 class="text-sm font-medium">{m.prune_options_title()}</h3>
- <p class="text-muted-foreground text-xs">{m.prune_options_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.prune_options_description()}</p>
</div>
<div class="grid gap-2 sm:grid-cols-2">
diff --git a/frontend/src/routes/(app)/environments/[id]/components/EnvironmentConnectionDetails.svelte b/frontend/src/routes/(app)/environments/[id]/components/EnvironmentConnectionDetails.svelte
index b3bb83dfd..3a3c3b4cb 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/EnvironmentConnectionDetails.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/EnvironmentConnectionDetails.svelte
@@ -86,7 +86,7 @@
{#snippet badgeTile(label: string, text: string, variant: BadgeVariant)}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-1.5 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{label}</div>
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{label}</div>
<div><Badge {variant} minWidth="20">{text}</Badge></div>
</Card.Content>
</Card.Root>
@@ -95,12 +95,12 @@
{#snippet tile(label: string, value: string, opts?: { mono?: boolean; subtext?: string })}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-1 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{label}</div>
- <div class={cn('text-foreground text-sm font-medium', opts?.mono && 'font-mono break-all select-all')}>
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{label}</div>
+ <div class={cn('text-sm font-medium text-foreground', opts?.mono && 'font-mono break-all select-all')}>
{value}
</div>
{#if opts?.subtext}
- <div class="text-muted-foreground text-xs">{opts.subtext}</div>
+ <div class="text-xs text-muted-foreground">{opts.subtext}</div>
{/if}
</Card.Content>
</Card.Root>
@@ -126,7 +126,7 @@
<div class="space-y-4 border-t pt-6">
<div class="space-y-1">
<h3 class="text-sm font-medium">{m.environments_agent_mtls_section_title()}</h3>
- <p class="text-muted-foreground text-xs">{m.environments_agent_mtls_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.environments_agent_mtls_description()}</p>
</div>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
diff --git a/frontend/src/routes/(app)/environments/[id]/components/EnvironmentStatusSummary.svelte b/frontend/src/routes/(app)/environments/[id]/components/EnvironmentStatusSummary.svelte
index 7f158cb0d..a26966904 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/EnvironmentStatusSummary.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/EnvironmentStatusSummary.svelte
@@ -102,13 +102,13 @@
let heartbeatRelative = $derived(formatRelative(environment.lastHeartbeat, nowTick));
</script>
-<div class="bg-muted/40 flex flex-wrap items-center gap-x-4 gap-y-2 rounded-lg px-4 py-3">
+<div class="flex flex-wrap items-center gap-x-4 gap-y-2 rounded-lg bg-muted/40 px-4 py-3">
<div class="flex items-center gap-2">
<span class={cn('size-2.5 rounded-full transition-colors', statusDotClass)}></span>
<span class="text-sm font-semibold">{statusBadge.text}</span>
</div>
<Badge variant={transportBadge.variant} minWidth="20">{transportBadge.text}</Badge>
- <div class="text-muted-foreground flex items-center gap-1.5 text-sm">
+ <div class="flex items-center gap-1.5 text-sm text-muted-foreground">
<TagIcon class="size-4 shrink-0" />
{#if environment.id === '0'}
<span class="font-mono">{localDisplayVersion}</span>
@@ -144,12 +144,12 @@
{/if}
</div>
{#if environment.isEdge && environment.lastHeartbeat}
- <div class="text-muted-foreground flex items-center gap-1.5 text-sm">
+ <div class="flex items-center gap-1.5 text-sm text-muted-foreground">
<HealthIcon class="size-4 shrink-0" />
<span>{heartbeatRelative}</span>
</div>
{/if}
- <div class="text-muted-foreground flex items-center gap-1.5 text-sm sm:ml-auto">
+ <div class="flex items-center gap-1.5 text-sm text-muted-foreground sm:ml-auto">
<HashIcon class="size-4 shrink-0" />
<span class="font-mono">{environment.id}</span>
</div>
diff --git a/frontend/src/routes/(app)/environments/[id]/components/GeneralTab.svelte b/frontend/src/routes/(app)/environments/[id]/components/GeneralTab.svelte
index 6e49f6a6e..38e2d90cb 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/GeneralTab.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/GeneralTab.svelte
@@ -38,7 +38,7 @@
placeholder={m.environments_name_placeholder()}
/>
{#if $formInputs.name.error}
- <p class="text-destructive mt-1 text-[0.8rem] font-medium">{$formInputs.name.error}</p>
+ <p class="mt-1 text-[0.8rem] font-medium text-destructive">{$formInputs.name.error}</p>
{/if}
</div>
@@ -83,7 +83,7 @@
class="shrink-0"
/>
</div>
- <p class="text-muted-foreground mt-1.5 text-xs">{m.environments_api_url_help()}</p>
+ <p class="mt-1.5 text-xs text-muted-foreground">{m.environments_api_url_help()}</p>
</div>
</div>
@@ -146,7 +146,7 @@
<div class="space-y-4 border-t pt-6">
<div class="space-y-0.5">
<h3 class="text-sm font-medium">{m.git_sync_file_limits_title()}</h3>
- <div class="text-muted-foreground text-xs">{m.git_sync_file_limits_description()}</div>
+ <div class="text-xs text-muted-foreground">{m.git_sync_file_limits_description()}</div>
</div>
<div class="grid gap-4 sm:grid-cols-3">
<TextInputWithLabel
diff --git a/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte b/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte
index adc7ce25a..d2d4ed72e 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte
@@ -225,7 +225,7 @@
: allItems}
{#if filteredItems.length === 0}
- <p class="text-muted-foreground py-4 text-center text-sm">
+ <p class="py-4 text-center text-sm text-muted-foreground">
{m.common_no_results_found()}
</p>
{:else}
@@ -250,7 +250,7 @@
{/each}
{/if}
{:catch error}
- <div class="text-destructive p-2 text-sm">
+ <div class="p-2 text-sm text-destructive">
{(error instanceof Error ? error.message : '') || 'Failed to load containers'}
</div>
{/await}
@@ -280,7 +280,7 @@
{@const categoryJobs = getJobsByCategory(category.id, jobsResponse.jobs)}
{#if categoryJobs.length > 0}
<div class="space-y-4">
- <h3 class="text-muted-foreground text-sm font-semibold tracking-tight uppercase">
+ <h3 class="text-sm font-semibold tracking-tight text-muted-foreground uppercase">
{category.label}
</h3>
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-2">
@@ -307,17 +307,17 @@
{/snippet}
{#if job.id === 'auto-update' && $formInputs.autoUpdate.value}
- <div class="border-border/20 space-y-3 border-t pt-3">
+ <div class="space-y-3 border-t border-border/20 pt-3">
<div class="space-y-1">
<Label class="text-sm font-medium">
{m.auto_update_excluded_containers()}
{#await containersPromise then containers}
- <span class="text-muted-foreground ml-1 font-normal">
+ <span class="ml-1 font-normal text-muted-foreground">
({containers.filter((c) => excludedContainers.has(getContainerName(c))).length})
</span>
{/await}
</Label>
- <p class="text-muted-foreground text-xs">{m.auto_update_exclude_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.auto_update_exclude_description()}</p>
</div>
<div class="space-y-2">
@@ -333,13 +333,13 @@
{/if}
{#if job.id === 'auto-heal' && $formInputs.autoHealEnabled.value}
- <div class="border-border/20 space-y-3 border-t pt-3">
+ <div class="space-y-3 border-t border-border/20 pt-3">
<div class="grid gap-3 sm:grid-cols-2">
<div class="space-y-1">
<Label for="auto-heal-max-restarts" class="text-sm font-medium"
>{m.auto_heal_max_restarts_label()}</Label
>
- <p class="text-muted-foreground text-xs">{m.auto_heal_max_restarts_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.auto_heal_max_restarts_description()}</p>
<Input
id="auto-heal-max-restarts"
type="number"
@@ -352,7 +352,7 @@
<Label for="auto-heal-restart-window" class="text-sm font-medium"
>{m.auto_heal_restart_window_label()}</Label
>
- <p class="text-muted-foreground text-xs">{m.auto_heal_restart_window_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.auto_heal_restart_window_description()}</p>
<Input
id="auto-heal-restart-window"
type="number"
@@ -367,12 +367,12 @@
<Label class="text-sm font-medium">
{m.auto_heal_excluded_containers()}
{#await containersPromise then containers}
- <span class="text-muted-foreground ml-1 font-normal">
+ <span class="ml-1 font-normal text-muted-foreground">
({containers.filter((c) => autoHealExcludedContainers.has(getContainerName(c))).length})
</span>
{/await}
</Label>
- <p class="text-muted-foreground text-xs">{m.auto_heal_exclude_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.auto_heal_exclude_description()}</p>
</div>
<div class="space-y-2">
@@ -400,7 +400,7 @@
</div>
{/if}
{:catch error}
- <div class="border-destructive/50 bg-destructive/10 text-destructive rounded-lg border p-4">
+ <div class="rounded-lg border border-destructive/50 bg-destructive/10 p-4 text-destructive">
{(error instanceof Error ? error.message : '') || String(error)}
</div>
{/await}
diff --git a/frontend/src/routes/(app)/environments/[id]/gitops/sync-table.svelte b/frontend/src/routes/(app)/environments/[id]/gitops/sync-table.svelte
index a3278554a..784da6d37 100644
--- a/frontend/src/routes/(app)/environments/[id]/gitops/sync-table.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/gitops/sync-table.svelte
@@ -205,15 +205,15 @@
{#snippet BranchCell({ value }: { value: any; item: GitOpsSync; row: ArcaneRow<GitOpsSync> })}
<div class="flex items-center gap-1.5">
- <GitBranchIcon class="text-muted-foreground size-3.5" />
- <code class="bg-muted text-muted-foreground rounded px-2 py-0.5 text-xs">{value}</code>
+ <GitBranchIcon class="size-3.5 text-muted-foreground" />
+ <code class="rounded bg-muted px-2 py-0.5 text-xs text-muted-foreground">{value}</code>
</div>
{/snippet}
{#snippet PathCell({ value }: { value: any; item: GitOpsSync; row: ArcaneRow<GitOpsSync> })}
<div class="flex items-center gap-1.5">
- <FolderIcon class="text-muted-foreground size-3.5" />
- <code class="bg-muted text-muted-foreground rounded px-2 py-0.5 text-xs">{value}</code>
+ <FolderIcon class="size-3.5 text-muted-foreground" />
+ <code class="rounded bg-muted px-2 py-0.5 text-xs text-muted-foreground">{value}</code>
</div>
{/snippet}
@@ -237,23 +237,23 @@
{#if value}
{@const commitUrl = item.repository?.url ? toGitCommitUrl(item.repository.url, String(value)) : null}
<div class="flex items-center gap-1.5">
- <HashIcon class="text-muted-foreground size-3.5" />
+ <HashIcon class="size-3.5 text-muted-foreground" />
{#if commitUrl}
<a
href={commitUrl}
target="_blank"
- class="hover:text-primary bg-muted text-muted-foreground rounded px-2 py-0.5 font-mono text-xs transition-colors"
+ class="rounded bg-muted px-2 py-0.5 font-mono text-xs text-muted-foreground transition-colors hover:text-primary"
>
{value}
</a>
{:else}
- <code class="bg-muted text-muted-foreground rounded px-2 py-0.5 font-mono text-xs">
+ <code class="rounded bg-muted px-2 py-0.5 font-mono text-xs text-muted-foreground">
{value}
</code>
{/if}
</div>
{:else}
- <span class="text-muted-foreground text-sm">{m.common_na()}</span>
+ <span class="text-sm text-muted-foreground">{m.common_na()}</span>
{/if}
{/snippet}
diff --git a/frontend/src/routes/(app)/environments/environment-table.svelte b/frontend/src/routes/(app)/environments/environment-table.svelte
index 855691e38..fecd4c79a 100644
--- a/frontend/src/routes/(app)/environments/environment-table.svelte
+++ b/frontend/src/routes/(app)/environments/environment-table.svelte
@@ -297,11 +297,11 @@
{@const statusValue = resolveEnvironmentStatus(item)}
<div class="flex items-center gap-3">
<div class="relative">
- <div class="bg-muted flex size-8 items-center justify-center rounded-lg">
- <EnvironmentsIcon class="text-muted-foreground size-4" />
+ <div class="flex size-8 items-center justify-center rounded-lg bg-muted">
+ <EnvironmentsIcon class="size-4 text-muted-foreground" />
</div>
<div
- class="border-background absolute -top-1 -right-1 size-3 rounded-full border-2 {statusValue === 'online'
+ class="absolute -top-1 -right-1 size-3 rounded-full border-2 border-background {statusValue === 'online'
? 'bg-green-500'
: statusValue === 'standby'
? 'bg-blue-500'
@@ -322,7 +322,7 @@
>
{item.name}
</button>
- <span class="text-muted-foreground font-mono text-xs leading-tight">{item.apiUrl}</span>
+ <span class="font-mono text-xs leading-tight text-muted-foreground">{item.apiUrl}</span>
</div>
</div>
{/snippet}
@@ -342,7 +342,7 @@
{/snippet}
{#snippet ApiCell({ value }: { value: unknown })}
- <span class="text-muted-foreground font-mono text-sm">{String(value)}</span>
+ <span class="font-mono text-sm text-muted-foreground">{String(value)}</span>
{/snippet}
{#snippet EnabledCell({ value }: { value: unknown })}
diff --git a/frontend/src/routes/(app)/events/event-table.svelte b/frontend/src/routes/(app)/events/event-table.svelte
index 42583609b..035825f8c 100644
--- a/frontend/src/routes/(app)/events/event-table.svelte
+++ b/frontend/src/routes/(app)/events/event-table.svelte
@@ -137,7 +137,7 @@
{@const type = String(value ?? '')}
{@const TypeIcon = eventTypeIcon(type)}
<div class="flex min-w-0 items-center gap-2">
- <TypeIcon class="text-muted-foreground size-4 shrink-0" aria-hidden="true" />
+ <TypeIcon class="size-4 shrink-0 text-muted-foreground" aria-hidden="true" />
<span class="truncate text-sm" title={type}>{eventTypeLabel(type)}</span>
</div>
{/snippet}
@@ -147,7 +147,7 @@
<div class="min-w-0">
<p class="truncate text-sm" title={item.resourceName}>{item.resourceName ?? '—'}</p>
{#if item.resourceType}
- <p class="text-muted-foreground text-xs capitalize">{item.resourceType}</p>
+ <p class="text-xs text-muted-foreground capitalize">{item.resourceType}</p>
{/if}
</div>
{:else}
@@ -165,7 +165,7 @@
{#snippet UserCell({ value }: { value: unknown })}
{#if String(value ?? '') === 'System'}
- <span class="text-muted-foreground text-sm italic">System</span>
+ <span class="text-sm text-muted-foreground italic">System</span>
{:else}
<span class="text-sm">{String(value ?? '—')}</span>
{/if}
diff --git a/frontend/src/routes/(app)/images/+page.svelte b/frontend/src/routes/(app)/images/+page.svelte
index 4b0750425..66a684942 100644
--- a/frontend/src/routes/(app)/images/+page.svelte
+++ b/frontend/src/routes/(app)/images/+page.svelte
@@ -335,10 +335,10 @@
{#if uploadedFiles.length > 0}
<div class="flex flex-col gap-2">
{#each uploadedFiles as file, i (file.name)}
- <div class="border-border bg-muted/50 flex items-center justify-between gap-2 rounded-lg border p-3">
+ <div class="flex items-center justify-between gap-2 rounded-lg border border-border bg-muted/50 p-3">
<div class="flex flex-col">
<span class="text-sm font-medium">{file.name}</span>
- <span class="text-muted-foreground text-xs">{displaySize(file.size)}</span>
+ <span class="text-xs text-muted-foreground">{displaySize(file.size)}</span>
</div>
<ArcaneButton
action="base"
@@ -353,7 +353,7 @@
</div>
{/if}
{#if isUploading}
- <div class="text-muted-foreground flex items-center gap-2 text-sm">
+ <div class="flex items-center gap-2 text-sm text-muted-foreground">
<Spinner class="size-4" />{m.images_uploading()}
</div>
{/if}
diff --git a/frontend/src/routes/(app)/images/[imageId]/+page.svelte b/frontend/src/routes/(app)/images/[imageId]/+page.svelte
index 8a5a7930c..8ccfc7176 100644
--- a/frontend/src/routes/(app)/images/[imageId]/+page.svelte
+++ b/frontend/src/routes/(app)/images/[imageId]/+page.svelte
@@ -292,24 +292,24 @@
{#snippet tile(label: string, value: string, opts?: { mono?: boolean; class?: string })}
<Card.Root variant="subtle" class={opts?.class}>
<Card.Content class="flex flex-col gap-1 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{label}</div>
- <div class={cn('text-foreground text-sm font-medium', opts?.mono && 'font-mono break-all select-all')}>
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{label}</div>
+ <div class={cn('text-sm font-medium text-foreground', opts?.mono && 'font-mono break-all select-all')}>
{value}
</div>
</Card.Content>
</Card.Root>
{/snippet}
- <div class="bg-muted/40 flex flex-wrap items-center gap-x-4 gap-y-2 rounded-lg px-4 py-3">
- <div class="text-muted-foreground flex items-center gap-1.5 text-sm">
+ <div class="flex flex-wrap items-center gap-x-4 gap-y-2 rounded-lg bg-muted/40 px-4 py-3">
+ <div class="flex items-center gap-1.5 text-sm text-muted-foreground">
<VolumesIcon class="size-4 shrink-0" />
<span>{imageSize}</span>
</div>
- <div class="text-muted-foreground flex items-center gap-1.5 text-sm">
+ <div class="flex items-center gap-1.5 text-sm text-muted-foreground">
<ClockIcon class="size-4 shrink-0" />
<span>{createdDate}</span>
</div>
- <div class="text-muted-foreground flex items-center gap-1.5 text-sm">
+ <div class="flex items-center gap-1.5 text-sm text-muted-foreground">
<CpuIcon class="size-4 shrink-0" />
<span>{architecture} · {osName}</span>
</div>
@@ -317,7 +317,7 @@
{#if hasTags}
<div class="flex flex-wrap items-center gap-2">
- <span class="text-muted-foreground inline-flex items-center gap-2 text-xs font-semibold tracking-wide uppercase">
+ <span class="inline-flex items-center gap-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
<TagIcon class="size-4" />
{m.common_tags()}
</span>
@@ -383,7 +383,7 @@
</div>
{:else}
<div class="py-12 text-center">
- <p class="text-muted-foreground text-lg font-medium">{m.common_not_found_title({ resource: m.images_title() })}</p>
+ <p class="text-lg font-medium text-muted-foreground">{m.common_not_found_title({ resource: m.images_title() })}</p>
<ArcaneButton
action="cancel"
customLabel={m.common_back_to({ resource: m.images_title() })}
diff --git a/frontend/src/routes/(app)/images/[imageId]/image-attestations-panel.svelte b/frontend/src/routes/(app)/images/[imageId]/image-attestations-panel.svelte
index 7fa624dce..70640f8f8 100644
--- a/frontend/src/routes/(app)/images/[imageId]/image-attestations-panel.svelte
+++ b/frontend/src/routes/(app)/images/[imageId]/image-attestations-panel.svelte
@@ -70,7 +70,7 @@
{#await attestationsPromise}
<div class="flex items-center justify-center py-8">
<Spinner class="size-7" />
- <span class="text-muted-foreground ml-3 text-sm">{m.images_attestations_loading()}</span>
+ <span class="ml-3 text-sm text-muted-foreground">{m.images_attestations_loading()}</span>
</div>
{:then data}
{@const attestations = data.attestations}
@@ -111,7 +111,7 @@
</div>
{#if attestations.length === 0}
- <div class="text-muted-foreground bg-muted/40 rounded-lg p-4 text-sm">
+ <div class="rounded-lg bg-muted/40 p-4 text-sm text-muted-foreground">
{#if hasActiveFilter}
{m.images_attestations_no_matches()}
{:else}
@@ -119,26 +119,26 @@
{/if}
</div>
{:else}
- <div class="border-border/60 divide-border/60 divide-y overflow-hidden rounded-lg border">
+ <div class="divide-y divide-border/60 overflow-hidden rounded-lg border border-border/60">
{#each attestations as attestation (attestation.digest + attestation.predicateType + (attestation.platform ?? ''))}
<button
type="button"
onclick={() => openDetails(attestation)}
- class="hover:bg-muted/40 flex w-full items-center gap-3 px-4 py-3 text-left transition-colors"
+ class="flex w-full items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-muted/40"
>
<span class="min-w-0 flex-1 truncate font-mono text-xs font-semibold">{attestation.predicateType}</span>
{#if attestation.platform}
<Badge variant="outline" class="shrink-0">{attestation.platform}</Badge>
{/if}
- <ArrowRightIcon class="text-muted-foreground size-4 shrink-0" />
+ <ArrowRightIcon class="size-4 shrink-0 text-muted-foreground" />
</button>
{/each}
</div>
{/if}
{:catch}
- <div class="bg-muted/40 rounded-lg p-4">
+ <div class="rounded-lg bg-muted/40 p-4">
<p class="text-sm font-medium">{m.images_attestations_lookup_failed()}</p>
- <p class="text-muted-foreground mt-1 text-xs">{m.images_attestations_lookup_failed_description()}</p>
+ <p class="mt-1 text-xs text-muted-foreground">{m.images_attestations_lookup_failed_description()}</p>
</div>
{/await}
@@ -148,41 +148,41 @@
<div class="space-y-4 pb-6">
<div class="grid gap-3 sm:grid-cols-2">
<div>
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.images_attestations_predicate_type()}
</div>
<p class="mt-1 font-mono text-xs break-all">{attestation.predicateType}</p>
</div>
<div>
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.images_attestations_platform()}
</div>
<p class="mt-1 text-xs">{attestation.platform || m.common_na()}</p>
</div>
<div>
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.images_attestations_statement_type()}
</div>
<p class="mt-1 font-mono text-xs break-all">{attestation.statementType || m.common_na()}</p>
</div>
<div>
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.images_attestations_media_type()}
</div>
<p class="mt-1 font-mono text-xs break-all">{attestation.mediaType}</p>
</div>
<div>
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.common_size()}</div>
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_size()}</div>
<p class="mt-1 text-xs font-medium">{bytes.format(attestation.size)}</p>
</div>
<div class="sm:col-span-2">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.images_attestations_digest()}
</div>
<p class="mt-1 font-mono text-xs break-all select-all">{attestation.digest}</p>
</div>
<div class="sm:col-span-2">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.images_attestations_subject()}
</div>
<p class="mt-1 font-mono text-xs break-all">{subjectLabel(attestation)}</p>
diff --git a/frontend/src/routes/(app)/images/[imageId]/image-history-panel.svelte b/frontend/src/routes/(app)/images/[imageId]/image-history-panel.svelte
index 3799cdfc2..8c824f138 100644
--- a/frontend/src/routes/(app)/images/[imageId]/image-history-panel.svelte
+++ b/frontend/src/routes/(app)/images/[imageId]/image-history-panel.svelte
@@ -44,18 +44,18 @@
</Card.Header>
<Card.Content>
{#if loading}
- <div class="text-muted-foreground flex items-center gap-2 py-8 text-sm">
+ <div class="flex items-center gap-2 py-8 text-sm text-muted-foreground">
<Spinner class="size-4" />
{m.images_history_loading()}
</div>
{:else if error}
- <p class="text-destructive py-8 text-sm">{error}</p>
+ <p class="py-8 text-sm text-destructive">{error}</p>
{:else if history.length === 0}
- <p class="text-muted-foreground py-8 text-sm">{m.images_history_empty()}</p>
+ <p class="py-8 text-sm text-muted-foreground">{m.images_history_empty()}</p>
{:else}
<div class="overflow-x-auto">
<table class="w-full min-w-[720px] text-sm">
- <thead class="text-muted-foreground border-b text-left text-xs uppercase">
+ <thead class="border-b text-left text-xs text-muted-foreground uppercase">
<tr>
<th class="py-2 pr-4 font-medium">{m.common_id()}</th>
<th class="py-2 pr-4 font-medium">{m.common_created()}</th>
diff --git a/frontend/src/routes/(app)/images/builds/+page.svelte b/frontend/src/routes/(app)/images/builds/+page.svelte
index 1ce8251ec..3c69bab68 100644
--- a/frontend/src/routes/(app)/images/builds/+page.svelte
+++ b/frontend/src/routes/(app)/images/builds/+page.svelte
@@ -888,7 +888,7 @@
{#snippet BuildHistoryTagsCell({ item }: { item: ImageBuildRecord })}
<div class="space-y-1">
<div class="text-sm font-medium">{getBuildTitle(item)}</div>
- <div class="text-muted-foreground truncate text-xs">{item.contextDir}</div>
+ <div class="truncate text-xs text-muted-foreground">{item.contextDir}</div>
</div>
{/snippet}
@@ -1024,7 +1024,7 @@
</IfPermitted>
</div>
{#if buildHistorySelected.errorMessage}
- <div class="border-destructive/20 bg-destructive/10 text-destructive rounded-lg border p-3 text-sm">
+ <div class="rounded-lg border border-destructive/20 bg-destructive/10 p-3 text-sm text-destructive">
{buildHistorySelected.errorMessage}
</div>
{/if}
@@ -1034,46 +1034,46 @@
<div class="min-h-0 space-y-3 lg:overflow-auto lg:overscroll-contain lg:pr-1">
{#if buildHistorySelected}
<div class="grid gap-3">
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_context()}
</div>
<div class="mt-2 font-mono text-xs break-all">{buildHistorySelected.contextDir}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.common_tags()}
</div>
<div class="mt-2 text-xs">
{buildHistorySelected.tags?.join(', ') || '-'}
</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.dockerfile()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.dockerfile || '-'}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.target_label()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.target || '-'}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.platforms_label()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.platforms?.join(', ') || '-'}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_provider()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.provider || '-'}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.push()} / {m.load()}
</div>
<div class="mt-2 text-xs">
@@ -1082,8 +1082,8 @@
: m.common_no()}
</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_no_cache_pull_base_label()}
</div>
<div class="mt-2 text-xs">
@@ -1092,14 +1092,14 @@
: m.common_no()}
</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_network_label()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.network || '-'}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_args()}
</div>
{#if buildHistorySelected.buildArgs && Object.keys(buildHistorySelected.buildArgs).length > 0}
@@ -1110,8 +1110,8 @@
<div class="mt-2 text-xs">-</div>
{/if}
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.common_labels()}
</div>
{#if buildHistorySelected.labels && Object.keys(buildHistorySelected.labels).length > 0}
@@ -1122,34 +1122,34 @@
<div class="mt-2 text-xs">-</div>
{/if}
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_cache_from_label()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.cacheFrom?.join(', ') || '-'}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_cache_to_label()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.cacheTo?.join(', ') || '-'}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_isolation_label()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.isolation || '-'}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_shm_size_short_label()}
</div>
<div class="mt-2 text-xs">
{buildHistorySelected.shmSize ? m.build_bytes({ size: String(buildHistorySelected.shmSize) }) : '-'}
</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_ulimits_label()}
</div>
{#if buildHistorySelected.ulimits && Object.keys(buildHistorySelected.ulimits).length > 0}
@@ -1160,20 +1160,20 @@
<div class="mt-2 text-xs">-</div>
{/if}
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_entitlements_label()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.entitlements?.join(', ') || '-'}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_privileged_heading_label()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.privileged ? m.common_yes() : m.common_no()}</div>
</div>
- <div class="border-border/60 rounded-lg border bg-zinc-950/40 p-3">
- <div class="text-muted-foreground text-[10px] font-semibold tracking-[0.12em] uppercase">
+ <div class="rounded-lg border border-border/60 bg-zinc-950/40 p-3">
+ <div class="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase">
{m.build_extra_hosts_label()}
</div>
<div class="mt-2 text-xs">{buildHistorySelected.extraHosts?.join(', ') || '-'}</div>
@@ -1181,8 +1181,8 @@
</div>
{/if}
</div>
- <div class="border-border/60 bg-card/30 flex min-h-0 flex-col overflow-hidden rounded-xl border">
- <div class="border-border/60 flex items-center justify-between border-b px-4 py-3">
+ <div class="flex min-h-0 flex-col overflow-hidden rounded-xl border border-border/60 bg-card/30">
+ <div class="flex items-center justify-between border-b border-border/60 px-4 py-3">
<div class="text-sm font-medium">{m.build_output()}</div>
{#if buildHistorySelected?.outputTruncated}
<span class="text-xs text-amber-400">{m.build_output_truncated()}</span>
@@ -1191,21 +1191,21 @@
<div class="max-h-[60vh] min-h-[260px] overflow-auto overscroll-contain p-4 lg:max-h-none lg:min-h-0 lg:flex-1">
{#if buildHistoryDetailsLoading}
<div class="flex h-full items-center justify-center">
- <Spinner class="text-muted-foreground size-6" />
+ <Spinner class="size-6 text-muted-foreground" />
</div>
{:else if buildHistorySelected?.output}
{#if buildHistoryOutputEntries.length > 0}
<div class="space-y-2">
{#each buildHistoryOutputEntries as entry, entryIndex (entry.raw + entryIndex)}
<div
- class={`border-border/50 rounded-lg border px-3 py-2 ${
- entry.error ? 'bg-destructive/10 border-destructive/40' : 'bg-zinc-950/40'
+ class={`rounded-lg border border-border/50 px-3 py-2 ${
+ entry.error ? 'border-destructive/40 bg-destructive/10' : 'bg-zinc-950/40'
}`}
>
<div class="flex items-start justify-between gap-3">
<div class="min-w-0">
<div
- class="text-muted-foreground flex flex-wrap items-center gap-2 text-[10px] tracking-wide uppercase"
+ class="flex flex-wrap items-center gap-2 text-[10px] tracking-wide text-muted-foreground uppercase"
>
{#if entry.type}
<span class="rounded bg-zinc-800/60 px-1.5 py-0.5">{entry.type}</span>
@@ -1223,7 +1223,7 @@
</div>
{#if entry.progress?.total}
<div class="flex shrink-0 flex-col items-end gap-1">
- <span class="text-muted-foreground text-[10px] tabular-nums">
+ <span class="text-[10px] text-muted-foreground tabular-nums">
{formatProgress(entry.progress.current, entry.progress.total)}
</span>
<div class="h-1 w-24 overflow-hidden rounded-full bg-zinc-800/70">
@@ -1239,10 +1239,10 @@
{/each}
</div>
{:else}
- <div class="text-muted-foreground text-sm">{m.build_output_placeholder()}</div>
+ <div class="text-sm text-muted-foreground">{m.build_output_placeholder()}</div>
{/if}
{:else}
- <div class="text-muted-foreground text-sm">{m.build_output_placeholder()}</div>
+ <div class="text-sm text-muted-foreground">{m.build_output_placeholder()}</div>
{/if}
</div>
</div>
@@ -1257,24 +1257,24 @@
<div class="flex h-full flex-col">
<Tabs.Root bind:value={rightPanelTab} class="flex h-full flex-col">
<!-- Tabs header with refined styling -->
- <div class="border-border/50 bg-muted/40 flex shrink-0 items-center justify-between border-b px-3 py-2">
- <Tabs.List class="border-border/60 bg-muted/60 flex items-center gap-1 rounded-lg border p-1">
+ <div class="flex shrink-0 items-center justify-between border-b border-border/50 bg-muted/40 px-3 py-2">
+ <Tabs.List class="flex items-center gap-1 rounded-lg border border-border/60 bg-muted/60 p-1">
<Tabs.Trigger
value="config"
- class="data-[state=active]:text-foreground text-muted-foreground hover:text-foreground data-[state=active]:bg-primary/10 rounded-md px-3 py-1.5 text-xs font-medium transition-colors"
+ class="rounded-md px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground data-[state=active]:bg-primary/10 data-[state=active]:text-foreground"
>
<CodeIcon class="mr-2 size-3.5" />
{m.build_configuration()}
</Tabs.Trigger>
<Tabs.Trigger
value="output"
- class="data-[state=active]:text-foreground text-muted-foreground hover:text-foreground data-[state=active]:bg-primary/10 rounded-md px-3 py-1.5 text-xs font-medium transition-colors"
+ class="rounded-md px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground data-[state=active]:bg-primary/10 data-[state=active]:text-foreground"
>
<TerminalIcon class="mr-2 size-3.5" />
{m.build_output()}
{#if logLines.length > 0}
<span
- class="bg-primary/15 text-primary ring-primary/20 ml-1.5 rounded-full px-1.5 py-0.5 text-[10px] font-semibold ring-1"
+ class="ml-1.5 rounded-full bg-primary/15 px-1.5 py-0.5 text-[10px] font-semibold text-primary ring-1 ring-primary/20"
>
{logLines.length}
</span>
@@ -1284,7 +1284,7 @@
<div class="flex items-center gap-3 pr-2">
<BuildControls {inputs} {providerOptions} {isBuilding} onBuild={handleSubmit} />
- <div class="bg-border hidden h-4 w-px xl:block"></div>
+ <div class="hidden h-4 w-px bg-border xl:block"></div>
<div class="flex items-center gap-2">
<div class="relative flex items-center">
<div
@@ -1302,7 +1302,7 @@
<div class="absolute inset-0 size-2 animate-ping rounded-full bg-blue-500 opacity-75"></div>
{/if}
</div>
- <span class="text-muted-foreground text-xs font-medium">{statusLabel}</span>
+ <span class="text-xs font-medium text-muted-foreground">{statusLabel}</span>
</div>
</div>
</div>
@@ -1331,16 +1331,16 @@
{#if isDesktop}
<ResourceDetailLayout title={m.manual_build_workspace()} subtitle={m.manual_build_workspace_subtitle()}>
<Tabs.Root value={mainTab} onValueChange={mainUrlTab.select} class="flex h-[calc(100vh-12rem)] flex-col">
- <Tabs.List class="border-border/60 bg-muted/60 mb-3 flex w-fit gap-2 rounded-lg border p-1">
+ <Tabs.List class="mb-3 flex w-fit gap-2 rounded-lg border border-border/60 bg-muted/60 p-1">
<Tabs.Trigger
value="build"
- class="data-[state=active]:text-foreground text-muted-foreground hover:text-foreground data-[state=active]:bg-primary/10 rounded-md px-3 py-1.5 text-sm font-medium"
+ class="rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:text-foreground data-[state=active]:bg-primary/10 data-[state=active]:text-foreground"
>
{m.manual_build_workspace()}
</Tabs.Trigger>
<Tabs.Trigger
value="history"
- class="data-[state=active]:text-foreground text-muted-foreground hover:text-foreground data-[state=active]:bg-primary/10 rounded-md px-3 py-1.5 text-sm font-medium"
+ class="rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:text-foreground data-[state=active]:bg-primary/10 data-[state=active]:text-foreground"
>
{m.build_history()}
</Tabs.Trigger>
@@ -1385,10 +1385,10 @@
<div class="flex flex-col gap-1">
{#if mainTab === 'history'}
<h1 class="text-2xl font-semibold tracking-tight">{m.builds()}</h1>
- <p class="text-muted-foreground text-sm">{m.build_output()}</p>
+ <p class="text-sm text-muted-foreground">{m.build_output()}</p>
{:else}
<h1 class="text-2xl font-semibold tracking-tight">{m.manual_build_workspace()}</h1>
- <p class="text-muted-foreground text-sm">{m.manual_build_workspace_subtitle()}</p>
+ <p class="text-sm text-muted-foreground">{m.manual_build_workspace_subtitle()}</p>
{/if}
</div>
{/snippet}
@@ -1411,7 +1411,7 @@
{#snippet headerInfo()}
<div class="flex flex-col gap-1">
<h2 class="text-lg font-semibold">{m.manual_build_workspace()}</h2>
- <p class="text-muted-foreground text-xs">{m.manual_build_workspace_subtitle()}</p>
+ <p class="text-xs text-muted-foreground">{m.manual_build_workspace_subtitle()}</p>
</div>
{/snippet}
{#snippet headerActions()}
diff --git a/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte b/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte
index c58ad4421..a5855df28 100644
--- a/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte
+++ b/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte
@@ -186,11 +186,11 @@
</script>
<div class="flex h-full min-h-0 flex-col gap-5">
- <div class="border-border/40 flex flex-wrap items-start justify-between gap-4 border-b pt-1 pb-4">
+ <div class="flex flex-wrap items-start justify-between gap-4 border-b border-border/40 pt-1 pb-4">
<div class="min-w-0 flex-1 space-y-3">
<FileBreadcrumb path={currentPath} {rootLabel} onNavigate={handleNavigate} />
<div class="flex min-w-0 items-center gap-3">
- <div class="text-muted-foreground min-w-0 flex-1 truncate font-mono text-[11px]" title={absoluteCurrentPath}>
+ <div class="min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground" title={absoluteCurrentPath}>
{absoluteCurrentPath}
</div>
</div>
@@ -234,10 +234,10 @@
{#if loading}
<div class="flex flex-1 items-center justify-center p-8">
- <Spinner class="text-muted-foreground size-8" />
+ <Spinner class="size-8 text-muted-foreground" />
</div>
{:else if error}
- <div class="border-destructive/20 bg-destructive/10 text-destructive rounded-lg border p-6 text-sm">
+ <div class="rounded-lg border border-destructive/20 bg-destructive/10 p-6 text-sm text-destructive">
{error}
</div>
{:else}
@@ -292,17 +292,17 @@
<div class="space-y-4 py-2">
{#if editorLoading}
<div class="flex items-center justify-center py-8">
- <Spinner class="text-muted-foreground size-8" />
+ <Spinner class="size-8 text-muted-foreground" />
</div>
{:else if editorError}
- <div class="border-destructive/20 bg-destructive/10 text-destructive rounded-lg border p-4 text-sm">
+ <div class="rounded-lg border border-destructive/20 bg-destructive/10 p-4 text-sm text-destructive">
{editorError}
</div>
{:else}
<div class="space-y-2">
<Label>{m.build_file_contents()}</Label>
<Textarea rows={18} bind:value={editorContent} class="font-mono text-xs" />
- <p class="text-muted-foreground text-xs">{m.build_saving_overwrite()}</p>
+ <p class="text-xs text-muted-foreground">{m.build_saving_overwrite()}</p>
</div>
{/if}
</div>
diff --git a/frontend/src/routes/(app)/images/builds/components/build-config-panel.svelte b/frontend/src/routes/(app)/images/builds/components/build-config-panel.svelte
index 042f9aad4..a59713def 100644
--- a/frontend/src/routes/(app)/images/builds/components/build-config-panel.svelte
+++ b/frontend/src/routes/(app)/images/builds/components/build-config-panel.svelte
@@ -35,7 +35,7 @@
<Collapsible.Root bind:open={showAdvanced}>
<Collapsible.Trigger
- class="text-muted-foreground hover:text-foreground hover:bg-accent flex w-full items-center justify-between rounded-md px-2 py-1.5 text-xs transition-colors"
+ class="flex w-full items-center justify-between rounded-md px-2 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
>
{m.tabs_advanced()}
<ArrowDownIcon class={showAdvanced ? 'size-4 rotate-180 transition-transform' : 'size-4 transition-transform'} />
diff --git a/frontend/src/routes/(app)/images/builds/components/build-controls.svelte b/frontend/src/routes/(app)/images/builds/components/build-controls.svelte
index 44b7e3754..7b3b41a43 100644
--- a/frontend/src/routes/(app)/images/builds/components/build-controls.svelte
+++ b/frontend/src/routes/(app)/images/builds/components/build-controls.svelte
@@ -31,7 +31,7 @@
bind:value={$inputs.provider.value}
/>
- <div class="bg-border hidden h-6 w-px lg:block"></div>
+ <div class="hidden h-6 w-px bg-border lg:block"></div>
<div class="flex items-center gap-2">
<Switch id="build-push" checked={$inputs.push.value} onCheckedChange={(v) => ($inputs.push.value = v === true)} />
diff --git a/frontend/src/routes/(app)/images/builds/components/build-output-panel.svelte b/frontend/src/routes/(app)/images/builds/components/build-output-panel.svelte
index 826dcde83..801a93787 100644
--- a/frontend/src/routes/(app)/images/builds/components/build-output-panel.svelte
+++ b/frontend/src/routes/(app)/images/builds/components/build-output-panel.svelte
@@ -59,7 +59,7 @@
<div class="flex h-full flex-col p-8">
<!-- Progress section with enhanced styling -->
- <div class="border-border/50 bg-card mb-6 shrink-0 space-y-4 rounded-2xl border p-5">
+ <div class="mb-6 shrink-0 space-y-4 rounded-2xl border border-border/50 bg-card p-5">
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
<div
@@ -85,7 +85,7 @@
</div>
<div class="flex items-center gap-3">
{#if !isIndeterminate || hasReachedComplete}
- <span class="text-muted-foreground text-sm font-medium">{progressValue}%</span>
+ <span class="text-sm font-medium text-muted-foreground">{progressValue}%</span>
{/if}
<SwitchWithLabel
id="auto-scroll"
@@ -106,7 +106,7 @@
<!-- Terminal output with refined styling -->
<div
use:autoScrollToBottom={{ enabled: autoScroll, key: logLines.length }}
- class="group border-border/50 relative min-h-0 flex-1 overflow-auto rounded-2xl border bg-zinc-950 p-5 font-mono text-[13px] leading-[1.7] text-zinc-50 shadow-2xl shadow-black/50 dark:bg-zinc-950"
+ class="group relative min-h-0 flex-1 overflow-auto rounded-2xl border border-border/50 bg-zinc-950 p-5 font-mono text-[13px] leading-[1.7] text-zinc-50 shadow-2xl shadow-black/50 dark:bg-zinc-950"
>
<!-- Subtle scanline effect overlay -->
<div class="pointer-events-none absolute inset-0 hidden"></div>
@@ -129,7 +129,7 @@
<!-- Error display -->
{#if buildError}
- <div class="border-destructive/30 bg-destructive/10 text-destructive mt-4 shrink-0 rounded-xl border p-4 text-sm">
+ <div class="mt-4 shrink-0 rounded-xl border border-destructive/30 bg-destructive/10 p-4 text-sm text-destructive">
{buildError}
</div>
{/if}
diff --git a/frontend/src/routes/(app)/images/builds/components/build-workspace-panel.svelte b/frontend/src/routes/(app)/images/builds/components/build-workspace-panel.svelte
index 229989ab9..676677ebc 100644
--- a/frontend/src/routes/(app)/images/builds/components/build-workspace-panel.svelte
+++ b/frontend/src/routes/(app)/images/builds/components/build-workspace-panel.svelte
@@ -38,17 +38,17 @@
</script>
<div class="flex h-full flex-col">
- <div class="border-border/50 relative border-b px-4 py-3">
+ <div class="relative border-b border-border/50 px-4 py-3">
<div class="relative flex flex-col gap-3">
<div class="flex items-center justify-between gap-3">
<div class="flex items-center gap-3">
- <div class="bg-primary/10 ring-primary/20 flex size-9 items-center justify-center rounded-lg ring-1">
- <FolderOpenIcon class="text-primary size-4" />
+ <div class="flex size-9 items-center justify-center rounded-lg bg-primary/10 ring-1 ring-primary/20">
+ <FolderOpenIcon class="size-4 text-primary" />
</div>
<div>
<h2 class="text-sm font-semibold tracking-tight">{m.build_context()}</h2>
<p
- class="text-muted-foreground mt-0.5 max-w-[220px] truncate text-xs sm:max-w-[280px] lg:max-w-[360px]"
+ class="mt-0.5 max-w-[220px] truncate text-xs text-muted-foreground sm:max-w-[280px] lg:max-w-[360px]"
title={contextDir}
>
{contextMode === 'remote' ? `${m.remote_source()}` : `${m.build_context()}:`}
@@ -61,12 +61,12 @@
</ArcaneButton>
</div>
- <div class="border-border/70 bg-muted/50 flex items-center gap-2 rounded-lg border p-1">
+ <div class="flex items-center gap-2 rounded-lg border border-border/70 bg-muted/50 p-1">
<button
type="button"
class={`flex-1 rounded-md px-3 py-2 text-xs font-medium transition-colors ${
contextMode === 'workspace'
- ? 'bg-primary/10 text-primary ring-primary/20 ring-1'
+ ? 'bg-primary/10 text-primary ring-1 ring-primary/20'
: 'text-muted-foreground hover:text-foreground'
}`}
onclick={() => onModeChange?.('workspace')}
@@ -77,7 +77,7 @@
type="button"
class={`flex-1 rounded-md px-3 py-2 text-xs font-medium transition-colors ${
contextMode === 'remote'
- ? 'bg-primary/10 text-primary ring-primary/20 ring-1'
+ ? 'bg-primary/10 text-primary ring-1 ring-primary/20'
: 'text-muted-foreground hover:text-foreground'
}`}
onclick={() => onModeChange?.('remote')}
@@ -93,16 +93,16 @@
{#if contextMode === 'workspace'}
<BuildWorkspaceBrowser {provider} {rootLabel} {rootPath} onSelectContext={(path: string) => onSelectContext?.(path)} />
{:else}
- <div class="border-border/20 bg-card flex h-full flex-col rounded-2xl border p-5">
+ <div class="flex h-full flex-col rounded-2xl border border-border/20 bg-card p-5">
<div class="max-w-xl space-y-2">
- <p class="text-foreground text-sm font-semibold">{m.build_remote_git_context_title()}</p>
- <p class="text-muted-foreground text-sm">
+ <p class="text-sm font-semibold text-foreground">{m.build_remote_git_context_title()}</p>
+ <p class="text-sm text-muted-foreground">
{m.build_remote_git_context_description()}
</p>
</div>
<div class="mt-5 space-y-3">
- <label for="remote-context-url" class="text-muted-foreground text-xs font-medium tracking-[0.12em] uppercase">
+ <label for="remote-context-url" class="text-xs font-medium tracking-[0.12em] text-muted-foreground uppercase">
{m.git_repository_url()}
</label>
<input
@@ -111,15 +111,15 @@
value={remoteContext}
oninput={(event) => onRemoteContextChange?.((event.currentTarget as HTMLInputElement).value)}
placeholder={m.build_remote_git_context_placeholder()}
- class="border-border bg-background/80 focus-visible:ring-ring w-full rounded-xl border px-4 py-3 text-sm transition outline-none focus-visible:ring-2"
+ class="w-full rounded-xl border border-border bg-background/80 px-4 py-3 text-sm transition outline-none focus-visible:ring-2 focus-visible:ring-ring"
spellcheck="false"
autocomplete="off"
/>
</div>
- <div class="text-muted-foreground mt-5 grid gap-3 text-xs sm:grid-cols-2">
- <div class="border-border/70 bg-muted/50 rounded-xl border p-3">
- <div class="text-foreground font-medium">{m.build_remote_git_examples()}</div>
+ <div class="mt-5 grid gap-3 text-xs text-muted-foreground sm:grid-cols-2">
+ <div class="rounded-xl border border-border/70 bg-muted/50 p-3">
+ <div class="font-medium text-foreground">{m.build_remote_git_examples()}</div>
<div class="mt-2 font-mono leading-5 break-all">
https://github.com/owner/repo.git
<br />
@@ -128,8 +128,8 @@
https://github.com/owner/repo.git#main:docker/app
</div>
</div>
- <div class="border-border/70 bg-muted/50 rounded-xl border p-3">
- <div class="text-foreground font-medium">{m.build_remote_git_credential_lookup_title()}</div>
+ <div class="rounded-xl border border-border/70 bg-muted/50 p-3">
+ <div class="font-medium text-foreground">{m.build_remote_git_credential_lookup_title()}</div>
<div class="mt-2 leading-5">
{m.build_remote_git_credential_lookup_description()}
</div>
diff --git a/frontend/src/routes/(app)/images/image-table.svelte b/frontend/src/routes/(app)/images/image-table.svelte
index 67fef8424..d24ed084b 100644
--- a/frontend/src/routes/(app)/images/image-table.svelte
+++ b/frontend/src/routes/(app)/images/image-table.svelte
@@ -463,7 +463,7 @@
<a class="inline-flex" href={`/projects/${encodeURIComponent(usage.id)}`}>
<Badge
variant="outline"
- class="hover:bg-accent/40 focus-visible:ring-primary/40 bg-background/80 inline-flex items-center gap-1 rounded-md text-xs transition-colors focus-visible:ring-2"
+ class="inline-flex items-center gap-1 rounded-md bg-background/80 text-xs transition-colors hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-primary/40"
>
<ProjectsIcon class="size-3" />
<span>{usage.name}</span>
@@ -472,7 +472,7 @@
{:else}
<Badge
variant="outline"
- class="hover:bg-accent/40 focus-visible:ring-primary/40 bg-background/80 inline-flex items-center gap-1 rounded-md text-xs transition-colors focus-visible:ring-2"
+ class="inline-flex items-center gap-1 rounded-md bg-background/80 text-xs transition-colors hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-primary/40"
>
<ProjectsIcon class="size-3" />
<span>{usage.name}</span>
@@ -482,7 +482,7 @@
<a class="inline-flex" href={`/containers/${encodeURIComponent(usage.id)}`}>
<Badge
variant="outline"
- class="hover:bg-accent/40 focus-visible:ring-primary/40 bg-background/80 inline-flex items-center gap-1 rounded-md text-xs transition-colors focus-visible:ring-2"
+ class="inline-flex items-center gap-1 rounded-md bg-background/80 text-xs transition-colors hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-primary/40"
>
<ContainersIcon class="size-3" />
<span>{usage.name}</span>
@@ -491,7 +491,7 @@
{:else}
<Badge
variant="outline"
- class="hover:bg-accent/40 focus-visible:ring-primary/40 bg-background/80 inline-flex items-center gap-1 rounded-md text-xs transition-colors focus-visible:ring-2"
+ class="inline-flex items-center gap-1 rounded-md bg-background/80 text-xs transition-colors hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-primary/40"
>
<ContainersIcon class="size-3" />
<span>{usage.name}</span>
@@ -514,7 +514,7 @@
<Tooltip.Trigger>
<Badge
variant="outline"
- class="hover:bg-accent/40 focus-visible:ring-primary/40 bg-background/80 inline-flex items-center rounded-md text-xs transition-colors focus-visible:ring-2"
+ class="inline-flex items-center rounded-md bg-background/80 text-xs transition-colors hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-primary/40"
>
+{overflowUsage.length}
</Badge>
diff --git a/frontend/src/routes/(app)/images/vulnerabilities/+page.svelte b/frontend/src/routes/(app)/images/vulnerabilities/+page.svelte
index 4d02dbc12..1276f99b0 100644
--- a/frontend/src/routes/(app)/images/vulnerabilities/+page.svelte
+++ b/frontend/src/routes/(app)/images/vulnerabilities/+page.svelte
@@ -300,16 +300,16 @@
{#snippet mainContent()}
<div class="space-y-6">
<!-- Minimal overview: one compact block -->
- <div class="border-border/40 bg-muted/20 rounded-lg border px-4 py-3">
+ <div class="rounded-lg border border-border/40 bg-muted/20 px-4 py-3">
<div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
- <div class="text-muted-foreground flex items-baseline gap-4 text-xs">
+ <div class="flex items-baseline gap-4 text-xs text-muted-foreground">
<span
>{m.security_images_scanned()}:
- <span class="text-foreground font-medium tabular-nums">{imagesScannedLabel}</span></span
+ <span class="font-medium text-foreground tabular-nums">{imagesScannedLabel}</span></span
>
<span
>{m.security_total_vulnerabilities()}:
- <span class="text-foreground font-medium tabular-nums">{summaryCounts.total}</span></span
+ <span class="font-medium text-foreground tabular-nums">{summaryCounts.total}</span></span
>
</div>
{#if severityItems.length > 0}
@@ -317,8 +317,8 @@
{#each severityItems as item (item.key)}
<div class="flex items-center gap-1.5">
<span class="{item.dotClass} h-1.5 w-1.5 shrink-0 rounded-full" aria-hidden="true"></span>
- <span class="text-muted-foreground text-xs">
- <span class="text-foreground font-semibold tabular-nums">{item.value}</span>
+ <span class="text-xs text-muted-foreground">
+ <span class="font-semibold text-foreground tabular-nums">{item.value}</span>
<span class="ml-0.5">{item.label}</span>
</span>
</div>
@@ -334,12 +334,12 @@
<Tabs.Trigger value="ignored">{m.vuln_ignored_title()}</Tabs.Trigger>
</Tabs.List>
<Tabs.Content value="vulnerabilities" class="mt-4">
- <div class="border-border/60 rounded-xl border">
+ <div class="rounded-xl border border-border/60">
<SecurityVulnerabilityTable bind:vulnerabilities bind:requestOptions />
</div>
</Tabs.Content>
<Tabs.Content value="ignored" class="mt-4">
- <div class="border-border/60 rounded-xl border">
+ <div class="rounded-xl border border-border/60">
<IgnoredVulnerabilitiesTable
{ignoredVulnerabilities}
requestOptions={ignoredRequestOptions}
diff --git a/frontend/src/routes/(app)/images/vulnerabilities/ignored-vulnerabilities-table.svelte b/frontend/src/routes/(app)/images/vulnerabilities/ignored-vulnerabilities-table.svelte
index b7cbfd612..68cef83cd 100644
--- a/frontend/src/routes/(app)/images/vulnerabilities/ignored-vulnerabilities-table.svelte
+++ b/frontend/src/routes/(app)/images/vulnerabilities/ignored-vulnerabilities-table.svelte
@@ -39,9 +39,9 @@
}
</script>
-<div class="divide-border divide-y">
+<div class="divide-y divide-border">
{#if ignoredVulnerabilities.data.length === 0}
- <div class="text-muted-foreground flex h-32 items-center justify-center">
+ <div class="flex h-32 items-center justify-center text-muted-foreground">
{#if isLoading}
<div class="flex items-center gap-2">
<div class="h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"></div>
@@ -53,10 +53,10 @@
</div>
{:else}
{#each ignoredVulnerabilities.data as item (item.id)}
- <div class="hover:bg-muted/50 flex items-center justify-between p-4">
+ <div class="flex items-center justify-between p-4 hover:bg-muted/50">
<div class="flex-1 space-y-1">
<div class="flex items-center gap-2">
- <ShieldAlertIcon class="text-muted-foreground h-4 w-4" />
+ <ShieldAlertIcon class="h-4 w-4 text-muted-foreground" />
<a
href="https://nvd.nist.gov/vuln/detail/{item.vulnerabilityId}"
target="_blank"
@@ -66,7 +66,7 @@
{item.vulnerabilityId}
</a>
</div>
- <div class="text-muted-foreground flex flex-wrap items-center gap-x-4 gap-y-1 text-xs">
+ <div class="flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground">
<span class="flex items-center gap-1">
<CodeIcon class="h-3 w-3" />
<span class="font-mono">{item.pkgName}@{item.installedVersion}</span>
@@ -80,7 +80,7 @@
<span>• {formatDate(item.createdAt)}</span>
</div>
{#if item.reason}
- <div class="text-muted-foreground text-xs italic">
+ <div class="text-xs text-muted-foreground italic">
{item.reason}
</div>
{/if}
@@ -100,7 +100,7 @@
{#if ignoredVulnerabilities.pagination.totalPages > 1}
<div class="flex items-center justify-between border-t px-4 py-3">
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{m.pagination_showing({
from: (ignoredVulnerabilities.pagination.currentPage - 1) * ignoredVulnerabilities.pagination.itemsPerPage + 1,
to: Math.min(
@@ -120,7 +120,7 @@
>
{m.common_previous()}
</ArcaneButton>
- <span class="text-muted-foreground text-xs">
+ <span class="text-xs text-muted-foreground">
{ignoredVulnerabilities.pagination.currentPage} / {ignoredVulnerabilities.pagination.totalPages}
</span>
<ArcaneButton
diff --git a/frontend/src/routes/(app)/images/vulnerabilities/security-vulnerability-table.svelte b/frontend/src/routes/(app)/images/vulnerabilities/security-vulnerability-table.svelte
index 8cde12a0f..f20e0d337 100644
--- a/frontend/src/routes/(app)/images/vulnerabilities/security-vulnerability-table.svelte
+++ b/frontend/src/routes/(app)/images/vulnerabilities/security-vulnerability-table.svelte
@@ -203,7 +203,7 @@
{#if canManageVuln}
<button
onclick={() => handleIgnoreVulnerability(item)}
- class="text-muted-foreground hover:text-foreground inline-flex items-center gap-1 text-xs transition-colors"
+ class="inline-flex items-center gap-1 text-xs text-muted-foreground transition-colors hover:text-foreground"
title={m.vuln_ignore()}
>
<EyeOffIcon class="h-3.5 w-3.5" />
diff --git a/frontend/src/routes/(app)/networks/[networkId]/+page.svelte b/frontend/src/routes/(app)/networks/[networkId]/+page.svelte
index 0f2db5f99..e80bc19f2 100644
--- a/frontend/src/routes/(app)/networks/[networkId]/+page.svelte
+++ b/frontend/src/routes/(app)/networks/[networkId]/+page.svelte
@@ -245,9 +245,9 @@
{#each network.peers as peer (`${peer.Name ?? ''}:${peer.IP ?? ''}`)}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide break-all uppercase">{peer.Name}</div>
+ <div class="text-xs font-semibold tracking-wide break-all text-muted-foreground uppercase">{peer.Name}</div>
<div
- class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all"
+ class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
title={m.common_click_to_select()}
>
{peer.IP}
@@ -275,22 +275,22 @@
<Card.Content class="p-4">
<div class="space-y-2">
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-24"
+ <span class="w-full text-sm font-medium text-muted-foreground sm:w-24"
>{m.networks_service_name_label()}:</span
>
<code
- class="bg-muted text-muted-foreground mt-1 rounded px-1.5 py-0.5 font-mono text-xs sm:mt-0 sm:text-sm"
+ class="mt-1 rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground sm:mt-0 sm:text-sm"
>
{name}
</code>
</div>
{#if service.VIP}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-24"
+ <span class="w-full text-sm font-medium text-muted-foreground sm:w-24"
>{m.networks_service_vip_label()}:</span
>
<code
- class="bg-muted text-muted-foreground mt-1 rounded px-1.5 py-0.5 font-mono text-xs sm:mt-0 sm:text-sm"
+ class="mt-1 rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground sm:mt-0 sm:text-sm"
>
{service.VIP}
</code>
@@ -298,12 +298,12 @@
{/if}
{#if service.Ports && service.Ports.length > 0}
<div class="flex flex-col sm:flex-row sm:items-start">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-24"
+ <span class="w-full text-sm font-medium text-muted-foreground sm:w-24"
>{m.networks_service_ports_label()}:</span
>
<div class="flex flex-wrap gap-1">
{#each service.Ports as port (port)}
- <code class="bg-muted text-muted-foreground rounded px-1.5 py-0.5 font-mono text-xs sm:text-sm">
+ <code class="rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground sm:text-sm">
{port}
</code>
{/each}
@@ -335,9 +335,9 @@
<div class="space-y-2">
{#if config.subnet}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-24">{m.common_subnet()}:</span>
+ <span class="w-full text-sm font-medium text-muted-foreground sm:w-24">{m.common_subnet()}:</span>
<code
- class="bg-muted text-muted-foreground mt-1 cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs select-all sm:mt-0 sm:text-sm"
+ class="mt-1 cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground select-all sm:mt-0 sm:text-sm"
title={m.common_click_to_select()}
>
{config.subnet}
@@ -347,11 +347,11 @@
{#if config.gateway}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-24"
+ <span class="w-full text-sm font-medium text-muted-foreground sm:w-24"
>{m.networks_ipam_gateway_label()}:</span
>
<code
- class="bg-muted text-muted-foreground mt-1 cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs select-all sm:mt-0 sm:text-sm"
+ class="mt-1 cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground select-all sm:mt-0 sm:text-sm"
title={m.common_click_to_select()}
>
{config.gateway}
@@ -361,11 +361,11 @@
{#if config.ipRange}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-24"
+ <span class="w-full text-sm font-medium text-muted-foreground sm:w-24"
>{m.networks_ipam_iprange_label()}:</span
>
<code
- class="bg-muted text-muted-foreground mt-1 cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs select-all sm:mt-0 sm:text-sm"
+ class="mt-1 cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground select-all sm:mt-0 sm:text-sm"
title={m.common_click_to_select()}
>
{config.ipRange}
@@ -375,13 +375,13 @@
{#if config.auxAddress && Object.keys(config.auxAddress).length > 0}
<div class="mt-3">
- <p class="text-muted-foreground mb-1 text-sm font-medium">{m.networks_ipam_aux_addresses_label()}:</p>
+ <p class="mb-1 text-sm font-medium text-muted-foreground">{m.networks_ipam_aux_addresses_label()}:</p>
<ul class="ml-4 space-y-1">
{#each Object.entries(config.auxAddress) as [name, addr] (name)}
<li class="flex font-mono text-xs">
- <span class="text-muted-foreground mr-2">{name}:</span>
+ <span class="mr-2 text-muted-foreground">{name}:</span>
<code
- class="bg-muted text-muted-foreground cursor-pointer rounded px-1 py-0.5 select-all"
+ class="cursor-pointer rounded bg-muted px-1 py-0.5 text-muted-foreground select-all"
title={m.common_click_to_select()}>{addr}</code
>
</li>
@@ -397,15 +397,15 @@
{#if network.ipam.driver}
<div class="mt-4 flex items-center">
- <span class="text-muted-foreground mr-2 text-sm font-medium">{m.networks_ipam_driver_label()}:</span>
+ <span class="mr-2 text-sm font-medium text-muted-foreground">{m.networks_ipam_driver_label()}:</span>
<Badge variant="cyan" minWidth="20">{network.ipam.driver}</Badge>
</div>
{/if}
{#if network.ipam.options && Object.keys(network.ipam.options).length > 0}
<div class="mt-4">
- <p class="text-muted-foreground mb-2 text-sm font-medium">{m.networks_ipam_options_label()}</p>
- <div class="bg-muted/50 rounded-lg border p-3">
+ <p class="mb-2 text-sm font-medium text-muted-foreground">{m.networks_ipam_options_label()}</p>
+ <div class="rounded-lg border bg-muted/50 p-3">
{#each Object.entries(network.ipam.options) as [key, value] (key)}
<div class="mb-1 flex justify-between font-mono text-xs last:mb-0">
<span class="text-muted-foreground">{key}:</span>
@@ -432,9 +432,9 @@
<Card.Content class="p-4">
<Card.Root variant="outlined">
<Card.Content class="p-0">
- <div class="bg-muted/30 flex flex-col border-b p-3 sm:flex-row sm:items-center">
+ <div class="flex flex-col border-b bg-muted/30 p-3 sm:flex-row sm:items-center">
<div
- class="text-muted-foreground hover:text-foreground flex w-full cursor-pointer items-center text-sm font-medium sm:w-1/3"
+ class="flex w-full cursor-pointer items-center text-sm font-medium text-muted-foreground hover:text-foreground sm:w-1/3"
onclick={() => handleSort('name')}
role="button"
tabindex="0"
@@ -450,7 +450,7 @@
{/if}
</div>
<div
- class="text-muted-foreground hover:text-foreground flex w-full cursor-pointer items-center pl-0 text-sm font-medium sm:w-2/3 sm:pl-4"
+ class="flex w-full cursor-pointer items-center pl-0 text-sm font-medium text-muted-foreground hover:text-foreground sm:w-2/3 sm:pl-4"
onclick={() => handleSort('ip')}
role="button"
tabindex="0"
@@ -471,14 +471,14 @@
{#each connectedContainers as container (container.id)}
<div class="flex flex-col p-3 sm:flex-row sm:items-center">
<div class="mb-2 w-full font-medium break-all sm:mb-0 sm:w-1/3">
- <a href="/containers/{container.id}" class="text-primary flex items-center hover:underline">
- <ContainersIcon class="text-muted-foreground mr-1.5 size-3.5" />
+ <a href="/containers/{container.id}" class="flex items-center text-primary hover:underline">
+ <ContainersIcon class="mr-1.5 size-3.5 text-muted-foreground" />
{container.name ?? container.Name}
</a>
</div>
<div class="w-full pl-0 sm:w-2/3 sm:pl-4">
<code
- class="bg-muted text-muted-foreground cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs break-all select-all sm:text-sm"
+ class="cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs break-all text-muted-foreground select-all sm:text-sm"
title={m.common_click_to_select()}
>
{container.ipv4Address ??
@@ -517,11 +517,11 @@
</div>
{:else}
<div class="flex flex-col items-center justify-center px-4 py-16 text-center">
- <div class="bg-muted/30 mb-4 rounded-full p-4">
- <NetworksIcon class="text-muted-foreground size-10 opacity-70" />
+ <div class="mb-4 rounded-full bg-muted/30 p-4">
+ <NetworksIcon class="size-10 text-muted-foreground opacity-70" />
</div>
<h2 class="mb-2 text-xl font-medium">{m.common_not_found_title({ resource: m.networks_title() })}</h2>
- <p class="text-muted-foreground mb-6">{m.common_not_found_description({ resource: m.networks_title().toLowerCase() })}</p>
+ <p class="mb-6 text-muted-foreground">{m.common_not_found_description({ resource: m.networks_title().toLowerCase() })}</p>
<ArcaneButton
action="cancel"
customLabel={m.common_back_to({ resource: m.networks_title() })}
diff --git a/frontend/src/routes/(app)/projects/[projectId]/+page.svelte b/frontend/src/routes/(app)/projects/[projectId]/+page.svelte
index eb7a075ff..e27c291d9 100644
--- a/frontend/src/routes/(app)/projects/[projectId]/+page.svelte
+++ b/frontend/src/routes/(app)/projects/[projectId]/+page.svelte
@@ -1380,7 +1380,7 @@
<div class="mt-1 flex min-w-0 flex-wrap items-center gap-1.5">
{#each project.urls as url, i (i)}
<a
- class="ring-offset-background focus-visible:ring-ring bg-background/70 inline-flex h-6 max-w-[10rem] min-w-0 items-center gap-1.5 rounded-[var(--radius)] border border-sky-700/20 px-2.5 text-[12px] font-semibold transition-colors hover:border-sky-700/40 hover:bg-sky-500/10 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none sm:max-w-[14rem] md:max-w-[18rem] dark:border-sky-400/40 dark:bg-sky-500/20 dark:text-sky-100 dark:hover:border-sky-300/60 dark:hover:bg-sky-500/30"
+ class="inline-flex h-6 max-w-[10rem] min-w-0 items-center gap-1.5 rounded-[var(--radius)] border border-sky-700/20 bg-background/70 px-2.5 text-[12px] font-semibold ring-offset-background transition-colors hover:border-sky-700/40 hover:bg-sky-500/10 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none sm:max-w-[14rem] md:max-w-[18rem] dark:border-sky-400/40 dark:bg-sky-500/20 dark:text-sky-100 dark:hover:border-sky-300/60 dark:hover:bg-sky-500/30"
href={toSafeHref(url)}
target="_blank"
rel="noopener noreferrer"
@@ -1397,19 +1397,19 @@
{@const commitUrl = project.gitRepositoryURL
? toGitCommitUrl(project.gitRepositoryURL, project.lastSyncCommit)
: null}
- <div class="text-muted-foreground mt-1 flex flex-wrap items-center gap-4 text-xs">
+ <div class="mt-1 flex flex-wrap items-center gap-4 text-xs text-muted-foreground">
<div class="flex items-center gap-1.5">
<span class="hidden sm:inline">{m.git_sync_commit()}:</span>
{#if commitUrl}
<a
href={commitUrl}
target="_blank"
- class="hover:text-primary sm:bg-muted font-mono transition-colors sm:rounded sm:px-1.5 sm:py-0.5"
+ class="font-mono transition-colors hover:text-primary sm:rounded sm:bg-muted sm:px-1.5 sm:py-0.5"
>
{project.lastSyncCommit}
</a>
{:else}
- <span class="sm:bg-muted font-mono sm:rounded sm:px-1.5 sm:py-0.5">
+ <span class="font-mono sm:rounded sm:bg-muted sm:px-1.5 sm:py-0.5">
{project.lastSyncCommit}
</span>
{/if}
@@ -1496,19 +1496,19 @@
<a
href={commitUrl}
target="_blank"
- class="bg-muted hover:text-primary rounded px-1.5 py-0.5 transition-colors"
+ class="rounded bg-muted px-1.5 py-0.5 transition-colors hover:text-primary"
>
{project.lastSyncCommit}
</a>
{:else}
- <span class="bg-muted rounded px-1.5 py-0.5">{project.lastSyncCommit}</span>
+ <span class="rounded bg-muted px-1.5 py-0.5">{project.lastSyncCommit}</span>
{/if}
</div>
{/if}
{#if hasLifecycleHook && lifecycleSync?.preDeployScriptPath}
<div class="flex items-center gap-1.5 font-mono text-xs">
<span class="text-muted-foreground">{m.git_sync_pre_deploy_title()}:</span>
- <span class="bg-muted rounded px-1.5 py-0.5">{lifecycleSync.preDeployScriptPath}</span>
+ <span class="rounded bg-muted px-1.5 py-0.5">{lifecycleSync.preDeployScriptPath}</span>
<span class="text-muted-foreground">
{m.lifecycle_inline_runner_summary({
image: lifecycleSync.preDeployRunnerImage || 'alpine:latest',
@@ -1517,7 +1517,7 @@
</span>
</div>
{/if}
- <span class="text-muted-foreground text-xs">
+ <span class="text-xs text-muted-foreground">
{m.git_managed_env_note()}
</span>
</div>
@@ -1541,7 +1541,7 @@
<div class="mb-2 flex shrink-0 items-center justify-end gap-2">
<label
for="layout-mode-toggle"
- class="text-muted-foreground cursor-pointer text-xs"
+ class="cursor-pointer text-xs text-muted-foreground"
title={m.project_view_description()}
>
{m.workspace()}
@@ -1563,7 +1563,7 @@
<div class="min-h-0 flex-1">
{#if layoutMode === 'tree'}
- <div class="bg-card border-border flex h-full min-h-0 flex-col overflow-hidden rounded-lg border">
+ <div class="flex h-full min-h-0 flex-col overflow-hidden rounded-lg border border-border bg-card">
<ResizableSplit
class="h-full min-h-0 flex-1"
{...composeTreeSplitProps}
@@ -1624,12 +1624,12 @@
/>
{:else if activeTreeTab === 'override'}
<div class="flex min-h-0 flex-1 flex-col">
- <div class="border-border flex shrink-0 items-center justify-between gap-2 border-b px-3 py-2">
- <p class="text-muted-foreground text-xs">{m.compose_override_hint()}</p>
+ <div class="flex shrink-0 items-center justify-between gap-2 border-b border-border px-3 py-2">
+ <p class="text-xs text-muted-foreground">{m.compose_override_hint()}</p>
{#if canEditOverride}
<button
type="button"
- class="text-muted-foreground hover:text-destructive flex shrink-0 items-center gap-1 text-xs font-medium"
+ class="flex shrink-0 items-center gap-1 text-xs font-medium text-muted-foreground hover:text-destructive"
onclick={handleRemoveOverride}
>
<TrashIcon class="size-3.5 shrink-0" />
@@ -1664,11 +1664,11 @@
{:else if activeTreeTab.startsWith('file:')}
{@const relativePath = activeTreeTab.slice(5)}
{#if managedProjectFileLoadErrors[relativePath]}
- <div class="text-destructive flex h-full min-h-0 items-center justify-center px-4 text-sm">
+ <div class="flex h-full min-h-0 items-center justify-center px-4 text-sm text-destructive">
{managedProjectFileLoadErrors[relativePath]}
</div>
{:else if managedProjectFileContents[relativePath] === undefined}
- <div class="text-muted-foreground flex h-full min-h-0 items-center justify-center">
+ <div class="flex h-full min-h-0 items-center justify-center text-muted-foreground">
{m.common_loading()}
</div>
{:else}
@@ -1701,8 +1701,8 @@
{:else}
<div class="flex h-full min-h-0 flex-col gap-4">
{#if (project?.includeFiles && project.includeFiles.length > 0) || (hasLifecycleHook && lifecycleSync?.preDeployScriptPath && directoryFilePaths.has(lifecycleSync.preDeployScriptPath))}
- <div class="border-border bg-card rounded-lg border">
- <div class="border-border scrollbar-hide flex gap-2 overflow-x-auto border-b p-2">
+ <div class="rounded-lg border border-border bg-card">
+ <div class="scrollbar-hide flex gap-2 overflow-x-auto border-b border-border p-2">
{#each project?.includeFiles ?? [] as includeFile (includeFile.relativePath)}
<ArcaneButton
action="base"
@@ -1737,7 +1737,7 @@
: undefined}
{@const fileKind = includeFile ? 'include' : 'directory'}
{#await getProjectFileResource(fileKind, selectedIncludeTab)}
- <div class="text-muted-foreground flex h-full min-h-0 items-center justify-center rounded-lg border">
+ <div class="flex h-full min-h-0 items-center justify-center rounded-lg border text-muted-foreground">
{m.common_loading()}
</div>
{:then loaded}
@@ -1765,7 +1765,7 @@
/>
{/if}
{:catch error}
- <div class="text-destructive flex h-full min-h-0 items-center justify-center rounded-lg border px-4 text-sm">
+ <div class="flex h-full min-h-0 items-center justify-center rounded-lg border px-4 text-sm text-destructive">
{error instanceof Error ? error.message : String(error)}
</div>
{/await}
@@ -1789,16 +1789,16 @@
{#if overrideExpanded}
<button
type="button"
- class="border-border bg-card hover:text-foreground flex shrink-0 items-center gap-2 rounded-lg border px-2 py-2 text-sm font-medium"
+ class="flex shrink-0 items-center gap-2 rounded-lg border border-border bg-card px-2 py-2 text-sm font-medium hover:text-foreground"
aria-expanded="false"
onclick={() => (overrideOpen = false)}
>
- <ArrowRightIcon class="text-muted-foreground size-4 shrink-0" />
- <CodeIcon class="text-muted-foreground size-4 shrink-0" />
+ <ArrowRightIcon class="size-4 shrink-0 text-muted-foreground" />
+ <CodeIcon class="size-4 shrink-0 text-muted-foreground" />
<span class="truncate">{composeFileName}</span>
{#if composeHasChanges}
<span
- class="bg-primary size-1.5 shrink-0 rounded-full"
+ class="size-1.5 shrink-0 rounded-full bg-primary"
role="img"
aria-label={m.common_unsaved_changes()}
></span>
@@ -1817,37 +1817,37 @@
{/if}
{#if overrideActive}
<div
- class="border-border bg-card flex min-h-0 flex-col overflow-hidden rounded-lg border {overrideExpanded
+ class="flex min-h-0 flex-col overflow-hidden rounded-lg border border-border bg-card {overrideExpanded
? 'flex-1'
: 'shrink-0'}"
>
<div
class="flex shrink-0 items-center gap-1 px-2 py-1 {overrideExpanded
- ? 'border-border border-b'
+ ? 'border-b border-border'
: ''}"
>
<button
type="button"
- class="hover:text-foreground flex min-w-0 flex-1 items-center gap-2 py-1 text-sm font-medium"
+ class="flex min-w-0 flex-1 items-center gap-2 py-1 text-sm font-medium hover:text-foreground"
aria-expanded={overrideOpen}
onclick={() => (overrideOpen = !overrideOpen)}
>
{#if overrideOpen}
- <ArrowDownIcon class="text-muted-foreground size-4 shrink-0" />
+ <ArrowDownIcon class="size-4 shrink-0 text-muted-foreground" />
{:else}
- <ArrowRightIcon class="text-muted-foreground size-4 shrink-0" />
+ <ArrowRightIcon class="size-4 shrink-0 text-muted-foreground" />
{/if}
- <FileTextIcon class="text-muted-foreground size-4 shrink-0" />
+ <FileTextIcon class="size-4 shrink-0 text-muted-foreground" />
<span class="truncate">{overrideFileName}</span>
{#if overrideHasChanges}
<span
- class="bg-primary size-1.5 shrink-0 rounded-full"
+ class="size-1.5 shrink-0 rounded-full bg-primary"
role="img"
aria-label={m.common_unsaved_changes()}
></span>
{/if}
{#if !overrideOpen}
- <span class="text-muted-foreground hidden truncate text-xs font-normal sm:inline"
+ <span class="hidden truncate text-xs font-normal text-muted-foreground sm:inline"
>{m.compose_override_hint()}</span
>
{/if}
@@ -1884,7 +1884,7 @@
{#if canEditOverride}
<button
type="button"
- class="text-muted-foreground hover:text-destructive flex shrink-0 items-center p-1.5"
+ class="flex shrink-0 items-center p-1.5 text-muted-foreground hover:text-destructive"
onclick={handleRemoveOverride}
aria-label={m.compose_override_remove()}
>
@@ -1910,7 +1910,7 @@
{:else if canEditOverride}
<button
type="button"
- class="border-border text-muted-foreground hover:text-foreground hover:bg-card flex shrink-0 items-center gap-2 rounded-lg border border-dashed px-3 py-2 text-sm font-medium transition-colors"
+ class="flex shrink-0 items-center gap-2 rounded-lg border border-dashed border-border px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:bg-card hover:text-foreground"
onclick={handleAddOverride}
>
<CreateFileIcon class="size-4 shrink-0" />
@@ -1943,7 +1943,7 @@
{#if project.status == 'running'}
<ProjectsLogsPanel projectId={project.id} bind:autoScroll={autoScrollStackLogs} />
{:else}
- <div class="text-muted-foreground py-12 text-center">{m.compose_logs_title()} {m.common_disabled()}</div>
+ <div class="py-12 text-center text-muted-foreground">{m.compose_logs_title()} {m.common_disabled()}</div>
{/if}
</Tabs.Content>
{/snippet}
@@ -1951,13 +1951,13 @@
{:else}
<div class="flex min-h-screen items-center justify-center">
<div class="text-center">
- <div class="bg-muted/50 mb-6 inline-flex rounded-full p-6">
- <ProjectsIcon class="text-muted-foreground size-10" />
+ <div class="mb-6 inline-flex rounded-full bg-muted/50 p-6">
+ <ProjectsIcon class="size-10 text-muted-foreground" />
</div>
<h2 class="mb-3 text-2xl font-medium">
{data.error ? m.common_action_failed() : m.common_not_found_title({ resource: m.project() })}
</h2>
- <p class="text-muted-foreground mb-8 max-w-md text-center">
+ <p class="mb-8 max-w-md text-center text-muted-foreground">
{data.error || m.common_not_found_description({ resource: m.project().toLowerCase() })}
</p>
<ArcaneButton
diff --git a/frontend/src/routes/(app)/projects/components/CodePanel.svelte b/frontend/src/routes/(app)/projects/components/CodePanel.svelte
index 0d562d9cd..0c2f25fda 100644
--- a/frontend/src/routes/(app)/projects/components/CodePanel.svelte
+++ b/frontend/src/routes/(app)/projects/components/CodePanel.svelte
@@ -92,7 +92,7 @@
</div>
</div>
{#if error}
- <p class="text-destructive px-4 py-2 text-xs">{error}</p>
+ <p class="px-4 py-2 text-xs text-destructive">{error}</p>
{/if}
{/snippet}
diff --git a/frontend/src/routes/(app)/projects/components/EditableName.svelte b/frontend/src/routes/(app)/projects/components/EditableName.svelte
index e503d1f4b..1e4b430d8 100644
--- a/frontend/src/routes/(app)/projects/components/EditableName.svelte
+++ b/frontend/src/routes/(app)/projects/components/EditableName.svelte
@@ -83,7 +83,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:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 {error
+ class="min-h-[32px] w-full rounded bg-transparent px-1 py-1 text-center text-base font-semibold transition-colors hover:bg-muted/50 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 {error
? 'border border-destructive'
: ''}"
title={canEdit ? `${shownValue || placeholder} (tap to edit)` : shownValue || placeholder}
@@ -97,14 +97,14 @@
{#if canEdit}
<div class="flex items-center justify-center">
- <span class="text-muted-foreground flex items-center gap-0.5 text-[8px] whitespace-nowrap opacity-30">
+ <span class="flex items-center gap-0.5 text-[8px] whitespace-nowrap text-muted-foreground opacity-30">
<EditIcon 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 text-[8px] whitespace-nowrap opacity-40">
+ <span class="inline-flex cursor-help items-center gap-0.5 text-[8px] whitespace-nowrap text-muted-foreground opacity-40">
<InfoIcon class="size-1.5" />
{m.cannot_edit()}
</span>
@@ -141,7 +141,7 @@
{:else}
<ArcaneTooltip.Root>
<ArcaneTooltip.Trigger>
- <span class="text-muted-foreground inline-flex cursor-help items-center">
+ <span class="inline-flex cursor-help items-center text-muted-foreground">
<InfoIcon class="size-4 shrink-0" />
</span>
</ArcaneTooltip.Trigger>
@@ -155,5 +155,5 @@
</div>
{#if error}
- <p class="text-destructive mt-1 text-xs">{error}</p>
+ <p class="mt-1 text-xs text-destructive">{error}</p>
{/if}
diff --git a/frontend/src/routes/(app)/projects/components/EditorTabStrip.svelte b/frontend/src/routes/(app)/projects/components/EditorTabStrip.svelte
index 3ac7a2778..f6c4f6b8f 100644
--- a/frontend/src/routes/(app)/projects/components/EditorTabStrip.svelte
+++ b/frontend/src/routes/(app)/projects/components/EditorTabStrip.svelte
@@ -23,20 +23,20 @@
let { tabs, activeKey, onSelect, onClose, actions }: Props = $props();
</script>
-<div class="border-border bg-muted/30 flex h-9 shrink-0 items-center border-b">
+<div class="flex h-9 shrink-0 items-center border-b border-border bg-muted/30">
<div class="scrollbar-hide flex h-full min-w-0 flex-1 items-center overflow-x-auto">
{#each tabs as tab (tab.key)}
{@const isActive = activeKey === tab.key}
<div
class={cn(
- 'group border-border relative flex h-full shrink-0 items-center border-r',
+ 'group relative flex h-full shrink-0 items-center border-r border-border',
isActive ? 'bg-card' : 'hover:bg-accent/50'
)}
data-tab-key={tab.key}
data-active={isActive}
>
{#if isActive}
- <span class="bg-primary absolute inset-x-0 top-0 h-0.5"></span>
+ <span class="absolute inset-x-0 top-0 h-0.5 bg-primary"></span>
{/if}
<button
type="button"
@@ -51,7 +51,7 @@
<span class="max-w-40 truncate">{tab.label}</span>
{#if tab.pending}
<span
- class="bg-primary size-1.5 shrink-0 rounded-full"
+ class="size-1.5 shrink-0 rounded-full bg-primary"
role="img"
aria-label={m.common_unsaved_changes()}
title={m.common_unsaved_changes()}
@@ -61,7 +61,7 @@
<button
type="button"
class={cn(
- 'hover:bg-foreground/10 mr-1 inline-flex size-5 shrink-0 items-center justify-center rounded opacity-0 group-hover:opacity-100 focus-visible:opacity-100',
+ 'mr-1 inline-flex size-5 shrink-0 items-center justify-center rounded opacity-0 group-hover:opacity-100 hover:bg-foreground/10 focus-visible:opacity-100',
isActive && 'opacity-100'
)}
aria-label={m.common_close()}
diff --git a/frontend/src/routes/(app)/projects/components/ProjectContainersTable.svelte b/frontend/src/routes/(app)/projects/components/ProjectContainersTable.svelte
index 55c38d524..9c31c0735 100644
--- a/frontend/src/routes/(app)/projects/components/ProjectContainersTable.svelte
+++ b/frontend/src/routes/(app)/projects/components/ProjectContainersTable.svelte
@@ -316,7 +316,7 @@
{#if status}
<div class="flex items-center gap-1.5">
<Spinner class="size-3.5" />
- <span class="text-muted-foreground text-xs font-medium">
+ <span class="text-xs font-medium text-muted-foreground">
{status === 'starting'
? m.common_action_starting()
: status === 'stopping'
@@ -335,10 +335,10 @@
{#if item.health}
<div class="flex items-center gap-1.5">
<HealthIcon class="size-4 text-{getHealthColor(item.health)}-500" />
- <span class="text-muted-foreground text-sm">{capitalizeFirstLetter(item.health)}</span>
+ <span class="text-sm text-muted-foreground">{capitalizeFirstLetter(item.health)}</span>
</div>
{:else}
- <span class="text-muted-foreground text-sm">—</span>
+ <span class="text-sm text-muted-foreground">—</span>
{/if}
{/snippet}
@@ -356,7 +356,7 @@
})}
<PortBadge ports={parsedPorts} wrap={false} />
{:else}
- <span class="text-muted-foreground text-sm">—</span>
+ <span class="text-sm text-muted-foreground">—</span>
{/if}
{/snippet}
@@ -534,10 +534,10 @@
/>
{:else}
<div class="flex h-full items-center justify-center py-12">
- <Empty.Root class="bg-card/30 rounded-lg py-12 backdrop-blur-sm" role="status" aria-live="polite">
+ <Empty.Root class="rounded-lg bg-card/30 py-12 backdrop-blur-sm" role="status" aria-live="polite">
<Empty.Header>
<Empty.Media variant="icon">
- <FolderXIcon class="text-muted-foreground/40 size-10" />
+ <FolderXIcon class="size-10 text-muted-foreground/40" />
</Empty.Media>
<Empty.Title class="text-base font-medium">{m.compose_no_services_found()}</Empty.Title>
</Empty.Header>
diff --git a/frontend/src/routes/(app)/projects/components/ProjectFileTreePanel.svelte b/frontend/src/routes/(app)/projects/components/ProjectFileTreePanel.svelte
index 617c1a6dc..1eff3efcf 100644
--- a/frontend/src/routes/(app)/projects/components/ProjectFileTreePanel.svelte
+++ b/frontend/src/routes/(app)/projects/components/ProjectFileTreePanel.svelte
@@ -468,8 +468,8 @@
</script>
<div class="flex min-h-0 flex-1 flex-col">
- <div class="border-border flex h-9 shrink-0 items-center border-b px-2">
- <span class="text-muted-foreground text-[11px] font-semibold tracking-wider uppercase">{m.project_files()}</span>
+ <div class="flex h-9 shrink-0 items-center border-b border-border px-2">
+ <span class="text-[11px] font-semibold tracking-wider text-muted-foreground uppercase">{m.project_files()}</span>
{#if canManageFiles}
<div class="ml-auto flex items-center gap-0.5">
<Tooltip.Root>
@@ -525,7 +525,7 @@
</div>
{#if readOnlyMessage}
- <div class="text-muted-foreground border-border border-b px-3 py-2 text-xs">{readOnlyMessage}</div>
+ <div class="border-b border-border px-3 py-2 text-xs text-muted-foreground">{readOnlyMessage}</div>
{/if}
<div class="min-h-0 flex-1 overflow-auto">
@@ -533,7 +533,7 @@
<button
type="button"
class={cn(
- 'hover:bg-accent flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-[13px]',
+ 'flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-[13px] hover:bg-accent',
selectedFile === 'compose' && 'bg-accent'
)}
onclick={() => onSelect('compose')}
@@ -544,7 +544,7 @@
<FileTextIcon class="size-4 shrink-0 text-blue-500" />
<span class="min-w-0 flex-1 truncate">{composeFileName}</span>
<span class="inline-flex size-6 shrink-0 items-center justify-center">
- <LockIcon class="text-muted-foreground size-3.5 shrink-0" aria-label={m.project_file_protected()} />
+ <LockIcon class="size-3.5 shrink-0 text-muted-foreground" aria-label={m.project_file_protected()} />
</span>
</button>
@@ -552,7 +552,7 @@
<button
type="button"
class={cn(
- 'hover:bg-accent flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-[13px]',
+ 'flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-[13px] hover:bg-accent',
selectedFile === 'override' && 'bg-accent'
)}
onclick={() => onSelect('override')}
@@ -563,13 +563,13 @@
<FileTextIcon class="size-4 shrink-0 text-purple-500" />
<span class="min-w-0 flex-1 truncate">{overrideFileName}</span>
<span class="inline-flex size-6 shrink-0 items-center justify-center">
- <LockIcon class="text-muted-foreground size-3.5 shrink-0" aria-label={m.project_file_protected()} />
+ <LockIcon class="size-3.5 shrink-0 text-muted-foreground" aria-label={m.project_file_protected()} />
</span>
</button>
{:else if onAddOverride}
<button
type="button"
- class="text-muted-foreground hover:bg-accent hover:text-foreground flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-[13px]"
+ class="flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-[13px] text-muted-foreground hover:bg-accent hover:text-foreground"
onclick={() => onAddOverride?.()}
>
{#if hasDirectories}
@@ -583,7 +583,7 @@
<button
type="button"
class={cn(
- 'hover:bg-accent flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-[13px]',
+ 'flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-[13px] hover:bg-accent',
selectedFile === 'env' && 'bg-accent'
)}
onclick={() => onSelect('env')}
@@ -594,19 +594,19 @@
<FileTextIcon class="size-4 shrink-0 text-green-500" />
<span class="min-w-0 flex-1 truncate">.env</span>
<span class="inline-flex size-6 shrink-0 items-center justify-center">
- <LockIcon class="text-muted-foreground size-3.5 shrink-0" aria-label={m.project_file_protected()} />
+ <LockIcon class="size-3.5 shrink-0 text-muted-foreground" aria-label={m.project_file_protected()} />
</span>
</button>
{#if rows.length === 0}
{#if canManageFiles}
- <div class="text-muted-foreground px-7 py-3 text-xs">{m.project_files_empty()}</div>
+ <div class="px-7 py-3 text-xs text-muted-foreground">{m.project_files_empty()}</div>
{/if}
{:else}
{#each rows as row (row.relativePath)}
<div
class={cn(
- 'group hover:bg-accent flex w-full items-center gap-1.5 rounded-md px-2 py-0.5 text-[13px]',
+ 'group flex w-full items-center gap-1.5 rounded-md px-2 py-0.5 text-[13px] hover:bg-accent',
selectedFile === `file:${row.relativePath}` && 'bg-accent'
)}
style={`padding-left: ${0.5 + row.depth * 1}rem`}
@@ -614,7 +614,7 @@
{#if row.isDirectory}
<button
type="button"
- class="hover:bg-muted inline-flex size-4 shrink-0 items-center justify-center rounded"
+ class="inline-flex size-4 shrink-0 items-center justify-center rounded hover:bg-muted"
aria-label={openFolders[row.relativePath]
? m.project_file_collapse_folder({ name: row.name })
: m.project_file_expand_folder({ name: row.name })}
@@ -638,12 +638,12 @@
{#if row.isDirectory}
<FolderOpenIcon class="size-4 shrink-0 text-amber-500" />
{:else}
- <FileTextIcon class="text-muted-foreground size-4 shrink-0" />
+ <FileTextIcon class="size-4 shrink-0 text-muted-foreground" />
{/if}
<span class="min-w-0 truncate">{row.name}</span>
{#if row.pending}
<span
- class="bg-primary size-1.5 shrink-0 rounded-full"
+ class="size-1.5 shrink-0 rounded-full bg-primary"
role="img"
aria-label={m.common_unsaved_changes()}
title={m.common_unsaved_changes()}
@@ -657,7 +657,7 @@
<Tooltip.Trigger>
<button
type="button"
- class="text-foreground hover:bg-foreground/10 inline-flex size-6 items-center justify-center rounded"
+ class="inline-flex size-6 items-center justify-center rounded text-foreground hover:bg-foreground/10"
aria-label={m.project_file_rename_label({ name: row.relativePath })}
{disabled}
onclick={() => openRenameDialog(row.relativePath)}
@@ -671,7 +671,7 @@
<Tooltip.Trigger>
<button
type="button"
- class="text-foreground hover:bg-foreground/10 inline-flex size-6 items-center justify-center rounded"
+ class="inline-flex size-6 items-center justify-center rounded text-foreground hover:bg-foreground/10"
aria-label={m.project_file_move_label({ name: row.relativePath })}
{disabled}
onclick={() => openMoveDialog(row.relativePath)}
@@ -685,7 +685,7 @@
<Tooltip.Trigger>
<button
type="button"
- class="text-destructive hover:bg-destructive/10 inline-flex size-6 items-center justify-center rounded"
+ class="inline-flex size-6 items-center justify-center rounded text-destructive hover:bg-destructive/10"
aria-label={m.project_file_delete_label({ name: row.relativePath })}
{disabled}
onclick={() => handleDelete(row)}
@@ -767,7 +767,7 @@
{#if option.relativePath && option.hasChildren}
<button
type="button"
- class="hover:bg-muted inline-flex size-4 shrink-0 items-center justify-center rounded"
+ class="inline-flex size-4 shrink-0 items-center justify-center rounded hover:bg-muted"
aria-label={destinationOpenFolders[option.relativePath]
? m.project_file_collapse_folder({ name: option.label })
: m.project_file_expand_folder({ name: option.label })}
@@ -796,7 +796,7 @@
<span class="min-w-0 flex-1 truncate">{option.label}</span>
</button>
{#if option.reason}
- <span class="text-muted-foreground shrink-0 text-xs">{option.reason}</span>
+ <span class="shrink-0 text-xs text-muted-foreground">{option.reason}</span>
{/if}
</div>
{/each}
@@ -805,7 +805,7 @@
{/if}
{#if dialogError}
- <p class="text-destructive text-sm">{dialogError}</p>
+ <p class="text-sm text-destructive">{dialogError}</p>
{/if}
<Dialog.Footer>
diff --git a/frontend/src/routes/(app)/projects/new/+page.svelte b/frontend/src/routes/(app)/projects/new/+page.svelte
index 2d1fe709f..b6e003a91 100644
--- a/frontend/src/routes/(app)/projects/new/+page.svelte
+++ b/frontend/src/routes/(app)/projects/new/+page.svelte
@@ -306,7 +306,7 @@
}
</script>
-<div class="bg-background flex h-full min-h-0 flex-col">
+<div class="flex h-full min-h-0 flex-col bg-background">
<div class="sticky top-0 mb-2 border-b">
<div class="mx-auto flex h-16 max-w-full items-center justify-between gap-4 px-6">
<div class="flex items-center gap-4">
@@ -319,7 +319,7 @@
icon={ArrowLeftIcon}
customLabel={m.common_back()}
/>
- <div class="bg-border hidden h-4 w-px sm:block"></div>
+ <div class="hidden h-4 w-px bg-border sm:block"></div>
<div class="hidden items-center gap-3 sm:flex">
<EditableName
bind:value={$inputs.name.value}
@@ -400,7 +400,7 @@
<div class="flex shrink-0 items-center justify-end gap-2">
<label
for="new-project-layout-mode-toggle"
- class="text-muted-foreground cursor-pointer text-xs"
+ class="cursor-pointer text-xs text-muted-foreground"
title={m.project_view_description()}
>
{m.workspace()}
@@ -417,7 +417,7 @@
</div>
{#if layoutMode === 'tree'}
- <div class="bg-card border-border flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border">
+ <div class="flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border border-border bg-card">
<ResizableSplit
class="min-h-0 flex-1"
{...composeTreeSplitProps}
diff --git a/frontend/src/routes/(app)/projects/projects-table.helpers.ts b/frontend/src/routes/(app)/projects/projects-table.helpers.ts
index d2f58e79e..cdcc1a350 100644
--- a/frontend/src/routes/(app)/projects/projects-table.helpers.ts
+++ b/frontend/src/routes/(app)/projects/projects-table.helpers.ts
@@ -1,2 +1,10 @@
export type ActionStatus =
- 'starting' | 'stopping' | 'restarting' | 'redeploying' | 'archiving' | 'unarchiving' | 'destroying' | 'syncing' | '';
+ | 'starting'
+ | 'stopping'
+ | 'restarting'
+ | 'redeploying'
+ | 'archiving'
+ | 'unarchiving'
+ | 'destroying'
+ | 'syncing'
+ | '';
diff --git a/frontend/src/routes/(app)/projects/projects-table.svelte b/frontend/src/routes/(app)/projects/projects-table.svelte
index 793555988..9b73c5b72 100644
--- a/frontend/src/routes/(app)/projects/projects-table.svelte
+++ b/frontend/src/routes/(app)/projects/projects-table.svelte
@@ -238,13 +238,13 @@
/>
<a class="font-medium hover:underline" href="/projects/{item.id}">{item.name}</a>
{#if item.isArchived}
- <span class="bg-muted text-muted-foreground rounded px-1.5 py-0.5 text-xs font-medium">{m.projects_archived_badge()}</span>
+ <span class="rounded bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground">{m.projects_archived_badge()}</span>
{/if}
</div>
{/snippet}
{#snippet DirectoryCell({ item }: { item: Project })}
- <span class="text-muted-foreground block max-w-[22rem] truncate">{item.relativePath ?? item.dirName ?? item.path}</span>
+ <span class="block max-w-[22rem] truncate text-muted-foreground">{item.relativePath ?? item.dirName ?? item.path}</span>
{/snippet}
{#snippet ProviderCell({ item }: { item: Project })}
@@ -525,7 +525,7 @@
{#snippet ArchivedToolbarAction()}
<div
- class="bg-muted/30 border-border/60 flex min-h-9 w-full items-center gap-2 rounded-md border px-2.5 py-1.5 md:w-auto md:border-0 md:bg-transparent md:px-1 md:py-0"
+ class="flex min-h-9 w-full items-center gap-2 rounded-md border border-border/60 bg-muted/30 px-2.5 py-1.5 md:w-auto md:border-0 md:bg-transparent md:px-1 md:py-0"
>
<Switch
id="projects-show-archived"
@@ -534,7 +534,7 @@
void onToggleArchived?.(checked === true);
}}
/>
- <Label for="projects-show-archived" class="text-muted-foreground mb-0 min-w-0 text-sm font-medium">
+ <Label for="projects-show-archived" class="mb-0 min-w-0 text-sm font-medium text-muted-foreground">
{m.projects_show_archived()}
</Label>
</div>
diff --git a/frontend/src/routes/(app)/settings/+layout.svelte b/frontend/src/routes/(app)/settings/+layout.svelte
index 15780c821..6a5ce888c 100644
--- a/frontend/src/routes/(app)/settings/+layout.svelte
+++ b/frontend/src/routes/(app)/settings/+layout.svelte
@@ -91,7 +91,7 @@
action="base"
tone="ghost"
onclick={goBackToSettings}
- class="text-muted-foreground hover:text-foreground shrink-0 gap-2"
+ class="shrink-0 gap-2 text-muted-foreground hover:text-foreground"
icon={ArrowLeftIcon}
customLabel={m.common_back()}
showLabel={!isMobile.current}
@@ -102,12 +102,12 @@
action="base"
tone="ghost"
onclick={goBackToSettings}
- class="text-muted-foreground hover:text-foreground shrink-0 gap-2"
+ class="shrink-0 gap-2 text-muted-foreground hover:text-foreground"
icon={SettingsIcon}
customLabel={m.settings_title()}
/>
- <ArrowRightIcon class="text-muted-foreground size-4 shrink-0" />
- <span class="text-foreground truncate font-medium">{pageTitle}</span>
+ <ArrowRightIcon class="size-4 shrink-0 text-muted-foreground" />
+ <span class="truncate font-medium text-foreground">{pageTitle}</span>
</nav>
</div>
</div>
diff --git a/frontend/src/routes/(app)/settings/activity/+page.svelte b/frontend/src/routes/(app)/settings/activity/+page.svelte
index 4df534121..cc953a64e 100644
--- a/frontend/src/routes/(app)/settings/activity/+page.svelte
+++ b/frontend/src/routes/(app)/settings/activity/+page.svelte
@@ -47,12 +47,12 @@
<fieldset disabled={isReadOnly} class="relative space-y-8">
<div class="space-y-4">
<h3 class="text-lg font-medium">{m.activity_history_section_title()}</h3>
- <div class="bg-card rounded-lg border shadow-sm">
+ <div class="rounded-lg border bg-card shadow-sm">
<div class="space-y-6 p-6">
<div class="grid gap-4 md:grid-cols-[1fr_1.5fr] md:gap-8">
<div>
<Label class="text-base">{m.activity_history_retention_days()}</Label>
- <p class="text-muted-foreground mt-1 text-sm">{m.activity_history_retention_days_description()}</p>
+ <p class="mt-1 text-sm text-muted-foreground">{m.activity_history_retention_days_description()}</p>
</div>
<div class="max-w-xs">
<TextInputWithLabel
@@ -70,7 +70,7 @@
<div class="grid gap-4 md:grid-cols-[1fr_1.5fr] md:gap-8">
<div>
<Label class="text-base">{m.activity_history_max_entries()}</Label>
- <p class="text-muted-foreground mt-1 text-sm">{m.activity_history_max_entries_description()}</p>
+ <p class="mt-1 text-sm text-muted-foreground">{m.activity_history_max_entries_description()}</p>
</div>
<div class="max-w-xs">
<TextInputWithLabel
diff --git a/frontend/src/routes/(app)/settings/api-keys/+page.svelte b/frontend/src/routes/(app)/settings/api-keys/+page.svelte
index 07a18581a..3abc906fb 100644
--- a/frontend/src/routes/(app)/settings/api-keys/+page.svelte
+++ b/frontend/src/routes/(app)/settings/api-keys/+page.svelte
@@ -152,8 +152,8 @@
>
{#snippet children()}
<div class="space-y-4 py-4">
- <div class="bg-muted rounded-lg p-4">
- <p class="text-muted-foreground mb-2 text-sm font-medium">{m.api_key_your_key()}</p>
+ <div class="rounded-lg bg-muted p-4">
+ <p class="mb-2 text-sm font-medium text-muted-foreground">{m.api_key_your_key()}</p>
<Snippet
text={newlyCreatedKey?.key || ''}
onCopy={(status) => {
diff --git a/frontend/src/routes/(app)/settings/api-keys/api-key-table.svelte b/frontend/src/routes/(app)/settings/api-keys/api-key-table.svelte
index ddb0a209c..74776dd7b 100644
--- a/frontend/src/routes/(app)/settings/api-keys/api-key-table.svelte
+++ b/frontend/src/routes/(app)/settings/api-keys/api-key-table.svelte
@@ -183,7 +183,7 @@
{#snippet KeyPrefixCell({ item }: { item: ApiKey })}
<div class="flex items-center gap-2">
- <code class="bg-muted rounded px-2 py-1 text-xs">{item.keyPrefix}...</code>
+ <code class="rounded bg-muted px-2 py-1 text-xs">{item.keyPrefix}...</code>
<CopyButton text={item.keyPrefix} class="size-6" />
</div>
{/snippet}
diff --git a/frontend/src/routes/(app)/settings/appearance/+page.svelte b/frontend/src/routes/(app)/settings/appearance/+page.svelte
index 5a0bf1e1c..8de6366e4 100644
--- a/frontend/src/routes/(app)/settings/appearance/+page.svelte
+++ b/frontend/src/routes/(app)/settings/appearance/+page.svelte
@@ -161,7 +161,7 @@
<!-- Appearance Section -->
<div class="space-y-4">
<h3 class="text-base font-semibold">{m.appearance_title()}</h3>
- <div class="divide-border/40 divide-y [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
+ <div class="divide-y divide-border/40 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
<!-- Application Theme -->
<SettingsRow label={m.application_theme()} description={m.application_theme_description()}>
<ApplicationThemePicker
@@ -226,7 +226,7 @@
aria-invalid={Boolean($formInputs.avatarMaxUploadSizeMb.error)}
/>
{#if $formInputs.avatarMaxUploadSizeMb.error}
- <p class="text-destructive text-xs font-medium">{$formInputs.avatarMaxUploadSizeMb.error}</p>
+ <p class="text-xs font-medium text-destructive">{$formInputs.avatarMaxUploadSizeMb.error}</p>
{/if}
</div>
</SettingsRow>
@@ -236,7 +236,7 @@
<LocalePicker
inline={true}
id="appearanceLocalePicker"
- class="border-border/30 text-foreground h-9 w-32 text-sm font-medium"
+ class="h-9 w-32 border-border/30 text-sm font-medium text-foreground"
/>
</SettingsRow>
@@ -258,9 +258,9 @@
<SettingsRow label={m.oled_mode()} description={m.oled_mode_description()} layout="inline">
{#snippet helpText()}
{#if !isDefaultApplicationTheme}
- <p class="text-muted-foreground/70 mt-1 text-xs italic">{m.oled_mode_requires_default_theme()}</p>
+ <p class="mt-1 text-xs text-muted-foreground/70 italic">{m.oled_mode_requires_default_theme()}</p>
{:else if !isDarkMode}
- <p class="text-muted-foreground/70 mt-1 text-xs italic">{m.oled_mode_requires_dark()}</p>
+ <p class="mt-1 text-xs text-muted-foreground/70 italic">{m.oled_mode_requires_dark()}</p>
{/if}
{/snippet}
<Switch
@@ -294,7 +294,7 @@
<!-- Desktop Sidebar Section -->
<div class="space-y-4">
<h3 class="text-base font-semibold">{m.navigation_desktop_sidebar_title()}</h3>
- <div class="divide-border/40 divide-y [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
+ <div class="divide-y divide-border/40 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
<SettingsRow
label={m.navigation_sidebar_hover_expansion_label()}
description={m.navigation_sidebar_hover_expansion_description()}
@@ -334,10 +334,10 @@
<!-- Mobile Appearance Section -->
<div class="space-y-4">
<h3 class="text-base font-semibold">{m.navigation_mobile_appearance_title()}</h3>
- <div class="divide-border/40 divide-y [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
+ <div class="divide-y divide-border/40 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
<!-- Navigation Mode -->
<SettingsRow label={m.navigation_mode_label()} description={m.navigation_mode_description()}>
- <div class="bg-muted/40 inline-flex rounded-lg p-0.5">
+ <div class="inline-flex rounded-lg bg-muted/40 p-0.5">
<button
type="button"
disabled={isReadOnly && modeSegment !== 'default'}
@@ -384,7 +384,7 @@
<!-- Show Labels -->
<SettingsRow label={m.navigation_show_labels_label()} description={m.navigation_show_labels_description()}>
- <div class="bg-muted/40 inline-flex rounded-lg p-0.5">
+ <div class="inline-flex rounded-lg bg-muted/40 p-0.5">
<button
type="button"
disabled={isReadOnly && labelsSegment !== 'default'}
diff --git a/frontend/src/routes/(app)/settings/authentication/+page.svelte b/frontend/src/routes/(app)/settings/authentication/+page.svelte
index 5e2549e82..da71766d9 100644
--- a/frontend/src/routes/(app)/settings/authentication/+page.svelte
+++ b/frontend/src/routes/(app)/settings/authentication/+page.svelte
@@ -337,7 +337,7 @@
</Alert.Description>
</Alert.Root>
{:else}
- <div class="divide-border/40 divide-y [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
+ <div class="divide-y divide-border/40 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
<SettingsRow
label={m.security_local_auth_label()}
description={m.security_local_auth_description()}
@@ -389,7 +389,7 @@
/>
{#if showOidcDetails}
<Collapsible.Trigger
- class="text-muted-foreground hover:text-foreground hover:bg-muted/50 inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium transition-colors"
+ class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground"
>
<span>{oidcConfigOpen ? m.common_hide() : m.common_show()} {m.common_configuration()}</span>
<ArrowDownIcon class={cn('size-3.5 transition-transform', oidcConfigOpen && 'rotate-180')} />
@@ -400,7 +400,7 @@
{#if showOidcDetails}
<Collapsible.Content class="mt-4">
- <div class="border-border/60 space-y-5 border-l-2 pl-5">
+ <div class="space-y-5 border-l-2 border-border/60 pl-5">
<div class="grid gap-5 sm:grid-cols-2">
<TextInputWithLabel
id="oidcClientId"
@@ -472,7 +472,7 @@
helpText={m.oidc_groups_claim_help()}
/>
- <div class="divide-border/40 divide-y pt-2 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
+ <div class="divide-y divide-border/40 pt-2 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
<SettingsRow
label={m.security_oidc_merge_accounts_label()}
description={m.security_oidc_merge_accounts_description()}
@@ -511,14 +511,14 @@
</SettingsRow>
</div>
- <div class="bg-muted/30 rounded-lg border p-4">
+ <div class="rounded-lg border bg-muted/30 p-4">
<div class="mb-2 flex items-center gap-2">
<InfoIcon class="size-4 text-blue-600" />
<span class="text-sm font-medium">{m.oidc_redirect_uri_title()}</span>
</div>
- <p class="text-muted-foreground mb-3 text-sm">{m.oidc_redirect_uri_description()}</p>
+ <p class="mb-3 text-sm text-muted-foreground">{m.oidc_redirect_uri_description()}</p>
<div class="flex items-center gap-2">
- <code class="bg-muted flex-1 rounded p-2 font-mono text-xs break-all">{redirectUri}</code>
+ <code class="flex-1 rounded bg-muted p-2 font-mono text-xs break-all">{redirectUri}</code>
<CopyButton text={redirectUri} size="sm" variant="outline" class="shrink-0" title={m.common_copy()} />
</div>
</div>
@@ -529,11 +529,11 @@
</div>
<IfPermitted adminOnly>
- <div class="border-border/40 space-y-4 border-t pt-6">
+ <div class="space-y-4 border-t border-border/40 pt-6">
<div class="flex items-start justify-between gap-4">
<div>
<h4 class="text-sm font-semibold">{m.oidc_role_mappings_title()}</h4>
- <p class="text-muted-foreground mt-0.5 text-xs">{m.oidc_role_mappings_description()}</p>
+ <p class="mt-0.5 text-xs text-muted-foreground">{m.oidc_role_mappings_description()}</p>
</div>
<ArcaneButton
action="create"
@@ -552,8 +552,8 @@
onEdit={openEditMapping}
/>
{:else}
- <div class="border-border/40 bg-muted/20 rounded-lg border border-dashed p-6 text-center">
- <p class="text-muted-foreground text-sm">{m.oidc_mappings_empty_body()}</p>
+ <div class="rounded-lg border border-dashed border-border/40 bg-muted/20 p-6 text-center">
+ <p class="text-sm text-muted-foreground">{m.oidc_mappings_empty_body()}</p>
</div>
{/if}
</div>
diff --git a/frontend/src/routes/(app)/settings/authentication/federated-credential-table.svelte b/frontend/src/routes/(app)/settings/authentication/federated-credential-table.svelte
index 0d3b67351..3e37a5885 100644
--- a/frontend/src/routes/(app)/settings/authentication/federated-credential-table.svelte
+++ b/frontend/src/routes/(app)/settings/authentication/federated-credential-table.svelte
@@ -167,13 +167,13 @@
{/snippet}
{#snippet IssuerCell({ item }: { item: FederatedCredential })}
- <span class="text-muted-foreground max-w-[18rem] truncate">{item.issuerUrl}</span>
+ <span class="max-w-[18rem] truncate text-muted-foreground">{item.issuerUrl}</span>
{/snippet}
{#snippet SubjectCell({ item }: { item: FederatedCredential })}
<div class="flex flex-col gap-0.5">
<span class="font-mono text-xs">{item.subjectMatch}</span>
- <span class="text-muted-foreground text-xs">{item.subjectClaim} / {item.matchType}</span>
+ <span class="text-xs text-muted-foreground">{item.subjectClaim} / {item.matchType}</span>
</div>
{/snippet}
diff --git a/frontend/src/routes/(app)/settings/authentication/federated-credentials-tab.svelte b/frontend/src/routes/(app)/settings/authentication/federated-credentials-tab.svelte
index c88cec2f0..1e648ffde 100644
--- a/frontend/src/routes/(app)/settings/authentication/federated-credentials-tab.svelte
+++ b/frontend/src/routes/(app)/settings/authentication/federated-credentials-tab.svelte
@@ -120,7 +120,7 @@ steps:
<div class="flex items-start justify-between gap-4">
<div>
<h3 class="text-base font-semibold">{m.federated_credential_page_title()}</h3>
- <p class="text-muted-foreground mt-1 text-sm">{m.federated_credential_page_description()}</p>
+ <p class="mt-1 text-sm text-muted-foreground">{m.federated_credential_page_description()}</p>
</div>
<IfPermitted adminOnly>
<ArcaneButton
@@ -168,8 +168,8 @@ steps:
contentClass="!max-w-2xl"
>
<div class="space-y-4 py-4">
- <div class="bg-muted rounded-lg p-4">
- <p class="text-muted-foreground mb-2 text-sm font-medium">
+ <div class="rounded-lg bg-muted p-4">
+ <p class="mb-2 text-sm font-medium text-muted-foreground">
{m.federated_credential_instructions_snippet_label()}
</p>
<Snippet
@@ -188,8 +188,8 @@ steps:
</ResponsiveDialog.Root>
{#snippet fallback()}
- <div class="border-border/40 bg-muted/20 rounded-lg border border-dashed p-6 text-center">
- <p class="text-muted-foreground text-sm">{m.no_access_page_body()}</p>
+ <div class="rounded-lg border border-dashed border-border/40 bg-muted/20 p-6 text-center">
+ <p class="text-sm text-muted-foreground">{m.no_access_page_body()}</p>
</div>
{/snippet}
</IfPermitted>
diff --git a/frontend/src/routes/(app)/settings/authentication/oidc-mapping-table.svelte b/frontend/src/routes/(app)/settings/authentication/oidc-mapping-table.svelte
index 3bb5371d8..be75ea2a7 100644
--- a/frontend/src/routes/(app)/settings/authentication/oidc-mapping-table.svelte
+++ b/frontend/src/routes/(app)/settings/authentication/oidc-mapping-table.svelte
@@ -151,7 +151,7 @@
{#snippet ClaimCell({ item }: { item: OidcRoleMapping })}
<div class="flex items-center gap-2">
- <code class="bg-muted rounded px-2 py-1 text-xs">{item.claimValue}</code>
+ <code class="rounded bg-muted px-2 py-1 text-xs">{item.claimValue}</code>
{#if item.source === 'env'}
<Badge variant="amber" size="sm">ENV</Badge>
{/if}
diff --git a/frontend/src/routes/(app)/settings/builds/+page.svelte b/frontend/src/routes/(app)/settings/builds/+page.svelte
index 53e9d391b..050ad4b70 100644
--- a/frontend/src/routes/(app)/settings/builds/+page.svelte
+++ b/frontend/src/routes/(app)/settings/builds/+page.svelte
@@ -118,7 +118,7 @@
options={providerOptions}
/>
{#if !depotCredentialsPresent && !depotConfigured}
- <p class="text-muted-foreground mt-2 text-xs">{m.build_settings_depot_enable_hint()}</p>
+ <p class="mt-2 text-xs text-muted-foreground">{m.build_settings_depot_enable_hint()}</p>
{/if}
</div>
<TextInputWithLabel
diff --git a/frontend/src/routes/(app)/settings/diagnostics/+page.svelte b/frontend/src/routes/(app)/settings/diagnostics/+page.svelte
index 9775daebc..a53dff217 100644
--- a/frontend/src/routes/(app)/settings/diagnostics/+page.svelte
+++ b/frontend/src/routes/(app)/settings/diagnostics/+page.svelte
@@ -198,30 +198,30 @@
{#snippet row(label: string, value: string | number)}
<div class="flex items-center justify-between gap-4 py-1.5">
- <span class="text-muted-foreground text-sm">{label}</span>
+ <span class="text-sm text-muted-foreground">{label}</span>
<span class="text-sm font-medium tabular-nums">{value}</span>
</div>
{/snippet}
{#snippet sectionHeader(title: string, Icon: typeof ActivityIcon)}
<div class="mb-3 flex items-center gap-2">
- <Icon class="text-muted-foreground size-4" />
+ <Icon class="size-4 text-muted-foreground" />
<h2 class="text-sm font-semibold tracking-tight">{title}</h2>
</div>
{/snippet}
<div class="px-2 py-4 sm:px-6 sm:py-6 lg:px-8">
<!-- Header -->
- <div class="border-border/50 flex flex-wrap items-center justify-between gap-4 border-b pb-4 sm:pb-6">
+ <div class="flex flex-wrap items-center justify-between gap-4 border-b border-border/50 pb-4 sm:pb-6">
<div class="flex items-start gap-3 sm:gap-4">
<div
- class="bg-primary/10 text-primary ring-primary/20 flex size-9 shrink-0 items-center justify-center rounded-lg ring-1 sm:size-10"
+ class="flex size-9 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary ring-1 ring-primary/20 sm:size-10"
>
<ActivityIcon class="size-4 sm:size-5" />
</div>
<div>
<h1 class="text-xl font-semibold tracking-tight sm:text-2xl">{m.diagnostics_title()}</h1>
- <p class="text-muted-foreground mt-1 text-sm">{m.diagnostics_description()}</p>
+ <p class="mt-1 text-sm text-muted-foreground">{m.diagnostics_description()}</p>
</div>
</div>
@@ -232,7 +232,7 @@
></span>
{paused ? m.diagnostics_status_paused() : connected ? m.diagnostics_status_live() : m.diagnostics_status_connecting()}
</span>
- <span class="text-muted-foreground hidden text-xs tabular-nums sm:inline"
+ <span class="hidden text-xs text-muted-foreground tabular-nums sm:inline"
>{m.diagnostics_updated_ago({ ago: agoText })}</span
>
<ArcaneButton
@@ -254,7 +254,7 @@
</div>
{#if error}
- <div class="border-destructive/40 bg-destructive/10 text-destructive mt-4 rounded-lg border px-3 py-2 text-sm">
+ <div class="mt-4 rounded-lg border border-destructive/40 bg-destructive/10 px-3 py-2 text-sm text-destructive">
{error}
</div>
{/if}
@@ -304,7 +304,7 @@
<!-- Runtime -->
<section>
{@render sectionHeader(m.diagnostics_section_runtime(), CpuIcon)}
- <div class="divide-border/40 divide-y">
+ <div class="divide-y divide-border/40">
{@render row(m.diagnostics_runtime_go_version(), diag.runtime.goVersion)}
{@render row(m.diagnostics_runtime_platform(), `${diag.runtime.os}/${diag.runtime.arch}`)}
{@render row(m.diagnostics_runtime_gomaxprocs(), diag.runtime.gomaxprocs)}
@@ -320,12 +320,12 @@
<section>
{@render sectionHeader(m.diagnostics_section_memory(), MemoryStickIcon)}
{#if heapBar}
- <div class="bg-muted/40 mb-3 flex h-2.5 overflow-hidden rounded-full">
+ <div class="mb-3 flex h-2.5 overflow-hidden rounded-full bg-muted/40">
<div class="bg-violet-500" style="width: {heapBar.inuse}%" title={m.diagnostics_mem_in_use()}></div>
<div class="bg-violet-500/40" style="width: {heapBar.idle}%" title={m.diagnostics_mem_idle()}></div>
<div class="bg-zinc-500/40" style="width: {heapBar.released}%" title={m.diagnostics_mem_released()}></div>
</div>
- <div class="text-muted-foreground mb-2 flex flex-wrap gap-x-4 gap-y-1 text-[11px]">
+ <div class="mb-2 flex flex-wrap gap-x-4 gap-y-1 text-[11px] text-muted-foreground">
<span
><span class="mr-1 inline-block size-2 rounded-full bg-violet-500"></span>{m.diagnostics_mem_in_use()}
{fmtBytes(diag.memory.heapInuse)}</span
@@ -340,7 +340,7 @@
>
</div>
{/if}
- <div class="divide-border/40 divide-y">
+ <div class="divide-y divide-border/40">
{@render row(m.diagnostics_mem_heap_alloc(), fmtBytes(diag.memory.heapAlloc))}
{@render row(m.diagnostics_mem_heap_sys(), fmtBytes(diag.memory.heapSys))}
{@render row(m.diagnostics_mem_heap_objects(), fmtNum(diag.memory.heapObjects))}
@@ -355,7 +355,7 @@
<!-- GC -->
<section>
{@render sectionHeader(m.diagnostics_section_gc(), RefreshIcon)}
- <div class="divide-border/40 divide-y">
+ <div class="divide-y divide-border/40">
{@render row(m.diagnostics_gc_total_cycles(), fmtNum(diag.gc.numGc))}
{@render row(m.diagnostics_gc_forced_cycles(), fmtNum(diag.memory.numForcedGc))}
{@render row(m.diagnostics_gc_total_pause(), fmtMs(diag.gc.pauseTotalNs))}
@@ -363,11 +363,11 @@
</div>
{#if diag.gc.recentPausesNs?.length}
<div class="mt-3">
- <div class="text-muted-foreground mb-1 text-[11px]">{m.diagnostics_gc_recent_pauses()}</div>
+ <div class="mb-1 text-[11px] text-muted-foreground">{m.diagnostics_gc_recent_pauses()}</div>
<div class="flex h-12 items-end gap-0.5">
{#each diag.gc.recentPausesNs as p, i (i)}
<div
- class="bg-amber-500/70 flex-1 rounded-sm"
+ class="flex-1 rounded-sm bg-amber-500/70"
style="height: {maxPause ? Math.max(4, (p / maxPause) * 100) : 4}%"
title={fmtMs(p)}
></div>
@@ -380,7 +380,7 @@
<!-- WebSocket -->
<section>
{@render sectionHeader(m.diagnostics_section_websocket(), ConnectionIcon)}
- <div class="divide-border/40 divide-y">
+ <div class="divide-y divide-border/40">
{@render row(m.diagnostics_ws_project_logs(), fmtNum(diag.websocket.snapshot.projectLogsActive))}
{@render row(m.diagnostics_ws_container_logs(), fmtNum(diag.websocket.snapshot.containerLogsActive))}
{@render row(m.diagnostics_ws_container_stats(), fmtNum(diag.websocket.snapshot.containerStats))}
@@ -395,9 +395,9 @@
{#if diag.websocket.connections?.length}
<section class="mt-8">
{@render sectionHeader(m.diagnostics_section_connections({ count: diag.websocket.connections.length }), ConnectionIcon)}
- <div class="border-border/60 overflow-x-auto rounded-xl border">
+ <div class="overflow-x-auto rounded-xl border border-border/60">
<table class="w-full text-left text-sm">
- <thead class="bg-muted/30 text-muted-foreground text-xs">
+ <thead class="bg-muted/30 text-xs text-muted-foreground">
<tr>
<th class="px-3 py-2 font-medium">{m.diagnostics_conn_kind()}</th>
<th class="px-3 py-2 font-medium">{m.diagnostics_conn_resource()}</th>
@@ -406,14 +406,14 @@
<th class="px-3 py-2 font-medium">{m.diagnostics_conn_since()}</th>
</tr>
</thead>
- <tbody class="divide-border/40 divide-y">
+ <tbody class="divide-y divide-border/40">
{#each diag.websocket.connections as c (c.id)}
<tr class="hover:bg-muted/20">
<td class="px-3 py-2">{wsKindLabels[c.kind] ?? c.kind}</td>
- <td class="text-muted-foreground px-3 py-2 font-mono text-xs">{c.resourceId || '—'}</td>
- <td class="text-muted-foreground px-3 py-2 font-mono text-xs">{c.clientIp || '—'}</td>
- <td class="text-muted-foreground px-3 py-2 text-xs">{c.userId || '—'}</td>
- <td class="text-muted-foreground px-3 py-2 text-xs tabular-nums">
+ <td class="px-3 py-2 font-mono text-xs text-muted-foreground">{c.resourceId || '—'}</td>
+ <td class="px-3 py-2 font-mono text-xs text-muted-foreground">{c.clientIp || '—'}</td>
+ <td class="px-3 py-2 text-xs text-muted-foreground">{c.userId || '—'}</td>
+ <td class="px-3 py-2 text-xs text-muted-foreground tabular-nums">
{c.startedAt ? formatTime(c.startedAt) : '—'}
</td>
</tr>
@@ -438,14 +438,14 @@
{@const name = d.id as 'goroutine' | 'heap'}
<Collapsible.Root open={dumpOpen[name]} onOpenChange={(o: boolean) => onDumpToggle(name, o)}>
<Collapsible.Trigger
- class="border-border/60 bg-card/40 hover:bg-muted/30 flex w-full items-center justify-between rounded-lg border px-3 py-2 text-sm font-medium"
+ class="flex w-full items-center justify-between rounded-lg border border-border/60 bg-card/40 px-3 py-2 text-sm font-medium hover:bg-muted/30"
>
{d.label}
<ArrowDownIcon class={cn('size-4 transition-transform', dumpOpen[name] && '-rotate-180')} />
</Collapsible.Trigger>
<Collapsible.Content>
<pre
- class="border-border/60 bg-background mt-1 max-h-96 overflow-auto rounded-lg border p-3 font-mono text-[11px] leading-relaxed">{dumpLoading[
+ class="mt-1 max-h-96 overflow-auto rounded-lg border border-border/60 bg-background p-3 font-mono text-[11px] leading-relaxed">{dumpLoading[
name
]
? m.diagnostics_dump_loading()
@@ -459,7 +459,7 @@
<!-- Profiles -->
<section class="mt-8 pb-8">
{@render sectionHeader(m.diagnostics_section_profiles(), DownloadIcon)}
- <p class="text-muted-foreground mb-3 text-sm">{m.diagnostics_profiles_hint()}</p>
+ <p class="mb-3 text-sm text-muted-foreground">{m.diagnostics_profiles_hint()}</p>
<div class="flex flex-wrap gap-2">
{#each profiles as p (p.id)}
<ArcaneButton
@@ -476,6 +476,6 @@
</div>
</section>
{:else if !error}
- <div class="text-muted-foreground py-16 text-center text-sm">{m.diagnostics_loading()}</div>
+ <div class="py-16 text-center text-sm text-muted-foreground">{m.diagnostics_loading()}</div>
{/if}
</div>
diff --git a/frontend/src/routes/(app)/settings/diagnostics/diagnostic-log-panel.svelte b/frontend/src/routes/(app)/settings/diagnostics/diagnostic-log-panel.svelte
index 5aa72342e..1c26bc1bf 100644
--- a/frontend/src/routes/(app)/settings/diagnostics/diagnostic-log-panel.svelte
+++ b/frontend/src/routes/(app)/settings/diagnostics/diagnostic-log-panel.svelte
@@ -85,18 +85,18 @@
onDestroy(() => ws?.close());
</script>
-<div class="border-border/60 overflow-hidden rounded-xl border">
- <div class="border-border/60 bg-muted/30 flex flex-wrap items-center gap-2 border-b px-3 py-2">
+<div class="overflow-hidden rounded-xl border border-border/60">
+ <div class="flex flex-wrap items-center gap-2 border-b border-border/60 bg-muted/30 px-3 py-2">
<span class="flex items-center gap-1.5 text-xs font-medium">
<span class={cn('size-2 rounded-full', connected ? 'bg-emerald-500' : 'bg-zinc-500')}></span>
{connected ? m.diagnostics_logs_streaming() : m.diagnostics_logs_disconnected()}
</span>
- <span class="text-muted-foreground text-xs tabular-nums">{m.diagnostics_logs_count({ count: filtered.length })}</span>
+ <span class="text-xs text-muted-foreground tabular-nums">{m.diagnostics_logs_count({ count: filtered.length })}</span>
<div class="ml-auto flex items-center gap-2">
<select
bind:value={levelFilter}
- class="border-border/60 bg-background h-7 rounded-md border px-2 text-xs"
+ class="h-7 rounded-md border border-border/60 bg-background px-2 text-xs"
aria-label={m.diagnostics_logs_all_levels()}
>
<option value="all">{m.diagnostics_logs_all_levels()}</option>
@@ -108,9 +108,9 @@
<input
bind:value={filterText}
placeholder={m.diagnostics_logs_filter_placeholder()}
- class="border-border/60 bg-background h-7 w-32 rounded-md border px-2 text-xs"
+ class="h-7 w-32 rounded-md border border-border/60 bg-background px-2 text-xs"
/>
- <label class="text-muted-foreground flex items-center gap-1 text-xs">
+ <label class="flex items-center gap-1 text-xs text-muted-foreground">
<input type="checkbox" bind:checked={autoScroll} class="size-3.5" />
{m.diagnostics_logs_auto_scroll()}
</label>
@@ -127,21 +127,21 @@
<div
bind:this={viewport}
- class="bg-background overflow-y-auto px-3 py-2 font-mono text-xs leading-relaxed"
+ class="overflow-y-auto bg-background px-3 py-2 font-mono text-xs leading-relaxed"
style="height: {height};"
role="log"
aria-live={connected ? 'polite' : 'off'}
>
{#if filtered.length === 0}
- <div class="text-muted-foreground py-6 text-center">{m.diagnostics_logs_empty()}</div>
+ <div class="py-6 text-center text-muted-foreground">{m.diagnostics_logs_empty()}</div>
{:else}
{#each filtered as entry (logKey(entry))}
- <div class="hover:bg-foreground/5 flex gap-2 rounded px-1 py-0.5">
- <span class="text-muted-foreground shrink-0 tabular-nums">{fmtTime(entry.time)}</span>
+ <div class="flex gap-2 rounded px-1 py-0.5 hover:bg-foreground/5">
+ <span class="shrink-0 text-muted-foreground tabular-nums">{fmtTime(entry.time)}</span>
<span class={cn('w-12 shrink-0 font-semibold uppercase', levelClass(entry.level))}>{entry.level}</span>
<span class="min-w-0 break-words whitespace-pre-wrap">
{entry.message}
- {#if entry.attrs}<span class="text-muted-foreground ml-2">{attrsText(entry.attrs)}</span>{/if}
+ {#if entry.attrs}<span class="ml-2 text-muted-foreground">{attrsText(entry.attrs)}</span>{/if}
</span>
</div>
{/each}
diff --git a/frontend/src/routes/(app)/settings/diagnostics/diagnostic-stat.svelte b/frontend/src/routes/(app)/settings/diagnostics/diagnostic-stat.svelte
index 151f3846f..b6f610587 100644
--- a/frontend/src/routes/(app)/settings/diagnostics/diagnostic-stat.svelte
+++ b/frontend/src/routes/(app)/settings/diagnostics/diagnostic-stat.svelte
@@ -14,16 +14,16 @@
let { label, value, unit, sub, icon: Icon, accent = 'text-primary' }: Props = $props();
</script>
-<div class="border-border/60 bg-card/40 flex items-center gap-3 rounded-lg border px-3.5 py-3">
- <div class={cn('bg-foreground/5 flex size-9 shrink-0 items-center justify-center rounded-md', accent)}>
+<div class="flex items-center gap-3 rounded-lg border border-border/60 bg-card/40 px-3.5 py-3">
+ <div class={cn('flex size-9 shrink-0 items-center justify-center rounded-md bg-foreground/5', accent)}>
<Icon class="size-4" />
</div>
<div class="min-w-0">
- <div class="text-muted-foreground text-[11px] font-medium tracking-wide uppercase">{label}</div>
+ <div class="text-[11px] font-medium tracking-wide text-muted-foreground uppercase">{label}</div>
<div class="flex items-baseline gap-1">
<span class="text-lg leading-tight font-semibold tabular-nums">{value}</span>
- {#if unit}<span class="text-muted-foreground text-xs">{unit}</span>{/if}
+ {#if unit}<span class="text-xs text-muted-foreground">{unit}</span>{/if}
</div>
- {#if sub}<div class="text-muted-foreground truncate text-[11px]">{sub}</div>{/if}
+ {#if sub}<div class="truncate text-[11px] text-muted-foreground">{sub}</div>{/if}
</div>
</div>
diff --git a/frontend/src/routes/(app)/settings/notifications/+page.svelte b/frontend/src/routes/(app)/settings/notifications/+page.svelte
index 22d8b6125..04ca86d17 100644
--- a/frontend/src/routes/(app)/settings/notifications/+page.svelte
+++ b/frontend/src/routes/(app)/settings/notifications/+page.svelte
@@ -211,18 +211,20 @@
const matrixValid = matrixFormRef?.isValid() ?? true;
const genericValid = genericFormRef?.isValid() ?? true;
- if (!(
- emailValid &&
- discordValid &&
- telegramValid &&
- signalValid &&
- slackValid &&
- ntfyValid &&
- pushoverValid &&
- gotifyValid &&
- matrixValid &&
- genericValid
- )) {
+ if (
+ !(
+ emailValid &&
+ discordValid &&
+ telegramValid &&
+ signalValid &&
+ slackValid &&
+ ntfyValid &&
+ pushoverValid &&
+ gotifyValid &&
+ matrixValid &&
+ genericValid
+ )
+ ) {
toast.error(m.common_form_errors());
return;
}
diff --git a/frontend/src/routes/(app)/settings/notifications/providers/DynamicProviderFormBuilder.svelte b/frontend/src/routes/(app)/settings/notifications/providers/DynamicProviderFormBuilder.svelte
index 9279867b7..19133526a 100644
--- a/frontend/src/routes/(app)/settings/notifications/providers/DynamicProviderFormBuilder.svelte
+++ b/frontend/src/routes/(app)/settings/notifications/providers/DynamicProviderFormBuilder.svelte
@@ -109,9 +109,9 @@
rows={field.rows ?? 2}
/>
{#if getFieldError(field)}
- <p class="text-destructive text-sm">{getFieldError(field)}</p>
+ <p class="text-sm text-destructive">{getFieldError(field)}</p>
{:else if field.helpText}
- <p class="text-muted-foreground text-sm">{field.helpText}</p>
+ <p class="text-sm text-muted-foreground">{field.helpText}</p>
{/if}
</div>
{:else if field.kind === 'switch'}
@@ -144,16 +144,16 @@
value={getStringValue(field.key)}
onchange={(event) => setSelectValue(field, (event.target as HTMLSelectElement).value)}
{disabled}
- class="border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 rounded-md border px-3 py-2 text-base focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
+ class="flex h-10 rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
>
{#each field.options as option (option.value)}
<option value={option.value}>{option.label}</option>
{/each}
</select>
{#if getFieldError(field)}
- <p class="text-destructive text-sm">{getFieldError(field)}</p>
+ <p class="text-sm text-destructive">{getFieldError(field)}</p>
{:else if field.description}
- <p class="text-muted-foreground text-sm">{field.description}</p>
+ <p class="text-sm text-muted-foreground">{field.description}</p>
{/if}
</div>
{/if}
diff --git a/frontend/src/routes/(app)/settings/notifications/providers/EventSubscriptions.svelte b/frontend/src/routes/(app)/settings/notifications/providers/EventSubscriptions.svelte
index 3cc2c5cc2..d756dfa95 100644
--- a/frontend/src/routes/(app)/settings/notifications/providers/EventSubscriptions.svelte
+++ b/frontend/src/routes/(app)/settings/notifications/providers/EventSubscriptions.svelte
@@ -26,7 +26,7 @@
<div class="space-y-3 pt-2">
<Label class="text-sm font-medium">{m.notifications_events_title()}</Label>
- <p class="text-muted-foreground text-xs">{m.notifications_events_description()}</p>
+ <p class="text-xs text-muted-foreground">{m.notifications_events_description()}</p>
<div class="space-y-2">
<SwitchWithLabel
id="{providerId}-event-image-update"
diff --git a/frontend/src/routes/(app)/settings/notifications/providers/ProviderFormWrapper.svelte b/frontend/src/routes/(app)/settings/notifications/providers/ProviderFormWrapper.svelte
index 50d6356be..5c9115052 100644
--- a/frontend/src/routes/(app)/settings/notifications/providers/ProviderFormWrapper.svelte
+++ b/frontend/src/routes/(app)/settings/notifications/providers/ProviderFormWrapper.svelte
@@ -21,7 +21,7 @@
</SettingsRow>
{#if enabled && children}
- <div class="border-border/60 space-y-4 border-l-2 pl-5">
+ <div class="space-y-4 border-l-2 border-border/60 pl-5">
{@render children()}
</div>
{/if}
diff --git a/frontend/src/routes/(app)/settings/webhooks/+page.svelte b/frontend/src/routes/(app)/settings/webhooks/+page.svelte
index b70d372df..e220644a6 100644
--- a/frontend/src/routes/(app)/settings/webhooks/+page.svelte
+++ b/frontend/src/routes/(app)/settings/webhooks/+page.svelte
@@ -92,8 +92,8 @@
>
{#snippet children()}
<div class="space-y-4 py-4">
- <div class="bg-muted rounded-lg p-4">
- <p class="text-muted-foreground mb-2 text-sm font-medium">{m.webhook_token_label()}</p>
+ <div class="rounded-lg bg-muted p-4">
+ <p class="mb-2 text-sm font-medium text-muted-foreground">{m.webhook_token_label()}</p>
<Snippet
text={newlyCreatedWebhookUrl}
onCopy={(status) => {
diff --git a/frontend/src/routes/(app)/settings/webhooks/webhook-table.svelte b/frontend/src/routes/(app)/settings/webhooks/webhook-table.svelte
index 8b45cef63..3ddf91faa 100644
--- a/frontend/src/routes/(app)/settings/webhooks/webhook-table.svelte
+++ b/frontend/src/routes/(app)/settings/webhooks/webhook-table.svelte
@@ -162,7 +162,7 @@
</script>
{#if webhooks.length === 0}
- <div class="text-muted-foreground flex flex-col items-center justify-center py-12 text-sm">
+ <div class="flex flex-col items-center justify-center py-12 text-sm text-muted-foreground">
<GlobeIcon class="mb-3 size-10 opacity-40" />
<p>{m.webhook_empty_title()}</p>
<p class="mt-1">{m.webhook_empty_description()}</p>
@@ -197,17 +197,17 @@
{#snippet TokenPrefixCell({ item }: { item: Webhook })}
<div class="flex items-center gap-2">
- <code class="bg-muted rounded px-2 py-1 text-xs">{item.tokenPrefix}...</code>
+ <code class="rounded bg-muted px-2 py-1 text-xs">{item.tokenPrefix}...</code>
<CopyButton text={item.tokenPrefix} class="size-6" />
</div>
{/snippet}
{#snippet TargetTypeCell({ item }: { item: Webhook })}
- <span class="bg-muted rounded px-2 py-1 text-xs font-medium">{targetTypeLabel(item.targetType)}</span>
+ <span class="rounded bg-muted px-2 py-1 text-xs font-medium">{targetTypeLabel(item.targetType)}</span>
{/snippet}
{#snippet ActionTypeCell({ item }: { item: Webhook })}
- <span class="bg-muted rounded px-2 py-1 text-xs font-medium">{actionTypeLabel(item.actionType)}</span>
+ <span class="rounded bg-muted px-2 py-1 text-xs font-medium">{actionTypeLabel(item.actionType)}</span>
{/snippet}
{#snippet TargetNameCell({ item }: { item: Webhook })}
diff --git a/frontend/src/routes/(app)/swarm/cluster/+page.svelte b/frontend/src/routes/(app)/swarm/cluster/+page.svelte
index 62d1217dc..cabafb2a0 100644
--- a/frontend/src/routes/(app)/swarm/cluster/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/cluster/+page.svelte
@@ -327,7 +327,7 @@
</Card.Action>
</Card.Header>
<Card.Content class="pb-6">
- <div class="divide-border/60 divide-y text-sm">
+ <div class="divide-y divide-border/60 text-sm">
<div class="grid gap-1 py-3 sm:grid-cols-[140px_minmax(0,1fr)] sm:gap-4">
<span class="text-muted-foreground">{m.swarm_cluster_id_label()}</span>
<span class="font-mono break-all sm:text-right">{swarmInfo?.id ?? m.swarm_cluster_not_initialized()}</span>
@@ -361,7 +361,7 @@
</Card.Header>
<Card.Content class="space-y-4 pb-6">
<div class="space-y-2">
- <div class="text-muted-foreground text-xs font-medium">{m.swarm_cluster_manager_token_label()}</div>
+ <div class="text-xs font-medium text-muted-foreground">{m.swarm_cluster_manager_token_label()}</div>
<div class="flex items-center gap-2">
<InputGroup.Root class="flex-1">
<InputGroup.Input
@@ -392,7 +392,7 @@
</div>
</div>
<div class="space-y-2">
- <div class="text-muted-foreground text-xs font-medium">{m.swarm_cluster_worker_token_label()}</div>
+ <div class="text-xs font-medium text-muted-foreground">{m.swarm_cluster_worker_token_label()}</div>
<div class="flex items-center gap-2">
<InputGroup.Root class="flex-1">
<InputGroup.Input
@@ -472,9 +472,9 @@
</Card.Root>
{:else}
<div class="mx-auto w-full max-w-5xl space-y-5 pt-2">
- <div class="border-border/60 bg-muted/20 rounded-xl border px-5 py-4 sm:px-6">
+ <div class="rounded-xl border border-border/60 bg-muted/20 px-5 py-4 sm:px-6">
<p class="font-medium">{m.swarm_cluster_setup_title()}</p>
- <p class="text-muted-foreground mt-1 max-w-3xl text-sm leading-relaxed">
+ <p class="mt-1 max-w-3xl text-sm leading-relaxed text-muted-foreground">
{m.swarm_cluster_setup_description()}
</p>
</div>
@@ -488,9 +488,9 @@
</div>
</Card.Header>
<Card.Content class="flex flex-1 flex-col gap-5 pb-6">
- <p class="text-muted-foreground text-sm leading-relaxed">{m.swarm_cluster_initialize_hint()}</p>
+ <p class="text-sm leading-relaxed text-muted-foreground">{m.swarm_cluster_initialize_hint()}</p>
- <details class="border-border/60 bg-muted/15 rounded-lg border">
+ <details class="rounded-lg border border-border/60 bg-muted/15">
<summary class="cursor-pointer px-4 py-3 text-sm font-medium select-none">
{m.swarm_cluster_advanced_settings()}
</summary>
@@ -551,7 +551,7 @@
/>
</label>
- <details class="border-border/60 bg-muted/15 rounded-lg border">
+ <details class="rounded-lg border border-border/60 bg-muted/15">
<summary class="cursor-pointer px-4 py-3 text-sm font-medium select-none">
{m.swarm_cluster_advanced_settings()}
</summary>
@@ -588,7 +588,7 @@
<div class="space-y-3">
{#if unlockKey}
<div
- class="border-border/60 bg-muted/15 flex items-center justify-between gap-3 rounded-lg border px-3 py-2 text-sm"
+ class="flex items-center justify-between gap-3 rounded-lg border border-border/60 bg-muted/15 px-3 py-2 text-sm"
>
<span class="text-muted-foreground">{m.swarm_cluster_stat_unlock_key()}</span>
<CopyButton text={unlockKey} />
diff --git a/frontend/src/routes/(app)/swarm/cluster/easy-join-dialog.svelte b/frontend/src/routes/(app)/swarm/cluster/easy-join-dialog.svelte
index 113c7acfb..6d52cd77a 100644
--- a/frontend/src/routes/(app)/swarm/cluster/easy-join-dialog.svelte
+++ b/frontend/src/routes/(app)/swarm/cluster/easy-join-dialog.svelte
@@ -129,7 +129,7 @@
{#if isLoading && candidates.length === 0}
<div class="flex justify-center py-10"><Spinner class="size-6" /></div>
{:else if candidates.length === 0}
- <div class="text-muted-foreground rounded-lg border border-dashed p-6 text-center text-sm">
+ <div class="rounded-lg border border-dashed p-6 text-center text-sm text-muted-foreground">
{m.swarm_easy_join_no_candidates()}
</div>
{:else}
@@ -145,7 +145,7 @@
/>
<span>
<span class="block text-sm font-medium">{candidate.environmentName}</span>
- <span class="text-muted-foreground text-xs">{candidate.environmentType} · {candidate.status}</span>
+ <span class="text-xs text-muted-foreground">{candidate.environmentType} · {candidate.status}</span>
</span>
</label>
@@ -155,7 +155,7 @@
<label class="space-y-1 text-xs">
<span class="text-muted-foreground">{m.common_role()}</span>
<select
- class="border-input bg-background h-9 w-full rounded-md border px-3"
+ class="h-9 w-full rounded-md border border-input bg-background px-3"
value={target.role}
onchange={(event) =>
updateTarget(candidate.environmentId, {
@@ -169,7 +169,7 @@
<label class="space-y-1 text-xs">
<span class="text-muted-foreground">{m.swarm_availability()}</span>
<select
- class="border-input bg-background h-9 w-full rounded-md border px-3"
+ class="h-9 w-full rounded-md border border-input bg-background px-3"
value={target.availability}
onchange={(event) =>
updateTarget(candidate.environmentId, {
@@ -215,7 +215,7 @@
>{candidates.find((candidate) => candidate.environmentId === result.environmentId)?.environmentName ??
result.environmentId}</span
>
- <span class={result.state === 'failed' ? 'text-destructive text-right' : 'text-muted-foreground text-right'}>
+ <span class={result.state === 'failed' ? 'text-right text-destructive' : 'text-right text-muted-foreground'}>
{resultLabel(result)}{result.error ? `: ${result.error}` : ''}
</span>
</div>
diff --git a/frontend/src/routes/(app)/swarm/nodes/nodes-table.svelte b/frontend/src/routes/(app)/swarm/nodes/nodes-table.svelte
index d0bfec456..2a51f1f5d 100644
--- a/frontend/src/routes/(app)/swarm/nodes/nodes-table.svelte
+++ b/frontend/src/routes/(app)/swarm/nodes/nodes-table.svelte
@@ -355,7 +355,7 @@
{/each}
{#if canManageNodes}
<button
- class="border-border hover:border-primary hover:text-primary inline-flex items-center gap-1 rounded border border-dashed px-2 py-0.5 text-[11px] font-medium transition-colors"
+ class="inline-flex items-center gap-1 rounded border border-dashed border-border px-2 py-0.5 text-[11px] font-medium transition-colors hover:border-primary hover:text-primary"
onclick={() => openAddLabelDialog(item)}
>
<AddIcon class="size-3" />
diff --git a/frontend/src/routes/(app)/swarm/nodes/swarm-node-agent-dialog.svelte b/frontend/src/routes/(app)/swarm/nodes/swarm-node-agent-dialog.svelte
index ab72a6c5c..9a9ccdfdf 100644
--- a/frontend/src/routes/(app)/swarm/nodes/swarm-node-agent-dialog.svelte
+++ b/frontend/src/routes/(app)/swarm/nodes/swarm-node-agent-dialog.svelte
@@ -87,22 +87,22 @@
</Alert.Root>
<div class="grid gap-3 sm:grid-cols-3">
- <div class="bg-muted/40 rounded-lg border p-4">
- <div class="text-muted-foreground text-xs font-medium tracking-wide uppercase">
+ <div class="rounded-lg border bg-muted/40 p-4">
+ <div class="text-xs font-medium tracking-wide text-muted-foreground uppercase">
{m.swarm_node_agent_binding_kind()}
</div>
<div class="mt-2 text-sm font-medium">{bindingLabel}</div>
</div>
- <div class="bg-muted/40 rounded-lg border p-4">
- <div class="text-muted-foreground text-xs font-medium tracking-wide uppercase">{m.common_status()}</div>
+ <div class="rounded-lg border bg-muted/40 p-4">
+ <div class="text-xs font-medium tracking-wide text-muted-foreground uppercase">{m.common_status()}</div>
<div class="mt-2 flex items-center gap-2">
<Badge variant={getSwarmNodeAgentVariant(agentStatus.state)} minWidth="20">{agentStatusLabel}</Badge>
</div>
</div>
- <div class="bg-muted/40 rounded-lg border p-4">
- <div class="text-muted-foreground text-xs font-medium tracking-wide uppercase">
+ <div class="rounded-lg border bg-muted/40 p-4">
+ <div class="text-xs font-medium tracking-wide text-muted-foreground uppercase">
{m.swarm_node_agent_environment_id()}
</div>
<div class="mt-2 font-mono text-sm break-all">
@@ -115,14 +115,14 @@
<div class="space-y-3 rounded-lg border p-4">
<div>
<div class="font-medium">{m.swarm_node_agent_candidates_title()}</div>
- <div class="text-muted-foreground text-sm">{m.swarm_node_agent_candidates_description()}</div>
+ <div class="text-sm text-muted-foreground">{m.swarm_node_agent_candidates_description()}</div>
</div>
<div class="space-y-2">
{#each agentStatus.candidates as candidate (candidate.environmentId)}
- <div class="bg-muted/30 flex items-center justify-between gap-3 rounded-md border px-3 py-2">
+ <div class="flex items-center justify-between gap-3 rounded-md border bg-muted/30 px-3 py-2">
<div>
<div class="text-sm font-medium">{candidate.environmentName}</div>
- <div class="text-muted-foreground text-xs">{candidate.environmentType}</div>
+ <div class="text-xs text-muted-foreground">{candidate.environmentType}</div>
</div>
<ArcaneButton
action="save"
@@ -141,7 +141,7 @@
<div class="space-y-3 rounded-lg border p-4">
<div>
<div class="font-medium">{m.swarm_node_agent_resources_title()}</div>
- <div class="text-muted-foreground text-sm">{m.swarm_node_agent_resources_description()}</div>
+ <div class="text-sm text-muted-foreground">{m.swarm_node_agent_resources_description()}</div>
</div>
<div class="flex flex-wrap gap-2">
{#if hasAnyPermission(['containers:list', 'containers:read'], agentStatus.environmentId)}
@@ -205,7 +205,7 @@
{:else if canCreateEnvironment}
<div class="rounded-lg border border-dashed p-4">
<div class="font-medium">{m.swarm_node_agent_create_environment_title()}</div>
- <div class="text-muted-foreground mt-1 text-sm">{m.swarm_node_agent_create_environment_description()}</div>
+ <div class="mt-1 text-sm text-muted-foreground">{m.swarm_node_agent_create_environment_description()}</div>
<ArcaneButton
class="mt-3"
action="create"
@@ -219,7 +219,7 @@
<div class="font-medium">
{isDedicated ? m.swarm_node_agent_legacy_deployment_title() : m.swarm_node_agent_deployment_title()}
</div>
- <div class="text-muted-foreground mt-1 text-sm">
+ <div class="mt-1 text-sm text-muted-foreground">
{isDedicated ? m.swarm_node_agent_legacy_deployment_description() : m.swarm_node_agent_deployment_description()}
</div>
<ArcaneButton
diff --git a/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte b/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte
index 95fc94c23..ad47fc0dd 100644
--- a/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte
@@ -291,15 +291,15 @@
<TabbedPageLayout backUrl="/swarm/services" backLabel={m.common_back()} {tabItems} {selectedTab} {onTabChange}>
{#snippet headerInfo()}
<div class="flex items-center gap-2">
- <div class="bg-primary/10 flex size-9 items-center justify-center rounded-full">
- <DockIcon class="text-primary size-5" />
+ <div class="flex size-9 items-center justify-center rounded-full bg-primary/10">
+ <DockIcon class="size-5 text-primary" />
</div>
<h1 class="max-w-[300px] truncate text-lg font-semibold" title={serviceName}>
{serviceName}
</h1>
<Badge variant={getSwarmServiceModeVariant(serviceMode)} minWidth="20">{getSwarmServiceModeLabel(serviceMode)}</Badge>
{#if canScaleService}
- <span class="text-muted-foreground font-mono text-sm">
+ <span class="font-mono text-sm text-muted-foreground">
{desiredReplicas}
{m.swarm_replicas()}
</span>
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceConfiguration.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceConfiguration.svelte
index ce18f8e82..f39034397 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceConfiguration.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceConfiguration.svelte
@@ -71,10 +71,10 @@
{#if command.length > 0}
<Card.Root variant="subtle" class="sm:col-span-2 lg:col-span-3 xl:col-span-4">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_command()}
</div>
- <div class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all">
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
{command.join(' ')}
</div>
</Card.Content>
@@ -84,10 +84,10 @@
{#if args.length > 0}
<Card.Root variant="subtle" class="sm:col-span-2 lg:col-span-3 xl:col-span-4">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_args()}
</div>
- <div class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all">
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
{args.join(' ')}
</div>
</Card.Content>
@@ -97,10 +97,10 @@
{#if workingDir}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_working_directory()}
</div>
- <div class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all">
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
{workingDir}
</div>
</Card.Content>
@@ -110,10 +110,10 @@
{#if user}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.resource_user_cap()}
</div>
- <div class="text-foreground cursor-pointer font-mono text-sm font-medium select-all">
+ <div class="cursor-pointer font-mono text-sm font-medium text-foreground select-all">
{user}
</div>
</Card.Content>
@@ -123,8 +123,8 @@
{#if hostname}
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.swarm_hostname()}</div>
- <div class="text-foreground cursor-pointer font-mono text-sm font-medium select-all">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.swarm_hostname()}</div>
+ <div class="cursor-pointer font-mono text-sm font-medium text-foreground select-all">
{hostname}
</div>
</Card.Content>
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceLogsPanel.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceLogsPanel.svelte
index 30bd73d97..be57d9497 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceLogsPanel.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceLogsPanel.svelte
@@ -65,7 +65,7 @@
</div>
</Card.Header>
<Card.Content class="p-0">
- <div class="bg-card/90 rounded-lg border p-0 backdrop-blur-sm">
+ <div class="rounded-lg border bg-card/90 p-0 backdrop-blur-sm">
<LogViewer
bind:this={viewer}
bind:autoScroll
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceNetwork.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceNetwork.svelte
index f921573a1..f7b340186 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceNetwork.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceNetwork.svelte
@@ -51,13 +51,13 @@
heading: string
)}
{#each configs as cfg (`${cfg.subnet ?? ''}:${cfg.gateway ?? ''}:${cfg.ipRange ?? ''}`)}
- <div class="bg-muted/30 space-y-1 rounded-lg p-2.5">
- <div class="text-muted-foreground mb-1 text-xs font-semibold">{heading}</div>
+ <div class="space-y-1 rounded-lg bg-muted/30 p-2.5">
+ <div class="mb-1 text-xs font-semibold text-muted-foreground">{heading}</div>
{#if cfg.subnet}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-16">{m.common_subnet()}:</span>
+ <span class="w-full text-sm font-medium text-muted-foreground sm:w-16">{m.common_subnet()}:</span>
<code
- class="bg-muted text-muted-foreground cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs break-all select-all sm:text-sm"
+ class="cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs break-all text-muted-foreground select-all sm:text-sm"
>
{cfg.subnet}
</code>
@@ -65,9 +65,9 @@
{/if}
{#if cfg.gateway}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-16">{m.common_gateway()}:</span>
+ <span class="w-full text-sm font-medium text-muted-foreground sm:w-16">{m.common_gateway()}:</span>
<code
- class="bg-muted text-muted-foreground cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs break-all select-all sm:text-sm"
+ class="cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs break-all text-muted-foreground select-all sm:text-sm"
>
{cfg.gateway}
</code>
@@ -75,9 +75,9 @@
{/if}
{#if cfg.ipRange}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-16">{m.networks_ipam_iprange_label()}:</span>
+ <span class="w-full text-sm font-medium text-muted-foreground sm:w-16">{m.networks_ipam_iprange_label()}:</span>
<code
- class="bg-muted text-muted-foreground cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs break-all select-all sm:text-sm"
+ class="cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs break-all text-muted-foreground select-all sm:text-sm"
>
{cfg.ipRange}
</code>
@@ -104,7 +104,7 @@
{/each}
</div>
{:else}
- <div class="text-muted-foreground rounded-lg border border-dashed py-12 text-center">
+ <div class="rounded-lg border border-dashed py-12 text-center text-muted-foreground">
<div class="text-sm">{m.containers_no_ports()}</div>
</div>
{/if}
@@ -129,12 +129,12 @@
{@const info = networkDetails[networkId]}
<Card.Root variant="subtle">
<Card.Content class="p-4">
- <div class="border-border mb-4 flex items-center gap-3 border-b pb-4">
+ <div class="mb-4 flex items-center gap-3 border-b border-border pb-4">
<div class="rounded-lg bg-blue-500/10 p-2">
<NetworksIcon class="size-5 text-blue-500" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-foreground text-base font-semibold break-all">
+ <div class="text-base font-semibold break-all text-foreground">
{info?.name ?? (aliases.length > 0 ? aliases[0] : networkId.slice(0, 12))}
</div>
<div class="mt-1 flex flex-wrap items-center gap-2">
@@ -157,7 +157,7 @@
<Badge variant="pink" minWidth="20">{m.config_only()}</Badge>
{/if}
{#if info?.configFrom}
- <span class="text-muted-foreground text-xs">{info.configFrom}</span>
+ <span class="text-xs text-muted-foreground">{info.configFrom}</span>
{/if}
</div>
</div>
@@ -167,9 +167,9 @@
{#if vip}
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.networks_service_vip_label()}</div>
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">{m.networks_service_vip_label()}</div>
<code
- class="bg-muted text-muted-foreground cursor-pointer rounded px-1.5 py-0.5 font-mono text-sm break-all select-all"
+ class="cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-sm break-all text-muted-foreground select-all"
>
{vip}
</code>
@@ -179,9 +179,9 @@
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.common_id()}</div>
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">{m.common_id()}</div>
<code
- class="bg-muted text-muted-foreground cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs break-all select-all sm:text-sm"
+ class="cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs break-all text-muted-foreground select-all sm:text-sm"
>
{networkId}
</code>
@@ -191,13 +191,13 @@
{#if aliases.length > 0}
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_aliases()}
</div>
<div class="space-y-1">
{#each aliases as alias (alias)}
<code
- class="bg-muted text-muted-foreground cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs break-all select-all sm:text-sm"
+ class="cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs break-all text-muted-foreground select-all sm:text-sm"
>
{alias}
</code>
@@ -210,9 +210,9 @@
{#if info?.configNetwork}
<Card.Root variant="outlined" class="sm:col-span-2">
<Card.Content class="p-3">
- <div class="border-border mb-3 flex items-center justify-between border-b pb-3">
+ <div class="mb-3 flex items-center justify-between border-b border-border pb-3">
<div>
- <div class="text-foreground text-sm font-semibold">
+ <div class="text-sm font-semibold text-foreground">
{m.config_only()}: {info.configNetwork.name}
</div>
<div class="mt-1 flex flex-wrap items-center gap-1.5">
@@ -223,7 +223,7 @@
<Badge variant="gray" size="sm">{info.configNetwork.scope}</Badge>
{/if}
{#if info.configNetwork.options?.['parent']}
- <span class="text-muted-foreground text-xs">{info.configNetwork.options['parent']}</span>
+ <span class="text-xs text-muted-foreground">{info.configNetwork.options['parent']}</span>
{/if}
</div>
</div>
@@ -253,7 +253,7 @@
{/each}
</div>
{:else}
- <div class="text-muted-foreground rounded-lg border border-dashed py-12 text-center">
+ <div class="rounded-lg border border-dashed py-12 text-center text-muted-foreground">
<div class="text-sm">{m.containers_no_networks_connected()}</div>
</div>
{/if}
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceOverview.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceOverview.svelte
index 916515c1d..d94c5e188 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceOverview.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceOverview.svelte
@@ -53,31 +53,31 @@
<Card.Content class="p-4">
<div class="mb-6 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
<div>
- <div class="text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_name()}
</div>
- <div class="text-foreground cursor-pointer text-base font-semibold break-all select-all">
+ <div class="cursor-pointer text-base font-semibold break-all text-foreground select-all">
{serviceName}
</div>
</div>
<div>
- <div class="text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.swarm_stack()}
</div>
- <div class="text-foreground text-base font-semibold">
+ <div class="text-base font-semibold text-foreground">
{stackName || m.common_na()}
</div>
</div>
<div>
- <div class="text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase">
+ <div class="mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.swarm_mode()} / {m.swarm_replicas()}
</div>
<div class="flex items-center gap-2">
<Badge variant={getSwarmServiceModeVariant(serviceMode)} minWidth="20">{getSwarmServiceModeLabel(serviceMode)}</Badge>
{#if canScaleService}
- <span class="text-foreground font-mono text-sm">
+ <span class="font-mono text-sm text-foreground">
{desiredReplicas}
{m.swarm_replicas()}
</span>
@@ -89,10 +89,10 @@
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_image()}
</div>
- <div class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all">
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
{truncateImageDigest(serviceImage) || m.common_na()}
</div>
</Card.Content>
@@ -100,10 +100,10 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_version()}
</div>
- <div class="text-foreground font-mono text-sm font-medium">
+ <div class="font-mono text-sm font-medium text-foreground">
{versionIndex}
</div>
</Card.Content>
@@ -113,13 +113,13 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_created()}
</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-sm font-medium text-foreground">
{formatRelative(service.createdAt)}
</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{formatDate(service.createdAt)}
</div>
</Card.Content>
@@ -127,13 +127,13 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.common_updated()}
</div>
- <div class="text-foreground text-sm font-medium">
+ <div class="text-sm font-medium text-foreground">
{formatRelative(service.updatedAt)}
</div>
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{formatDate(service.updatedAt)}
</div>
</Card.Content>
@@ -141,20 +141,20 @@
<Card.Root variant="subtle">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
{m.swarm_nodes_column()}
</div>
{#if nodes.length > 0}
<div class="flex flex-wrap gap-1.5">
{#each nodes as node (node)}
<div class="flex items-center gap-1">
- <ConnectionIcon class="text-muted-foreground size-3" />
- <span class="text-foreground text-sm font-medium">{node}</span>
+ <ConnectionIcon class="size-3 text-muted-foreground" />
+ <span class="text-sm font-medium text-foreground">{node}</span>
</div>
{/each}
</div>
{:else}
- <span class="text-muted-foreground text-sm">{m.common_na()}</span>
+ <span class="text-sm text-muted-foreground">{m.common_na()}</span>
{/if}
</Card.Content>
</Card.Root>
@@ -162,7 +162,7 @@
{#if updateStatus?.['State']}
<Card.Root variant="subtle" class="sm:col-span-2">
<Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-muted-foreground text-xs font-semibold tracking-wide uppercase">{m.common_status()}</div>
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_status()}</div>
<div class="flex items-center gap-2">
<Badge
variant={updateStatus['State'] === 'completed'
@@ -175,11 +175,11 @@
minWidth="20">{updateStatus['State']}</Badge
>
{#if updateStatus['Message']}
- <span class="text-muted-foreground text-sm">{updateStatus['Message']}</span>
+ <span class="text-sm text-muted-foreground">{updateStatus['Message']}</span>
{/if}
</div>
{#if updateStatus['CompletedAt']}
- <div class="text-muted-foreground text-xs">
+ <div class="text-xs text-muted-foreground">
{formatRelative(updateStatus['CompletedAt'])}
</div>
{/if}
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceStorage.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceStorage.svelte
index 707f41ece..e914eaf09 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceStorage.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceStorage.svelte
@@ -68,7 +68,7 @@
{@const bindBacked = type === 'volume' && isBindBackedVolume(mount)}
<Card.Root variant="subtle">
<Card.Content class="p-4">
- <div class="border-border mb-4 flex items-center justify-between border-b pb-4">
+ <div class="mb-4 flex items-center justify-between border-b border-border pb-4">
<div class="flex items-center gap-3">
<div class="rounded-lg p-2 {iconColor.bg}">
{#if type === 'volume' && !bindBacked}
@@ -80,11 +80,11 @@
{/if}
</div>
<div class="min-w-0 flex-1">
- <div class="text-foreground text-base font-semibold break-all">
+ <div class="text-base font-semibold break-all text-foreground">
{type === 'tmpfs' ? m.containers_mount_type_tmpfs() : source || m.image_update_auth_anonymous()}
</div>
<div class="mt-1 flex flex-wrap items-center gap-1.5">
- <span class="text-muted-foreground text-xs">{getMountLabel(type)}</span>
+ <span class="text-xs text-muted-foreground">{getMountLabel(type)}</span>
{#if mount.volumeDriver}
<Badge variant="gray" size="sm">{mount.volumeDriver}</Badge>
{/if}
@@ -99,10 +99,10 @@
<div class="grid grid-cols-1 gap-3">
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_mount_label_container()}
</div>
- <div class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all">
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
{target}
</div>
</Card.Content>
@@ -111,10 +111,10 @@
{#if source && type !== 'tmpfs'}
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">
{type === 'volume' ? m.containers_mount_label_volume() : m.containers_mount_label_host()}
</div>
- <div class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all">
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
{source}
</div>
</Card.Content>
@@ -124,8 +124,8 @@
{#if bindBacked && mount.volumeOptions?.['device']}
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">{m.dashboard_meter_gpu_device()}:</div>
- <div class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">{m.dashboard_meter_gpu_device()}:</div>
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
{mount.volumeOptions['device']}
</div>
</Card.Content>
@@ -135,10 +135,10 @@
{#if mount.devicePath}
<Card.Root variant="outlined">
<Card.Content class="flex flex-col p-3">
- <div class="text-muted-foreground mb-2 text-xs font-semibold">
+ <div class="mb-2 text-xs font-semibold text-muted-foreground">
{bindBacked ? m.containers_mount_label_volume() : m.containers_mount_label_host()}
</div>
- <div class="text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all">
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
{mount.devicePath}
</div>
</Card.Content>
@@ -151,10 +151,10 @@
</div>
{:else}
<div class="rounded-lg border border-dashed py-12 text-center">
- <div class="bg-muted/30 mx-auto mb-4 flex size-16 items-center justify-center rounded-full">
- <VolumesIcon class="text-muted-foreground size-6" />
+ <div class="mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-muted/30">
+ <VolumesIcon class="size-6 text-muted-foreground" />
</div>
- <div class="text-muted-foreground text-sm">{m.containers_no_mounts_configured()}</div>
+ <div class="text-sm text-muted-foreground">{m.containers_no_mounts_configured()}</div>
</div>
{/if}
</Card.Content>
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceTasksPanel.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceTasksPanel.svelte
index 4ec65a34a..4fa92bb51 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceTasksPanel.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceTasksPanel.svelte
@@ -60,11 +60,11 @@
</Card.Header>
<Card.Content class="p-4">
{#if isLoading && !hasLoaded}
- <div class="text-muted-foreground py-12 text-center text-sm">{m.swarm_service_tasks_loading()}</div>
+ <div class="py-12 text-center text-sm text-muted-foreground">{m.swarm_service_tasks_loading()}</div>
{:else if tasks.length === 0}
- <div class="text-muted-foreground rounded-lg border border-dashed py-12 text-center">
- <div class="bg-muted/30 mx-auto mb-4 flex size-16 items-center justify-center rounded-full">
- <JobsIcon class="text-muted-foreground size-6" />
+ <div class="rounded-lg border border-dashed py-12 text-center text-muted-foreground">
+ <div class="mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-muted/30">
+ <JobsIcon class="size-6 text-muted-foreground" />
</div>
<div class="text-sm">{m.swarm_service_tasks_empty()}</div>
</div>
@@ -73,34 +73,34 @@
{#each tasks as task (task.id)}
<Card.Root variant="subtle">
<Card.Content class="p-4">
- <div class="border-border mb-3 flex items-center justify-between border-b pb-3">
+ <div class="mb-3 flex items-center justify-between border-b border-border pb-3">
<div class="min-w-0 flex-1">
- <div class="text-foreground truncate text-sm font-semibold" title={task.name}>
+ <div class="truncate text-sm font-semibold text-foreground" title={task.name}>
{task.name}
</div>
- <div class="text-muted-foreground font-mono text-xs">{task.id.slice(0, 12)}</div>
+ <div class="font-mono text-xs text-muted-foreground">{task.id.slice(0, 12)}</div>
</div>
<Badge variant={getSwarmTaskStateVariant(task.currentState)} minWidth="20">{task.currentState}</Badge>
</div>
<div class="grid grid-cols-2 gap-2">
<div>
- <div class="text-muted-foreground mb-1 text-xs font-semibold">
+ <div class="mb-1 text-xs font-semibold text-muted-foreground">
{m.swarm_node()}
</div>
<div class="flex items-center gap-1">
- <ConnectionIcon class="text-muted-foreground size-3" />
- <span class="text-foreground truncate text-sm">{task.nodeName || m.common_na()}</span>
+ <ConnectionIcon class="size-3 text-muted-foreground" />
+ <span class="truncate text-sm text-foreground">{task.nodeName || m.common_na()}</span>
</div>
</div>
<div>
- <div class="text-muted-foreground mb-1 text-xs font-semibold">
+ <div class="mb-1 text-xs font-semibold text-muted-foreground">
{m.swarm_desired_state()}
</div>
<Badge variant={getSwarmTaskStateVariant(task.desiredState)} size="sm" minWidth="20">{task.desiredState}</Badge>
</div>
{#if task.error}
<div class="col-span-2">
- <div class="text-muted-foreground mb-1 text-xs font-semibold">{m.common_error()}</div>
+ <div class="mb-1 text-xs font-semibold text-muted-foreground">{m.common_error()}</div>
<div class="text-sm break-all text-red-400">{task.error}</div>
</div>
{/if}
diff --git a/frontend/src/routes/(app)/swarm/services/services-table.svelte b/frontend/src/routes/(app)/swarm/services/services-table.svelte
index 08e55527b..e7f6e24ed 100644
--- a/frontend/src/routes/(app)/swarm/services/services-table.svelte
+++ b/frontend/src/routes/(app)/swarm/services/services-table.svelte
@@ -124,7 +124,7 @@
</script>
{#snippet NameCell({ item }: { item: SwarmServiceSummary })}
- <a href="/swarm/services/{item.id}" class="text-primary text-sm font-medium hover:underline">
+ <a href="/swarm/services/{item.id}" class="text-sm font-medium text-primary hover:underline">
{getShortName(item.name, item.stackName)}
</a>
{/snippet}
@@ -139,7 +139,7 @@
{#if value}
<span class="text-sm">{String(value)}</span>
{:else}
- <span class="text-muted-foreground text-sm">{m.common_na()}</span>
+ <span class="text-sm text-muted-foreground">{m.common_na()}</span>
{/if}
{/snippet}
@@ -149,14 +149,14 @@
{#snippet OverflowCell({ items }: { items: string[] })}
{#if !items || items.length === 0}
- <span class="text-muted-foreground text-sm">{m.common_na()}</span>
+ <span class="text-sm text-muted-foreground">{m.common_na()}</span>
{:else}
<div class="flex flex-col gap-0.5">
{#each items.slice(0, MAX_OVERFLOW_ITEMS) as item (item)}
<span class="max-w-45 truncate font-mono text-sm">{item}</span>
{/each}
{#if items.length > MAX_OVERFLOW_ITEMS}
- <span class="text-muted-foreground text-xs font-medium">
+ <span class="text-xs font-medium text-muted-foreground">
{m.swarm_n_more({ count: items.length - MAX_OVERFLOW_ITEMS })}
</span>
{/if}
diff --git a/frontend/src/routes/(app)/swarm/stacks/[name]/+page.svelte b/frontend/src/routes/(app)/swarm/stacks/[name]/+page.svelte
index 11df9fba7..23b9bcfb9 100644
--- a/frontend/src/routes/(app)/swarm/stacks/[name]/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/stacks/[name]/+page.svelte
@@ -260,7 +260,7 @@
<Tabs.Content value="source" class="flex min-h-0 flex-1 flex-col">
{#if sourceState === 'available' && source}
{@const stackSource = source}
- <div class="bg-card border-border flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border">
+ <div class="flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border border-border bg-card">
<ResizableSplit
class="min-h-0 flex-1"
variant="flush"
@@ -315,7 +315,7 @@
/>
</div>
{:else}
- <div class="text-muted-foreground flex h-full items-center justify-center p-6 text-center text-sm">
+ <div class="flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground">
No saved `.env` file was stored for this stack.
</div>
{/if}
@@ -327,7 +327,7 @@
</div>
{:else if sourceState === 'loading'}
<Card.Root variant="subtle">
- <Card.Content class="text-muted-foreground p-6 text-center text-sm">{m.swarm_stack_source_loading()}</Card.Content>
+ <Card.Content class="p-6 text-center text-sm text-muted-foreground">{m.swarm_stack_source_loading()}</Card.Content>
</Card.Root>
{:else if sourceState === 'missing'}
<Card.Root variant="subtle">
diff --git a/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte b/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte
index b78a8f10d..83b069a83 100644
--- a/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte
@@ -151,7 +151,7 @@
);
</script>
-<div class="bg-background flex h-full min-h-0 flex-col">
+<div class="flex h-full min-h-0 flex-col bg-background">
<div class="sticky top-0 mb-2 border-b">
<div class="mx-auto flex h-16 max-w-full items-center justify-between gap-4 px-6">
<div class="flex items-center gap-4">
@@ -164,7 +164,7 @@
icon={ArrowLeftIcon}
customLabel={m.common_back()}
/>
- <div class="bg-border hidden h-4 w-px sm:block"></div>
+ <div class="hidden h-4 w-px bg-border sm:block"></div>
<div class="hidden items-center gap-3 sm:flex">
<EditableName
bind:value={$inputs.name.value}
@@ -224,7 +224,7 @@
</div>
<form class="flex h-full min-h-0 flex-1 flex-col px-2 pb-4 sm:px-6" onsubmit={preventDefault(handleSubmit)}>
- <div class="bg-card border-border flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border">
+ <div class="flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border border-border bg-card">
<ResizableSplit
class="min-h-0 flex-1"
variant="flush"
diff --git a/frontend/src/routes/(app)/swarm/stacks/stacks-table.svelte b/frontend/src/routes/(app)/swarm/stacks/stacks-table.svelte
index b20ec8796..2a5feeaff 100644
--- a/frontend/src/routes/(app)/swarm/stacks/stacks-table.svelte
+++ b/frontend/src/routes/(app)/swarm/stacks/stacks-table.svelte
@@ -76,7 +76,7 @@
</script>
{#snippet NameCell({ item }: { item: SwarmStackSummary })}
- <a href="/swarm/stacks/{encodeURIComponent(item.name)}" class="text-primary text-sm font-medium hover:underline">
+ <a href="/swarm/stacks/{encodeURIComponent(item.name)}" class="text-sm font-medium text-primary hover:underline">
{item.name}
</a>
{/snippet}
diff --git a/frontend/src/routes/(app)/updates/project-updates-table.svelte b/frontend/src/routes/(app)/updates/project-updates-table.svelte
index b6e3d01b6..6bac26c75 100644
--- a/frontend/src/routes/(app)/updates/project-updates-table.svelte
+++ b/frontend/src/routes/(app)/updates/project-updates-table.svelte
@@ -109,7 +109,7 @@
{#snippet ImageCell({ item }: { item: ProjectUpdateRow })}
<div class="flex items-center gap-2">
- <ImagesIcon class="text-muted-foreground size-3.5 shrink-0" />
+ <ImagesIcon class="size-3.5 shrink-0 text-muted-foreground" />
<span class="truncate text-sm" title={item.imageSummary !== '-' ? item.imageSummary : undefined}>
{item.imageSummary}
</span>
diff --git a/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte b/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte
index 0512d6ee8..7eea392f7 100644
--- a/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte
+++ b/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte
@@ -180,7 +180,7 @@
class="col-span-1 flex items-start gap-3 sm:col-span-2 lg:col-span-3 xl:col-span-4 2xl:col-span-6"
>
<div
- class="bg-muted/50 mt-2 cursor-pointer rounded-lg border p-3 select-all"
+ class="mt-2 cursor-pointer rounded-lg border bg-muted/50 p-3 select-all"
title={m.common_click_to_select()}
>
<code class="font-mono text-sm break-all">{volume.mountpoint}</code>
@@ -204,14 +204,14 @@
{#each containersDetailed as c (c.id)}
<div class="flex flex-col p-3 sm:flex-row sm:items-center">
<div class="mb-2 w-full font-medium break-all sm:mb-0 sm:w-1/3">
- <a href="/containers/{c.id}" class="text-primary flex items-center hover:underline">
- <ContainersIcon class="text-muted-foreground mr-1.5 size-3.5" />
+ <a href="/containers/{c.id}" class="flex items-center text-primary hover:underline">
+ <ContainersIcon class="mr-1.5 size-3.5 text-muted-foreground" />
{c.name}
</a>
</div>
<div class="w-full pl-0 sm:w-2/3 sm:pl-4">
<code
- class="bg-muted text-muted-foreground cursor-pointer rounded px-1.5 py-0.5 font-mono text-xs break-all select-all sm:text-sm"
+ class="cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs break-all text-muted-foreground select-all sm:text-sm"
title={m.common_click_to_select()}
>
{truncateString(c.id, 48)}
@@ -228,7 +228,7 @@
{#each volume.containers as id (id)}
<div class="flex items-center justify-between gap-3 p-3">
<code class="font-mono text-sm break-all">{truncateString(id, 48)}</code>
- <a href={`/containers/${id}`} class="text-primary text-sm hover:underline">{m.common_view()}</a>
+ <a href={`/containers/${id}`} class="text-sm text-primary hover:underline">{m.common_view()}</a>
</div>
{/each}
</Card.Content>
@@ -258,11 +258,11 @@
{/if}
{#if (!volume.labels || Object.keys(volume.labels).length === 0) && (!volume.options || Object.keys(volume.options).length === 0)}
- <Card.Root class="bg-muted/10 border shadow-sm">
+ <Card.Root class="border bg-muted/10 shadow-sm">
<Card.Content class="pt-6 pb-6 text-center">
<div class="flex flex-col items-center justify-center">
- <div class="bg-muted/30 mb-4 rounded-full p-3">
- <TagIcon class="text-muted-foreground size-5 opacity-50" />
+ <div class="mb-4 rounded-full bg-muted/30 p-3">
+ <TagIcon class="size-5 text-muted-foreground opacity-50" />
</div>
<p class="text-muted-foreground">{m.volumes_no_labels_or_options()}</p>
</div>
@@ -280,11 +280,11 @@
{:else}
<ResourceDetailLayout backUrl="/volumes" backLabel={m.volumes_title()} title={m.volumes_volume()} {actions}>
<div class="flex flex-col items-center justify-center px-4 py-16 text-center">
- <div class="bg-muted/30 mb-4 rounded-full p-4">
- <BoxIcon class="text-muted-foreground size-10 opacity-70" />
+ <div class="mb-4 rounded-full bg-muted/30 p-4">
+ <BoxIcon class="size-10 text-muted-foreground opacity-70" />
</div>
<h2 class="mb-2 text-xl font-medium">{m.common_not_found_title({ resource: m.volumes_title() })}</h2>
- <p class="text-muted-foreground mb-6">
+ <p class="mb-6 text-muted-foreground">
{m.common_not_found_description({ resource: m.volumes_title().toLowerCase() })}
</p>
diff --git a/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte b/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
index 34748431e..0d3842f3c 100644
--- a/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
+++ b/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
@@ -357,12 +357,12 @@
<ScrollArea class="h-64 rounded-md border">
{#if backupFilesLoading}
<div class="flex items-center justify-center py-8">
- <LoadingSpinnerIcon class="text-muted-foreground size-5" />
+ <LoadingSpinnerIcon class="size-5 text-muted-foreground" />
</div>
{:else if filteredBackupFiles.length === 0}
- <div class="text-muted-foreground flex items-center justify-center py-8 text-sm">{m.volume_backup_no_files()}</div>
+ <div class="flex items-center justify-center py-8 text-sm text-muted-foreground">{m.volume_backup_no_files()}</div>
{:else}
- <div class="divide-border/40 divide-y">
+ <div class="divide-y divide-border/40">
{#each filteredBackupFiles as filePath (filePath)}
<div class="flex items-center gap-3 px-3 py-2">
<Checkbox.Root
diff --git a/frontend/src/routes/(app)/volumes/volume-table.svelte b/frontend/src/routes/(app)/volumes/volume-table.svelte
index 5dd6d4ff8..7487911c4 100644
--- a/frontend/src/routes/(app)/volumes/volume-table.svelte
+++ b/frontend/src/routes/(app)/volumes/volume-table.svelte
@@ -220,14 +220,14 @@
{#if item.size > 0}
<span class="text-sm tabular-nums">{bytes.format(item.size)}</span>
{:else}
- <span class="text-muted-foreground flex items-center gap-1 text-sm">
+ <span class="flex items-center gap-1 text-sm text-muted-foreground">
<Spinner class="size-4" />
</span>
{/if}
{:else if item.size > 0}
<span class="text-sm tabular-nums">{bytes.format(item.size)}</span>
{:else}
- <span class="text-muted-foreground text-sm">-</span>
+ <span class="text-sm text-muted-foreground">-</span>
{/if}
{/snippet}
diff --git a/frontend/src/routes/(auth)/login/+page.svelte b/frontend/src/routes/(auth)/login/+page.svelte
index abbec1bb9..186a229d4 100644
--- a/frontend/src/routes/(auth)/login/+page.svelte
+++ b/frontend/src/routes/(auth)/login/+page.svelte
@@ -117,13 +117,13 @@
<div class="grid min-h-dvh w-full max-w-screen-2xl grid-cols-1 lg:grid-cols-[1.05fr_minmax(420px,0.95fr)]">
<aside class="showcase relative hidden flex-col justify-between overflow-hidden p-10 lg:flex xl:p-14">
<div class="relative z-[var(--arcane-z-raised)] flex items-center gap-3">
- <div class="bg-card/40 ring-border/40 inline-flex size-10 items-center justify-center rounded-xl border ring-1">
+ <div class="inline-flex size-10 items-center justify-center rounded-xl border bg-card/40 ring-1 ring-border/40">
<img class="h-6 w-auto" src={logoUrl} alt="" />
</div>
<div class="flex flex-col leading-tight">
- <span class="text-foreground/90 text-sm font-medium tracking-wide">{m.layout_title()}</span>
+ <span class="text-sm font-medium tracking-wide text-foreground/90">{m.layout_title()}</span>
{#if data.versionInformation?.displayVersion}
- <span class="text-muted-foreground/60 font-mono text-[10px] tracking-wider"
+ <span class="font-mono text-[10px] tracking-wider text-muted-foreground/60"
>{data.versionInformation.displayVersion}</span
>
{/if}
@@ -131,10 +131,10 @@
</div>
<div class="relative z-[var(--arcane-z-raised)] max-w-xl">
- <h2 class="text-foreground text-5xl leading-[1.05] font-semibold tracking-tight text-balance xl:text-6xl">
+ <h2 class="text-5xl leading-[1.05] font-semibold tracking-tight text-balance text-foreground xl:text-6xl">
{m.auth_tagline_line1()}
<span
- class="to-foreground/70 bg-gradient-to-br from-[var(--primary)] via-[var(--primary)] bg-clip-text text-transparent"
+ class="bg-gradient-to-br from-[var(--primary)] via-[var(--primary)] to-foreground/70 bg-clip-text text-transparent"
>{m.auth_tagline_line2()}</span
>
</h2>
@@ -146,18 +146,18 @@
<section class="form-pane relative flex min-h-dvh flex-col items-center justify-center p-6 sm:p-10 lg:p-10 xl:p-14">
<div class="mb-8 flex w-full max-w-md justify-center lg:hidden">
<div
- class="bg-card/80 ring-border/40 flex items-center justify-center rounded-2xl border p-5 shadow-[0_8px_32px_-8px_rgba(0,0,0,0.35)] ring-1"
+ class="flex items-center justify-center rounded-2xl border bg-card/80 p-5 shadow-[0_8px_32px_-8px_rgba(0,0,0,0.35)] ring-1 ring-border/40"
>
<img class="h-16 w-auto" src={logoUrl} alt={m.layout_title()} />
</div>
</div>
<div class="login-card-wrap relative w-full sm:w-[26rem] sm:max-w-full">
- <div class="bg-primary/70 mb-8 h-px w-10 shadow-[0_0_8px_var(--primary)]"></div>
+ <div class="mb-8 h-px w-10 bg-primary/70 shadow-[0_0_8px_var(--primary)]"></div>
<div class="mb-8 flex flex-col text-left">
<h1 class="text-3xl font-semibold tracking-tight sm:text-[2rem]">{m.auth_welcome_back_title()}</h1>
- <p class="text-muted-foreground mt-2 text-sm">{m.auth_login_subtitle()}</p>
+ <p class="mt-2 text-sm text-muted-foreground">{m.auth_login_subtitle()}</p>
</div>
<div class="space-y-4">
@@ -282,11 +282,11 @@
{#if showDivider}
<div class="relative my-4">
<div class="absolute inset-0 flex items-center">
- <div class="border-border/60 w-full border-t"></div>
+ <div class="w-full border-t border-border/60"></div>
</div>
<div class="relative flex justify-center text-xs">
<span
- class="bg-card/70 ring-border/40 text-muted-foreground rounded-full border px-3 py-1 shadow-sm ring-1 backdrop-blur-md"
+ class="rounded-full border bg-card/70 px-3 py-1 text-muted-foreground shadow-sm ring-1 ring-border/40 backdrop-blur-md"
>
{m.auth_or_continue()}
</span>
@@ -305,13 +305,13 @@
href="https://github.com/ofkm/arcane"
target="_blank"
rel="noopener noreferrer"
- class="bg-card/50 ring-border/40 text-muted-foreground hover:text-foreground hover:bg-card/70 inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-xs shadow-sm ring-1 transition-colors"
+ class="inline-flex items-center gap-1.5 rounded-full border bg-card/50 px-3 py-1.5 text-xs text-muted-foreground shadow-sm ring-1 ring-border/40 transition-colors hover:bg-card/70 hover:text-foreground"
>
<GithubIcon class="size-3.5" />
{m.common_view_on_github()}
</a>
{#if data.versionInformation?.displayVersion}
- <span class="text-muted-foreground/60 font-mono text-[11px] tracking-wider"
+ <span class="font-mono text-[11px] tracking-wider text-muted-foreground/60"
>{data.versionInformation.displayVersion}</span
>
{/if}
@@ -325,7 +325,7 @@
href="https://github.com/ofkm/arcane"
target="_blank"
rel="noopener noreferrer"
- class="bg-card/50 ring-border/40 text-muted-foreground hover:text-foreground hover:bg-card/70 pointer-events-auto inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-xs shadow-sm ring-1 transition-colors"
+ class="pointer-events-auto inline-flex items-center gap-1.5 rounded-full border bg-card/50 px-3 py-1.5 text-xs text-muted-foreground shadow-sm ring-1 ring-border/40 transition-colors hover:bg-card/70 hover:text-foreground"
>
<GithubIcon class="size-3.5" />
{m.common_view_on_github()}
diff --git a/frontend/src/routes/(auth)/oidc/callback/+page.svelte b/frontend/src/routes/(auth)/oidc/callback/+page.svelte
index 78f5a2a68..ae64489e9 100644
--- a/frontend/src/routes/(auth)/oidc/callback/+page.svelte
+++ b/frontend/src/routes/(auth)/oidc/callback/+page.svelte
@@ -190,6 +190,6 @@
<!-- Defensive fallback: if neither branch matches (e.g. an
unexpected throw inside onSuccess), the user would otherwise
see a blank page with no way out. Always show a logout link. -->
- <p class="text-muted-foreground text-sm">{m.auth_processing_login()}</p>
- <a href="/logout" class="text-primary mt-6 text-xs underline">{m.common_logout()}</a>
+ <p class="text-sm text-muted-foreground">{m.auth_processing_login()}</p>
+ <a href="/logout" class="mt-6 text-xs text-primary underline">{m.common_logout()}</a>
</OidcStatusPanel>
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 16cea2739..f3c79439e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -164,15 +164,6 @@ importers:
marked:
specifier: ^18.0.6
version: 18.0.6
- prettier:
- specifier: ^3.9.3
- version: 3.9.5
- prettier-plugin-svelte:
- specifier: ^4.1.1
- prettier-plugin-tailwindcss:
- specifier: ^0.8.0
svelte:
specifier: ^5.56.4
version: 5.56.4
@@ -195,9 +186,6 @@ importers:
'@internationalized/date':
specifier: ^3.12.2
version: 3.12.2
- '@prettier/plugin-oxc':
- specifier: ^0.2.1
- version: 0.2.1
'@sveltejs/adapter-static':
specifier: '>=4.0.0-next.1'
@@ -234,6 +222,9 @@ importers:
mode-watcher:
specifier: ^1.1.0
version: 1.1.0([email protected])
+ oxfmt:
+ specifier: ^0.58.0
+ version: 0.58.0([email protected])
paneforge:
specifier: ^1.0.2
version: 1.0.2([email protected])
@@ -800,133 +791,6 @@ packages:
'@emnapi/core': ^1.7.1
'@emnapi/runtime': ^1.7.1
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-22EsXTA3Vc7OvrF4bfT48PFln2UbxkVgrp/Tm32qLw76Dv7SmcInfClJe6yPYamnli6HiqasnESZ5ezN+X4ybg==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [arm]
- os: [android]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-uASQkZV+CUQ6xXvoMzDQyfhd8OMusdv2FyCPfAi5ZDYptesapJlw7erhpGi1Lc+U8QjQV2JUrIh7d/3su2LzmQ==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [arm64]
- os: [android]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-vuQOv2WF5pZCkdSPEExul98o853M3MCR24DpWsGrUoPJu5KcnGE34kLXY2yFwBwZwT+eN1x40Tt4q6ZzlEdNUA==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [arm64]
- os: [darwin]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-zxZB8ChS+7XactZhcyxQ292P/DNiiBaPPKYiVUlb3RC0V/hme5bokNubjcmEmbW9uTfmqLTpveAdkbe66H3pGg==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [x64]
- os: [darwin]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-iw2MsoCPBQwdJqywRAGsF1jEAcGoZ+DeG2LVzt5pdUvRHqajsMF46BH0rHiWoWtMwcMSia+oQYga7fHo7u7Bcw==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [x64]
- os: [freebsd]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-SwjD/k3Y5bwGJWOH313VyaDrAuaYg1Pe+4AAXCgUKvSO5IHkj+mZ0oFcOWmB5nTuOM3uwdT+leL8h4OnFlI5hw==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [arm]
- os: [linux]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-qbeygDkcvailKFhphb2YGMMXsaZIynHlPtoOrcx4NZB/tRbUKraCCMbw8dPeFtEKasfS2qWh1VnReY+Lcys1zA==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [arm]
- os: [linux]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-SrlL02KeImKlvx/9rCeopOLH7qKI3rqKKEguK6KBwVwEGLhV/A47dW4DNigf6/LFhrwoovaiayEQryjYAI86dQ==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [arm64]
- os: [linux]
- libc: [glibc]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-u9e884ChAVRmIZ1jr/m46S96FoDQnruFjISLi4Y0i6Wu/JUUmIiw7+umLyXILJsPfUuqnN5BJLe23t07+Y6+IA==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [arm64]
- os: [linux]
- libc: [musl]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-Z9tU2b3GJfAXOdirQmz4gZQkQkVjy53i77gf91l0733MQKa/qtk73KQQE2GzDtMqim+HyjpzvemmqzBtH2IJUA==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [ppc64]
- os: [linux]
- libc: [glibc]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-RyUbr7hzPK84YDWKs77PRYk9VBwWbsbuYsQzQWiSmLnARXTg2zntLPGfCH/1wpfUYdmGkp/6SsqTXSsYdw9Jgw==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [riscv64]
- os: [linux]
- libc: [glibc]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-dcQhjtcDvtR8BgkUpt03Yz5SzxdzYvTigenIJOEsiSX6G2t6yybEMxGWjp0dOuYGror0BaqcZfTyXR58amCEig==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [riscv64]
- os: [linux]
- libc: [musl]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-iuGrxysV4rGUymdKpn7bgZQ6Vix8Bi/6D/rp71HYIzphq6NKrsBhsGOYsSZte+uBFL43tXh7Xr7TM72sGliJNA==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [s390x]
- os: [linux]
- libc: [glibc]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-NxJdZZyaa2JLLvNfH/iJQXfCNfKcPMylwY4ObMpBVmW4Nq+RyUpVVQXrMMelcQ6rwx3nuhF1Iga8n+eoAKGCIA==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [x64]
- os: [linux]
- libc: [glibc]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-ePxBvvtzISmSsJ0RIj8FNikSCn58i1jtccj7XR4U9Li4iSzhkFyYlnJ51cQTUwkairz8WMTD4SpKoot8RyTnQA==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [x64]
- os: [linux]
- libc: [musl]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-b/c2+mPXMOxG5x16n8yf9cjor/ntQQScmYnSmLEWIWJ4rfXd5dokMxx0kliSLA+YAGq6DD3K9BWi+aFXHiiV1w==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [arm64]
- os: [openharmony]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-rNU0pO+/CVPC2qZ+xtX5R2cOje9Q75q3UkfgwUCPlplqxMv6Iffd5tMPGVMCLGnPINxPlmi0WPsW94HltbYvfQ==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [wasm32]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-JPEmfncZfqAFiGsAN6UZSMIBqnG8wn8buywRacFOWjP+9dZwcs03SsBp4tmyjM/4l/VoH/IuThrW1Jof3OyQUw==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [arm64]
- os: [win32]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-c06dWBwEnFHof5JN7T9/ts23uATXS9czPEBO60d4xnjH2Am29Bo7OGKdVHRmcWQnw0OBxlTg9fIEXAvtcwOBfw==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [ia32]
- os: [win32]
-
- '@oxc-parser/[email protected]':
- resolution: {integrity: sha512-bI3/44urQjW/D495JPXe+c9d+4Q+ONi3DvDNnzwRZYTWHZ3hAlFdmirYK4mzhTfCZiAly02EbMYir7QGU+9O2Q==}
- engines: {node: ^20.19.0 || >=22.12.0}
- cpu: [x64]
- os: [win32]
-
'@oxc-project/[email protected]':
resolution: {integrity: sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==}
@@ -1063,10 +927,6 @@ packages:
'@poppinss/[email protected]':
resolution: {integrity: sha512-FAVBRzzWhYP5mA3lCwLH1A0fKBqq5anyjGet90Z81aRK5c/+LTGUE1zJhZrErjaenBSOOI9BVUs3WVmotneFQA==}
- '@prettier/[email protected]':
- resolution: {integrity: sha512-Dog+deCMG5ozJTLmNNSC8GJhTg9DY69KEu3iJZtcMoyEWcrxFUhlc7aW/70gGv/IviT/QyhlH8AmTUOyEhnkDQ==}
- engines: {node: '>=14'}
-
'@react-email/[email protected]':
resolution: {integrity: sha512-F+zE3O6d6sW6Aj2UjvZAA17R7tJKM7kcq2mgV6k4HCT8jeLLFaVP2txMtH1lgqYFRMZ0Gxsd37q2PRyiXLXXxA==}
engines: {node: '>=20.0.0'}
@@ -2373,10 +2233,6 @@ packages:
resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-cf1TKZN+zc0lwqigeyXKzKVk5+vNRe99Or2+wVJsXLdlhJgC+gsIniYDfj/ZEBzCJ8Xm21ZG6YtMbR262CcS2w==}
- engines: {node: ^20.19.0 || >=22.12.0}
-
resolution: {integrity: sha512-8feG/7NVEHDVwc1OUpP6Pks+TnaDFUw2jLLFIMi5bcmmwxAX2wBQvjSzj62RRTYBf2Op1Wt8xbkmagmPTR5ETg==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -2445,68 +2301,6 @@ packages:
resolution: {integrity: sha512-J7EF+8X+CzRPaJPOv9Ck2wNWJvGnnl3PcNPAdGg6GTLjyVpyQ0yATMSXRFRV01BviT/9Gwuc3rjEyJbDJG9a4w==}
engines: {node: ^10 || ^12 || >=14}
- resolution: {integrity: sha512-wXvbXMjSvb4C9ENWTHXyd+ihakKCsJ6rJhLP6/8HFNj4GkZr48jqL9PoKsl2sk7SyCZRTnJ7O2TTowUpOxP/KA==}
- engines: {node: '>=20'}
- peerDependencies:
- prettier: ^3.0.0
- svelte: ^5.0.0
-
- resolution: {integrity: sha512-V8ITGH87yuBDF6JpEZTOVlUz/saAwqb8f3HRgUj8Lh+tGCcrmorhsLpYqzygwFwK0PE2Ib6Mv3M7T/uE2tZV1g==}
- engines: {node: '>=20.19'}
- peerDependencies:
- '@ianvs/prettier-plugin-sort-imports': '*'
- '@prettier/plugin-hermes': '*'
- '@prettier/plugin-oxc': '*'
- '@prettier/plugin-pug': '*'
- '@shopify/prettier-plugin-liquid': '*'
- '@trivago/prettier-plugin-sort-imports': '*'
- '@zackad/prettier-plugin-twig': '*'
- prettier: ^3.0
- prettier-plugin-astro: '*'
- prettier-plugin-css-order: '*'
- prettier-plugin-jsdoc: '*'
- prettier-plugin-marko: '*'
- prettier-plugin-multiline-arrays: '*'
- prettier-plugin-organize-attributes: '*'
- prettier-plugin-organize-imports: '*'
- prettier-plugin-sort-imports: '*'
- prettier-plugin-svelte: '*'
- peerDependenciesMeta:
- '@ianvs/prettier-plugin-sort-imports':
- optional: true
- '@prettier/plugin-hermes':
- optional: true
- '@prettier/plugin-oxc':
- optional: true
- '@prettier/plugin-pug':
- optional: true
- '@shopify/prettier-plugin-liquid':
- optional: true
- '@trivago/prettier-plugin-sort-imports':
- optional: true
- '@zackad/prettier-plugin-twig':
- optional: true
- prettier-plugin-astro:
- optional: true
- prettier-plugin-css-order:
- optional: true
- prettier-plugin-jsdoc:
- optional: true
- prettier-plugin-marko:
- optional: true
- prettier-plugin-multiline-arrays:
- optional: true
- prettier-plugin-organize-attributes:
- optional: true
- prettier-plugin-organize-imports:
- optional: true
- prettier-plugin-sort-imports:
- optional: true
- prettier-plugin-svelte:
- optional: true
-
resolution: {integrity: sha512-/FVl766LpUfB5vXgCYOYa0MeV/441Ia99AeICQIQFTY/Nw0roZwULcXpku5i1/m5kt/baz+s4Zogspd839HSMg==}
engines: {node: '>=14'}
@@ -3585,70 +3379,6 @@ snapshots:
'@tybys/wasm-util': 0.10.3
optional: true
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- dependencies:
- '@emnapi/core': 1.11.1
- '@emnapi/runtime': 1.11.1
- '@napi-rs/wasm-runtime': 1.1.6(@emnapi/[email protected])(@emnapi/[email protected])
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
- '@oxc-parser/[email protected]':
- optional: true
-
'@oxc-project/[email protected]': {}
@@ -3717,10 +3447,6 @@ snapshots:
'@poppinss/[email protected]':
optional: true
- '@prettier/[email protected]':
- dependencies:
- oxc-parser: 0.139.0
-
dependencies:
entities: 4.5.0
@@ -4852,31 +4578,6 @@ snapshots:
dependencies:
mimic-function: 5.0.1
- dependencies:
- '@oxc-project/types': 0.139.0
- optionalDependencies:
- '@oxc-parser/binding-android-arm-eabi': 0.139.0
- '@oxc-parser/binding-android-arm64': 0.139.0
- '@oxc-parser/binding-darwin-arm64': 0.139.0
- '@oxc-parser/binding-darwin-x64': 0.139.0
- '@oxc-parser/binding-freebsd-x64': 0.139.0
- '@oxc-parser/binding-linux-arm-gnueabihf': 0.139.0
- '@oxc-parser/binding-linux-arm-musleabihf': 0.139.0
- '@oxc-parser/binding-linux-arm64-gnu': 0.139.0
- '@oxc-parser/binding-linux-arm64-musl': 0.139.0
- '@oxc-parser/binding-linux-ppc64-gnu': 0.139.0
- '@oxc-parser/binding-linux-riscv64-gnu': 0.139.0
- '@oxc-parser/binding-linux-riscv64-musl': 0.139.0
- '@oxc-parser/binding-linux-s390x-gnu': 0.139.0
- '@oxc-parser/binding-linux-x64-gnu': 0.139.0
- '@oxc-parser/binding-linux-x64-musl': 0.139.0
- '@oxc-parser/binding-openharmony-arm64': 0.139.0
- '@oxc-parser/binding-wasm32-wasi': 0.139.0
- '@oxc-parser/binding-win32-arm64-msvc': 0.139.0
- '@oxc-parser/binding-win32-ia32-msvc': 0.139.0
- '@oxc-parser/binding-win32-x64-msvc': 0.139.0
-
dependencies:
tinypool: 2.1.0
@@ -4960,18 +4661,6 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.1
- dependencies:
- prettier: 3.9.5
- svelte: 5.56.4
-
- dependencies:
- prettier: 3.9.5
- optionalDependencies:
- '@prettier/plugin-oxc': 0.2.1
- prettier-plugin-svelte: 4.1.1([email protected])([email protected])
-
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 6b28f9b13..4a8ac306b 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -37,7 +37,6 @@ allowBuilds:
esbuild: true
sharp: true
minimumReleaseAgeExclude:
- "@fallow-cli/[email protected]"
- "@fallow-cli/[email protected]"
- "@fallow-cli/[email protected]"
diff --git a/tests/.oxfmtrc.json b/tests/.oxfmtrc.json
index 9501a0894..951d4a6ec 100644
--- a/tests/.oxfmtrc.json
+++ b/tests/.oxfmtrc.json
@@ -4,5 +4,6 @@
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
- "sortPackageJson": true
+ "sortPackageJson": true,
+ "ignorePatterns": [".auth/**", ".bin/**", ".report/**", "test-results/**"]
}
diff --git a/tests/package.json b/tests/package.json
index 9d6af73ca..6484ebaec 100644
--- a/tests/package.json
+++ b/tests/package.json
@@ -1,15 +1,17 @@
{
- "type": "module",
- "name": "arcane-tests",
- "scripts": {
- "preinstall": "npx only-allow pnpm",
- "check": "tsc --noEmit",
- "test": "playwright test"
- },
- "devDependencies": {
- "@playwright/test": "^1.61.1",
- "@types/node": "^26.1.0",
- "oxfmt": "^0.58.0",
+ "name": "arcane-tests",
+ "type": "module",
+ "scripts": {
+ "preinstall": "npx only-allow pnpm",
+ "check": "tsc --noEmit",
+ "format": "oxfmt",
+ "format:check": "oxfmt --check",
+ "test": "playwright test"
+ },
+ "devDependencies": {
+ "@playwright/test": "^1.61.1",
+ "@types/node": "^26.1.0",
+ "oxfmt": "^0.58.0",
"typescript": "^6.0.3"
- }
+ }
}
diff --git a/tests/setup/gitops-test-repo/compose.yaml b/tests/setup/gitops-test-repo/compose.yaml
index a4e6e3ca9..5278f929a 100644
--- a/tests/setup/gitops-test-repo/compose.yaml
+++ b/tests/setup/gitops-test-repo/compose.yaml
@@ -3,7 +3,7 @@ services:
image: nginx:alpine
container_name: gitops-test-nginx
ports:
- - "8888:80"
+ - '8888:80'
volumes:
- nginx_data:/usr/share/nginx/html
diff --git a/tests/setup/projects/test-project-static/compose.yaml b/tests/setup/projects/test-project-static/compose.yaml
index d13d59024..29e47724f 100644
--- a/tests/setup/projects/test-project-static/compose.yaml
+++ b/tests/setup/projects/test-project-static/compose.yaml
@@ -5,7 +5,7 @@ services:
env_file:
- .env
ports:
- - "8081:80"
+ - '8081:80'
volumes:
- nginx_data:/usr/share/nginx/html
restart: unless-stopped
diff --git a/tests/tsconfig.json b/tests/tsconfig.json
index b25726c10..3814154f7 100644
--- a/tests/tsconfig.json
+++ b/tests/tsconfig.json
@@ -1,14 +1,14 @@
{
- "compilerOptions": {
- "paths": { "*": ["./*"] },
- "lib": ["ES2022", "DOM", "DOM.Iterable"],
- "module": "ESNext",
- "moduleResolution": "bundler",
- "target": "ES2022",
- "esModuleInterop": true,
- "noEmit": true,
- "skipLibCheck": true,
- "strict": true,
- "types": ["node"]
- }
+ "compilerOptions": {
+ "paths": { "*": ["./*"] },
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "moduleResolution": "bundler",
+ "target": "ES2022",
+ "esModuleInterop": true,
+ "noEmit": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "types": ["node"]
+ }
}