From 4bdc14041029e5714ac6a6cf33a57887e27fde6d Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Fri, 8 Sep 2023 16:38:22 -0700 Subject: [PATCH] feat: add animation to comment collapsing --- .../components/lemmy/comment/Comment.svelte | 36 +- src/lib/components/ui/Navbar.svelte | 4 - yarn-error.log | 4473 +++++++++++++++++ 3 files changed, 4480 insertions(+), 33 deletions(-) create mode 100644 yarn-error.log diff --git a/src/lib/components/lemmy/comment/Comment.svelte b/src/lib/components/lemmy/comment/Comment.svelte index 7ae0a4f9..c5231769 100644 --- a/src/lib/components/lemmy/comment/Comment.svelte +++ b/src/lib/components/lemmy/comment/Comment.svelte @@ -15,7 +15,7 @@ import Markdown from '$lib/components/markdown/Markdown.svelte' import CommentActions from '$lib/components/lemmy/comment/CommentActions.svelte' import { getClient } from '$lib/lemmy.js' - import { toast } from 'mono-svelte' + import { Disclosure, toast } from 'mono-svelte' import { profile } from '$lib/auth.js' import { Button, Modal } from 'mono-svelte' import { publishedToDate } from '$lib/components/util/date.js' @@ -78,8 +78,9 @@ class="py-2 {$$props.class}" id="#{node.comment_view.comment.id.toString()}" > -
- +
@@ -94,14 +95,6 @@ {/if} - {#if !open} -
- - {node.comment_view.counts.score} -
- {/if} @@ -138,25 +131,10 @@ /> {/if}
- -
+
@@ -194,5 +172,5 @@
-
+ diff --git a/src/lib/components/ui/Navbar.svelte b/src/lib/components/ui/Navbar.svelte index 2401ff03..fe4cbe6c 100644 --- a/src/lib/components/ui/Navbar.svelte +++ b/src/lib/components/ui/Navbar.svelte @@ -38,12 +38,8 @@ UserCircle, UserGroup, } from 'svelte-hero-icons' - - let scrollY = 0 - -