From 5ddfc36acbccf50e90e772c374822ccf12ea72fe Mon Sep 17 00:00:00 2001 From: Samuel Andert Date: Sat, 22 Jul 2023 16:22:46 +0200 Subject: [PATCH] minor fixes --- src/lib/components/MessageInput.svelte | 3 +-- src/lib/components/Messages.svelte | 27 +++++++++++++------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/lib/components/MessageInput.svelte b/src/lib/components/MessageInput.svelte index 99a5704..bba8788 100644 --- a/src/lib/components/MessageInput.svelte +++ b/src/lib/components/MessageInput.svelte @@ -40,8 +40,7 @@ createMessage(message); - // Store the last message that was sent - lastMessageSent = newMessageText; + // Clear the input after sending the message newMessageText = ''; } } diff --git a/src/lib/components/Messages.svelte b/src/lib/components/Messages.svelte index b6a2e79..9a7019c 100644 --- a/src/lib/components/Messages.svelte +++ b/src/lib/components/Messages.svelte @@ -1,6 +1,6 @@
@@ -36,13 +36,12 @@

{message.timestamp}

{message.text}

- - - {#if message.composite} -
- -
- {/if} + + {#if message.composite} +
+ +
+ {/if} {/each}