Revert "feat: add customizable keyboard navigation"
This commit is contained in:
1 parent
4e7c37bd89
commit
f9a6e775f3
17 files changed
+39
-306
No files matched your search
@@ -12,7 +12,6 @@
|
||||
type PostFeedID,
|
||||
} from '$lib/lemmy/postfeed.svelte'
|
||||
import { settings } from '$lib/settings.svelte.js'
|
||||
import { keybindFeed } from '$lib/ui/keybinds.svelte'
|
||||
import type { PostView } from 'lemmy-js-client'
|
||||
import { Button } from 'mono-svelte'
|
||||
import { onDestroy, onMount, untrack } from 'svelte'
|
||||
@@ -171,8 +170,6 @@
|
||||
})
|
||||
</script>
|
||||
|
||||
<svelte:body onkeydown={keybindFeed()} />
|
||||
|
||||
<ul class="flex flex-col list-none" bind:this={listEl}>
|
||||
{#key posts}
|
||||
{#if posts?.length == 0}
|
||||
@@ -203,9 +200,10 @@
|
||||
>
|
||||
{#snippet item(row)}
|
||||
<li
|
||||
data-index={row}
|
||||
style={row < 7 ? `--anim-delay: ${row * 50}ms` : ''}
|
||||
class={[
|
||||
'relative post-container px-3 sm:px-6 z-0',
|
||||
'relative post-container px-3 sm:px-6',
|
||||
row < 7 && 'pop-in opacity-0',
|
||||
]}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user