diff --git a/.vscode/settings.json b/.vscode/settings.json index 0645a6c7..e76e1688 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { "i18n-ally.localesPaths": ["src/lib/i18n"], "i18n-ally.keystyle": "nested", - "prettier.prettierPath": "prettier" + "prettier.prettierPath": "" } diff --git a/src/lib/components/ui/navbar/NavButton.svelte b/src/lib/components/ui/navbar/NavButton.svelte index 87848b05..30e95b22 100644 --- a/src/lib/components/ui/navbar/NavButton.svelte +++ b/src/lib/components/ui/navbar/NavButton.svelte @@ -3,8 +3,9 @@ import { Button } from 'mono-svelte' import { Icon, type IconSource } from 'svelte-hero-icons' import { dockProps } from '../layout/Shell.svelte' + import type { ButtonProps } from 'mono-svelte/button/Button.svelte' - interface Props { + interface Props extends ButtonProps { label: string icon?: IconSource | undefined href?: string | undefined diff --git a/src/lib/components/ui/navbar/Navbar.svelte b/src/lib/components/ui/navbar/Navbar.svelte index 6dfa705d..fbd4c6ea 100644 --- a/src/lib/components/ui/navbar/Navbar.svelte +++ b/src/lib/components/ui/navbar/Navbar.svelte @@ -25,8 +25,6 @@ import { LINKED_INSTANCE_URL } from '$lib/instance' import { t } from '$lib/translations' import CommandsWrapper from './commands/CommandsWrapper.svelte' - import { optimizeImageURL } from '$lib/components/lemmy/post/helpers' - import { dockProps } from '../layout/Shell.svelte' let promptOpen: boolean = $state(false) interface Props { diff --git a/src/lib/components/ui/navbar/commands/Commands.svelte b/src/lib/components/ui/navbar/commands/Commands.svelte index 2791984a..ccbb1a1e 100644 --- a/src/lib/components/ui/navbar/commands/Commands.svelte +++ b/src/lib/components/ui/navbar/commands/Commands.svelte @@ -223,9 +223,6 @@ } } - afterNavigate(() => { - // open = false - }) $effect(() => { if (open) search = '' }) diff --git a/src/lib/mono/button/Button.svelte b/src/lib/mono/button/Button.svelte index 93984a16..6bb2cfdf 100644 --- a/src/lib/mono/button/Button.svelte +++ b/src/lib/mono/button/Button.svelte @@ -62,13 +62,6 @@ 'square-xl': 'w-12 h-12', custom: '', } - - - + +