feat: add comment keybind navigation

This commit is contained in:
James Xylight committed 2025-08-07 21:21:23 -07:00
1 parent 0ca8f7474e
commit 7e2e7c513c
10 files changed
+152 -52

No files matched your search

@@ -29,6 +29,7 @@
replying?: boolean
disabled?: boolean
onedit?: (comment: CommentView) => void
voteComponent?: { castVote: (vote: number) => void }
}
let {
@@ -36,6 +37,7 @@
replying = $bindable(false),
disabled = false,
onedit,
voteComponent,
}: Props = $props()
</script>
@@ -48,6 +50,7 @@
downvotes={comment.counts.downvotes}
vote={comment.my_vote}
commentId={comment.comment.id}
bind:this={voteComponent}
/>
<Button
size="sm"
@@ -73,7 +76,7 @@
class="text-slate-600 dark:text-zinc-400"
>
{#snippet prefix()}
<Icon src={EllipsisHorizontal} width={16} height={16} mini />
<Icon src={EllipsisHorizontal} size="16" micro />
{/snippet}
</Button>
{/snippet}