diff --git a/src/lib/feature/comment/CommentVote.svelte b/src/lib/feature/comment/CommentVote.svelte index 48193f51..09710b62 100644 --- a/src/lib/feature/comment/CommentVote.svelte +++ b/src/lib/feature/comment/CommentVote.svelte @@ -28,6 +28,7 @@ }: Props = $props() const castVote = async (newVote: number) => { + if (navigator.vibrate) navigator.vibrate(1) if (!profile.current?.jwt) { toast({ content: $t('toast.loginVoteGate'), type: 'warning' }) return @@ -82,7 +83,7 @@ vote, target == 'upvote' ? 'upvotes' : 'downvotes', ) - : 'hover:bg-slate-100 dark:hover:bg-zinc-800', + : 'btn-tertiary', ]} aria-pressed={vote == targetNum} aria-label={$t( diff --git a/src/lib/feature/post/PostVote.svelte b/src/lib/feature/post/PostVote.svelte index bda3fd2f..0f141187 100644 --- a/src/lib/feature/post/PostVote.svelte +++ b/src/lib/feature/post/PostVote.svelte @@ -1,7 +1,7 @@