diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 2ef5fc125..f6427789d 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -51,8 +51,10 @@ jobs: - name: ESLint working-directory: Website/ + if: success() || failure() run: pnpm run lint:eslint - name: svelte-check working-directory: Website/ + if: success() || failure() run: pnpm run check diff --git a/Website/src/lib/components/select/select.svelte b/Website/src/lib/components/select/select.svelte index 187d79795..772c08e0f 100644 --- a/Website/src/lib/components/select/select.svelte +++ b/Website/src/lib/components/select/select.svelte @@ -31,6 +31,7 @@ className, '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:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50' )} + class:placeholder-selected={value === ''} {id} bind:value use:field @@ -52,4 +53,8 @@ grid-template-areas: 'select'; align-items: center; } + + .placeholder-selected { + color: hsl(var(--muted-foreground)); + } diff --git a/Website/src/lib/translations/en/save-editor.json b/Website/src/lib/translations/en/save-editor.json index a74fcd996..b35c4093e 100644 --- a/Website/src/lib/translations/en/save-editor.json +++ b/Website/src/lib/translations/en/save-editor.json @@ -929,4 +929,4 @@ } } } -} \ No newline at end of file +} diff --git a/Website/src/routes/(main)/account/save-editor/staged.svelte b/Website/src/routes/(main)/account/save-editor/staged.svelte index 6710ab8c6..1ef4d7d0e 100644 --- a/Website/src/routes/(main)/account/save-editor/staged.svelte +++ b/Website/src/routes/(main)/account/save-editor/staged.svelte @@ -7,7 +7,7 @@ import * as Card from '$shadcn/components/ui/card'; import StagedPresent from './present/stagedPresent.svelte'; - import { changesCount,presents } from './stores'; + import { changesCount, presents } from './stores'; $: anyModifications = $changesCount > 0;