From 08322a4bc9718a52a17c891f0fcb5abaab8c7caa Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Thu, 31 Oct 2024 11:09:51 -0400
Subject: Fix scrolling new messages into view, and layout of the bottom edge
 of message runs.

---
 ui/lib/components/MessageRun.svelte | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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

diff --git a/ui/lib/components/MessageRun.svelte b/ui/lib/components/MessageRun.svelte
index b998a8b..687eec3 100644
--- a/ui/lib/components/MessageRun.svelte
+++ b/ui/lib/components/MessageRun.svelte
@@ -7,11 +7,14 @@
 
 	let name;
 	$: name = $logins.get(sender);
+
+	let scroll = (message) => {
+		message.scrollIntoView();
+	}
 </script>
 
-<div class="card card-hover m-4 relative">
+<div class="card card-hover m-4 px-4 py-1 relative">
 	<span class="chip variant-soft sticky top-o left-0">
-		<!-- TODO: should this show up for only the first of a run? -->
 		@{name}:
 	</span>
 	{#each messages as { at, body }}
-- 
cgit v1.2.3

