From bb8110376b4a64396c1bbed3b34ce65b6b7f5beb Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Sat, 2 Nov 2024 15:43:31 -0400
Subject: Render empty messages as full-height lines

---
 ui/lib/components/Message.svelte | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'ui/lib/components/Message.svelte')

diff --git a/ui/lib/components/Message.svelte b/ui/lib/components/Message.svelte
index 75e4cc9..baa16ca 100644
--- a/ui/lib/components/Message.svelte
+++ b/ui/lib/components/Message.svelte
@@ -11,7 +11,7 @@
 
 <div class="message relative">
     <span class="timestamp chip variant-soft absolute top-0 right-0">{at}</span>
-    <section use:scroll class="py-1">
+    <section use:scroll class="py-1 message-body">
         <SvelteMarkdown source={body} />
     </section>
 </div>
@@ -23,4 +23,8 @@
     .message:hover .timestamp {
         display: flex;
     }
+    .message-body:empty:after {
+        content: ".";
+        visibility: hidden;
+    }
 </style>
-- 
cgit v1.2.3

