misc: tweak comment actions

This commit is contained in:
Xylight committed 2024-08-15 17:34:02 -07:00
1 parent c4dfa7daa8
commit d950796ccd
3 files changed
+18 -11

No files matched your search

@@ -38,10 +38,12 @@
}
</script>
<div class="rounded-lg h-full flex items-center [&>*]:p-2 overflow-hidden">
<div
class="h-full flex items-center overflow-hidden {buttonColor.ghost} rounded-full hover:bg-transparent"
>
<button
on:click={() => castVote(vote == 1 ? 0 : 1)}
class="flex items-center gap-0.5 {buttonColor.tertiary} transition-colors border-0 !pl-2 !pr-3
class="flex items-center gap-0.5 transition-colors px-1.5 h-full {buttonColor.tertiary}
{vote == 1 ? shouldShowVoteColor(vote, 'upvotes') : ''}"
>
<Icon src={ChevronUp} size="18" mini />
@@ -58,11 +60,11 @@
</span>
</button>
<div
class="border-l h-6 w-0 !p-0 border-slate-200 dark:border-zinc-800"
class="border-l h-4 w-0 !p-0 border-slate-200 dark:border-zinc-800"
></div>
<button
on:click={() => castVote(vote == -1 ? 0 : -1)}
class="flex items-center gap-0.5 {buttonColor.tertiary} transition-colors border-0 !pr-2
class="flex flex-row-reverse items-center gap-0.5 h-full {buttonColor.tertiary} transition-colors border-0 px-1.5
{vote == -1 ? shouldShowVoteColor(vote, 'downvotes') : ''}"
>
<Icon src={ChevronDown} size="18" mini />