fix: cursor-pointer shenanigans

This commit is contained in:
James Xylight committed 2025-06-06 11:39:40 -07:00
1 parent f3602a546b
commit 8fe9660bc5
2 files changed
+35 -23

No files matched your search

@@ -48,14 +48,19 @@
</script>
<div
class="h-full flex items-center overflow-hidden {buttonColor.ghost} rounded-full hover:bg-transparent font-medium"
class={[
'h-full flex items-center overflow-hidden rounded-full hover:bg-transparent font-medium',
buttonColor.ghost,
]}
>
<button
onclick={() => castVote(vote == 1 ? 0 : 1)}
class="flex items-center gap-0.5 transition-colors px-1.5 h-full
{vote == 1
? shouldShowVoteColor(vote, 'upvotes')
: 'hover:bg-slate-100 dark:hover:bg-zinc-800'}"
class={[
'flex items-center gap-0.5 transition-colors px-1.5 h-full cursor-pointer',
vote == 1
? shouldShowVoteColor(vote, 'upvotes')
: 'hover:bg-slate-100 dark:hover:bg-zinc-800',
]}
>
<Icon src={ChevronUp} size="18" mini />
<span class="grid text-sm">
@@ -75,10 +80,12 @@
></div>
<button
onclick={() => castVote(vote == -1 ? 0 : -1)}
class="flex flex-row-reverse items-center gap-0.5 h-full transition-colors border-0 px-1.5
{vote == -1
? shouldShowVoteColor(vote, 'downvotes')
: 'hover:bg-slate-100 dark:hover:bg-zinc-800'}"
class={[
'flex flex-row-reverse items-center gap-0.5 transition-colors px-1.5 h-full cursor-pointer',
vote == 1
? shouldShowVoteColor(vote, 'upvotes')
: 'hover:bg-slate-100 dark:hover:bg-zinc-800',
]}
>
<Icon src={ChevronDown} size="18" mini />
<span class="grid text-sm">