castVote(vote == 1 ? 0 : 1)} 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', ]} >
{#key upvotes}
{/key}
castVote(vote == -1 ? 0 : -1)} class={[ 'flex flex-row-reverse items-center gap-0.5 transition-colors px-1.5 h-full cursor-pointer', vote == -1 ? shouldShowVoteColor(vote, 'downvotes') : 'hover:bg-slate-100 dark:hover:bg-zinc-800', ]} >
{#key downvotes}
{/key}