feat: add individual post keybinds

This commit is contained in:
James Xylight committed 2025-08-07 18:30:08 -07:00
1 parent 04bd862d59
commit 2342e89f3d
6 files changed
+111 -34

No files matched your search

@@ -34,6 +34,7 @@
style?: string
onedit?: (post: PostView) => void
onhide?: (hide: boolean) => void
voteComponent?: { castVote: (vote: number) => void }
}
let {
@@ -41,6 +42,7 @@
view = 'cozy',
debug = $bindable(false),
style = '',
voteComponent = $bindable(),
onedit,
onhide,
}: Props = $props()
@@ -89,6 +91,7 @@
bind:score={post.counts.score}
bind:upvotes={post.counts.upvotes}
bind:downvotes={post.counts.downvotes}
bind:this={voteComponent}
showCounts={profile.current?.user?.local_user_view?.local_user
?.show_scores ?? true}
/>