feat: new vote design
This commit is contained in:
1 parent
6630b89bce
commit
bc553804ce
4 files changed
+40
-28
No files matched your search
@@ -18,6 +18,7 @@
|
||||
import { getClient } from '$lib/lemmy.js'
|
||||
import { toast } from '$lib/components/ui/toasts/toasts.js'
|
||||
import { profile } from '$lib/auth.js'
|
||||
import { slide } from 'svelte/transition'
|
||||
|
||||
export let node: CommentNodeI
|
||||
export let postId: number
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
const dispatcher = createEventDispatcher<{ edit: CommentView }>()
|
||||
</script>
|
||||
|
||||
<div class="flex flex-row gap-2 items-center mt-1 h-[26px] relative">
|
||||
<div class="flex flex-row gap-2 items-center mt-1 h-7 relative">
|
||||
<CommentVote
|
||||
bind:score={comment.counts.score}
|
||||
bind:vote={comment.my_vote}
|
||||
@@ -80,16 +80,11 @@
|
||||
{#if $profile?.user && (amMod($profile?.user, comment.community) || isAdmin($profile.user))}
|
||||
<CommentModerationMenu bind:item={comment} />
|
||||
{/if}
|
||||
<Menu
|
||||
let:toggleOpen
|
||||
class="h-[26px] top-0 leading-3"
|
||||
alignment="bottom-center"
|
||||
>
|
||||
<Menu let:toggleOpen class="h-7 top-0 leading-3" alignment="bottom-center">
|
||||
<Button
|
||||
slot="button"
|
||||
color="elevatedLow"
|
||||
on:click={toggleOpen}
|
||||
size="sm"
|
||||
class="!p-1"
|
||||
aria-label="Comment actions"
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user