fix: comment vote color
This commit is contained in:
1 file changed
+1
-1
@@ -82,7 +82,7 @@
|
|||||||
onclick={() => castVote(vote == -1 ? 0 : -1)}
|
onclick={() => castVote(vote == -1 ? 0 : -1)}
|
||||||
class={[
|
class={[
|
||||||
'flex flex-row-reverse items-center gap-0.5 transition-colors px-1.5 h-full cursor-pointer',
|
'flex flex-row-reverse items-center gap-0.5 transition-colors px-1.5 h-full cursor-pointer',
|
||||||
vote == 1
|
vote == -1
|
||||||
? shouldShowVoteColor(vote, 'upvotes')
|
? shouldShowVoteColor(vote, 'upvotes')
|
||||||
: 'hover:bg-slate-100 dark:hover:bg-zinc-800',
|
: 'hover:bg-slate-100 dark:hover:bg-zinc-800',
|
||||||
]}
|
]}
|
||||||
|
|||||||
Reference in new issue
Block a user