Revert "feat: add customizable keyboard navigation"

This commit is contained in:
Xylight authored and GitHub committed 2025-08-15 06:31:23 -07:00
1 parent 4e7c37bd89
commit f9a6e775f3
17 files changed
+39 -306

No files matched your search

-71
View File
@@ -66,13 +66,10 @@
User,
VideoCamera,
ViewColumns,
ViewfinderCircle,
} from 'svelte-hero-icons'
import Section from './Section.svelte'
import Setting from './Setting.svelte'
import ToggleSetting from './ToggleSetting.svelte'
import Expandable from '$lib/components/ui/Expandable.svelte'
import CommonList from '$lib/components/ui/layout/CommonList.svelte'
let importing = $state(false)
let importText = $state('')
@@ -464,74 +461,6 @@
description={$t('settings.app.titleTags.description')}
bind:checked={settings.parseTags}
/>
<Setting icon={ViewfinderCircle} adaptive={false}>
{#snippet title()}
{$t('settings.app.keybinds.title')}
{/snippet}
{#snippet description()}
{$t('settings.app.keybinds.description')}
{/snippet}
</Setting>
<li>
<Expandable>
{#snippet title()}
{$t('nav.commands.feeds')}
{/snippet}
<CommonList depth={2}>
{#each Object.entries(settings.keybinds.lists) as [key, value] (key)}
<li class="flex items-center justify-between gap-2 secondary">
<div class="capitalize font-medium">{key}</div>
<TextInput bind:value={value.key} size="sm" class="w-24" />
</li>
{/each}
</CommonList>
</Expandable>
</li>
<li>
<Expandable>
{#snippet title()}
{$t('content.posts')}
{/snippet}
<CommonList depth={2}>
{#each Object.entries(settings.keybinds.posts) as [key, value] (key)}
<li class="flex items-center justify-between gap-2 secondary">
<div class="capitalize font-medium">{key}</div>
<TextInput bind:value={value.key} size="sm" class="w-24" />
</li>
{/each}
</CommonList>
</Expandable>
</li>
<li>
<Expandable>
{#snippet title()}
{$t('content.comments')}
{/snippet}
<CommonList depth={2}>
{#each Object.entries(settings.keybinds.comments) as [key, value] (key)}
<li class="flex items-center justify-between gap-2 secondary">
<div class="capitalize font-medium">{key}</div>
<TextInput bind:value={value.key} size="sm" class="w-24" />
</li>
{/each}
</CommonList>
</Expandable>
</li>
<li>
<Expandable>
{#snippet title()}
{$t('nav.commands.prompt')}
{/snippet}
<CommonList depth={2}>
{#each Object.entries(settings.keybinds.commandPalette) as [key, value] (key)}
<li class="flex items-center justify-between gap-2 secondary">
<div class="capitalize font-medium">{key}</div>
<TextInput bind:value={value.key} size="sm" class="w-24" />
</li>
{/each}
</CommonList>
</Expandable>
</li>
</Section>
<Section id="embeds" title={$t('settings.embeds.title')}>
+2 -4
View File
@@ -22,7 +22,6 @@
description?: import('svelte').Snippet
children?: import('svelte').Snippet
icon?: IconSource
adaptive?: boolean
}
let {
@@ -38,7 +37,6 @@
description,
children,
icon,
adaptive = true,
}: Props = $props()
</script>
@@ -76,7 +74,7 @@
{/if}
</div>
{/if}
<div class={['setting-grid items-center', adaptive && 'adaptive', clazz]}>
<div class={['setting-grid items-center', clazz]}>
{#if icon}
<Icon
src={icon}
@@ -126,7 +124,7 @@
}
@media screen and (min-width: 768px) {
.setting-grid.adaptive {
.setting-grid {
display: grid;
grid-template-columns: auto 1fr auto;
grid-template-rows: auto auto;