From 7937e8a1fd7e1b659d0e6dda0785f1a0cdec31e0 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 7 Oct 2026 16:06:08 +0400 Subject: [PATCH] refac --- src/lib/components/channel/Channel.svelte | 4 +- .../components/channel/MessageInput.svelte | 37 ++++---- src/lib/components/channel/Messages.svelte | 14 +-- .../channel/Messages/Message.svelte | 91 ++++++++++--------- src/lib/components/channel/Navbar.svelte | 45 +++++---- src/lib/components/channel/Thread.svelte | 20 ++-- 6 files changed, 112 insertions(+), 99 deletions(-) diff --git a/src/lib/components/channel/Channel.svelte b/src/lib/components/channel/Channel.svelte index f1e3141852..d1e51d658c 100644 --- a/src/lib/components/channel/Channel.svelte +++ b/src/lib/components/channel/Channel.svelte @@ -404,7 +404,7 @@ -
+
-
+
{#if replyToMessage !== null} -
+
-
+
{$i18n.t('Replying to {{NAME}}', { @@ -911,12 +913,14 @@
@@ -992,6 +996,7 @@ {#key $settings?.richTextInput && $settings?.showFormattingToolbar}
-
-
+
+
{#if acceptFiles}
-
+
{#if content === ''} {/if} @@ -263,6 +263,7 @@ {#if !thread && onThread} @@ -174,17 +171,17 @@ {#if channel?.user_count !== undefined}
@@ -212,7 +216,7 @@ class="flex-1 min-h-0 w-full overflow-y-auto will-change-transform" bind:this={messagesContainerElement} > -
+
{#if messages !== null}
-
+