From bc553804ce9e3b6373e4092dac43e5fbf8f971c2 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Mon, 14 Aug 2023 17:00:54 -0700 Subject: [PATCH] feat: new vote design --- .../components/lemmy/comment/Comment.svelte | 1 + .../lemmy/comment/CommentActions.svelte | 9 +--- .../components/lemmy/post/PostActions.svelte | 4 +- src/lib/components/lemmy/post/PostVote.svelte | 54 ++++++++++++------- 4 files changed, 40 insertions(+), 28 deletions(-) diff --git a/src/lib/components/lemmy/comment/Comment.svelte b/src/lib/components/lemmy/comment/Comment.svelte index 4a39c875..ae5266dc 100644 --- a/src/lib/components/lemmy/comment/Comment.svelte +++ b/src/lib/components/lemmy/comment/Comment.svelte @@ -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 diff --git a/src/lib/components/lemmy/comment/CommentActions.svelte b/src/lib/components/lemmy/comment/CommentActions.svelte index 784122c7..905f45e4 100644 --- a/src/lib/components/lemmy/comment/CommentActions.svelte +++ b/src/lib/components/lemmy/comment/CommentActions.svelte @@ -62,7 +62,7 @@ const dispatcher = createEventDispatcher<{ edit: CommentView }>() -
+
{/if} - + - - + + + + + +