From 4f9219596abf3bc1052e79883a68cba2bcee30ac Mon Sep 17 00:00:00 2001 From: James Xylight Date: Tue, 4 Feb 2025 06:41:49 -0800 Subject: [PATCH] fix: inbox comments closed by default --- src/lib/components/lemmy/comment/CommentItem.svelte | 10 ++++++---- src/routes/inbox/InboxItem.svelte | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/lib/components/lemmy/comment/CommentItem.svelte b/src/lib/components/lemmy/comment/CommentItem.svelte index 884a172a..21631d35 100644 --- a/src/lib/components/lemmy/comment/CommentItem.svelte +++ b/src/lib/components/lemmy/comment/CommentItem.svelte @@ -15,6 +15,7 @@ community?: boolean meta?: boolean class?: string + commentClass?: string [key: string]: any } @@ -24,14 +25,14 @@ community = false, meta = true, class: clazz = '', + commentClass = '', ...rest }: Props = $props() @@ -71,10 +72,11 @@
diff --git a/src/routes/inbox/InboxItem.svelte b/src/routes/inbox/InboxItem.svelte index 25b052ee..ef5d3881 100644 --- a/src/routes/inbox/InboxItem.svelte +++ b/src/routes/inbox/InboxItem.svelte @@ -184,7 +184,8 @@ community={false} view="cozy" meta={false} - class="pt-0 pb-0" + commentClass="!pt-0 pb-0" + class="pt-0" /> {:else}