fix: command palette being disabled

This commit is contained in:
Xylight committed 2024-09-26 17:12:47 -07:00
1 parent 180d6fcc0d
commit 360855ac2c
4 files changed
+3 -10

No files matched your search

@@ -41,9 +41,7 @@
let promptOpen: boolean = false let promptOpen: boolean = false
</script> </script>
{#if $userSettings.dock.commands}
<CommandsWrapper bind:open={promptOpen} /> <CommandsWrapper bind:open={promptOpen} />
{/if}
<nav <nav
class="flex flex-row gap-2 items-center w-full mx-auto z-50 box-border p-0.5 class="flex flex-row gap-2 items-center w-full mx-auto z-50 box-border p-0.5
duration-150 @container duration-150 @container
+1 -1
View File
@@ -30,6 +30,6 @@
} }
} }
.animate-spin { .animate-spin {
animation: spin 0.8s linear infinite; animation: spin 0.2s linear infinite;
} }
</style> </style>
+2 -2
View File
@@ -87,7 +87,7 @@ interface Settings {
noGap: boolean | null noGap: boolean | null
top: boolean | null top: boolean | null
pins: Link[] pins: Link[]
commands: boolean paletteHotkey: string
} }
posts: { posts: {
deduplicateEmbed: boolean deduplicateEmbed: boolean
@@ -168,7 +168,7 @@ export const defaultSettings: Settings = {
noGap: toBool(env.PUBLIC_DOCK_PANEL) ?? null, noGap: toBool(env.PUBLIC_DOCK_PANEL) ?? null,
top: toBool(env.PUBLIC_DOCK_TOP) ?? null, top: toBool(env.PUBLIC_DOCK_TOP) ?? null,
pins: [], pins: [],
commands: true, paletteHotkey: '/',
}, },
posts: { posts: {
deduplicateEmbed: toBool(env.PUBLIC_DEDUPLICATE_EMBED) ?? true, deduplicateEmbed: toBool(env.PUBLIC_DEDUPLICATE_EMBED) ?? true,
-5
View File
@@ -480,11 +480,6 @@
{/each} {/each}
</div> </div>
</Setting> </Setting>
<ToggleSetting
title={$t('settings.navigation.commands.title')}
description={$t('settings.navigation.commands.description')}
bind:checked={$userSettings.dock.commands}
/>
</Section> </Section>
<Section id="embeds" title={$t('settings.embeds.title')}> <Section id="embeds" title={$t('settings.embeds.title')}>