From b225e9228beac99ec5ddb03b9c7f4b4fce4a442d Mon Sep 17 00:00:00 2001 From: eti Date: Sat, 19 Sep 2026 03:05:31 +0200 Subject: [PATCH] web: rescale notifications, comments and reactions Signed-off-by: eti --- web/src/lib/components/comment/Comment.svelte | 14 +++++++------- web/src/lib/components/comment/CommentBox.svelte | 4 ++-- web/src/lib/components/comment/CommentCard.svelte | 10 +++++----- .../lib/components/comment/CommentEditor.svelte | 4 ++-- web/src/lib/components/comment/CommentList.svelte | 2 +- .../lib/components/comment/CommentSection.svelte | 2 +- .../notifications/NotificationBell.svelte | 12 ++++++------ .../notifications/NotificationItem.stories.svelte | 2 +- .../notifications/NotificationItem.svelte | 11 +++++++---- .../notifications/NotificationList.stories.svelte | 2 +- .../notifications/NotificationList.svelte | 8 ++++---- .../notifications/NotificationOfferAction.svelte | 6 +++--- .../notifications/NotificationToolbar.svelte | 8 ++------ .../lib/components/reaction/ReactionPicker.svelte | 2 +- web/src/lib/components/reaction/Reactions.svelte | 2 +- 15 files changed, 44 insertions(+), 45 deletions(-) diff --git a/web/src/lib/components/comment/Comment.svelte b/web/src/lib/components/comment/Comment.svelte index b93e69bcb..523b542ae 100644 --- a/web/src/lib/components/comment/Comment.svelte +++ b/web/src/lib/components/comment/Comment.svelte @@ -42,20 +42,20 @@ {#if deleted}
This comment was deleted.
{:else}
-
+
@@ -67,17 +67,17 @@
{#if editor} -
{@render editor()}
+
{@render editor()}
{:else if bodyHtml} -
+
{@html bodyHtml}
{:else if body} -
{body}
+
{body}
{/if} {#if !editor} - + {/if}
diff --git a/web/src/lib/components/comment/CommentBox.svelte b/web/src/lib/components/comment/CommentBox.svelte index c00a172ba..77038e0d5 100644 --- a/web/src/lib/components/comment/CommentBox.svelte +++ b/web/src/lib/components/comment/CommentBox.svelte @@ -60,11 +60,11 @@ {/snippet} {#if isThread} -
+
{@render editor()}
{:else} - + {@render editor()} {/if} diff --git a/web/src/lib/components/comment/CommentCard.svelte b/web/src/lib/components/comment/CommentCard.svelte index afa22a5dc..27e849da1 100644 --- a/web/src/lib/components/comment/CommentCard.svelte +++ b/web/src/lib/components/comment/CommentCard.svelte @@ -115,7 +115,7 @@ {#snippet commentActions(comment: CommentView, noun: "comment" | "reply")}
{#if thread.replies.length} -
+
{#each thread.replies as reply, i (reply.uri)} {#snippet replyEditor()} {@render commentEditor(reply, thread.self.uri, thread.self.cid)} @@ -223,7 +223,7 @@ {#snippet replyActions()} {@render commentActions(reply, "reply")} {/snippet} -
+
+
{/if} @@ -275,7 +275,7 @@
{:else}
{#if currentUser} {/snippet} -
-
+
+
{@render readSegment("inbox", "Inbox", Inbox)} {@render readSegment("unread", "Unread", Glasses)} @@ -65,7 +64,6 @@ {#if hasNotifications}