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/ActiveChannel.svelte | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

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

diff --git a/ui/lib/components/ActiveChannel.svelte b/ui/lib/components/ActiveChannel.svelte
index 1b23bc1..455043b 100644
--- a/ui/lib/components/ActiveChannel.svelte
+++ b/ui/lib/components/ActiveChannel.svelte
@@ -1,6 +1,5 @@
 <script>
     import { messages } from '$lib/store';
-    import Message from './Message.svelte';
     import MessageRun from './MessageRun.svelte';
 
     export let channel = null;
@@ -26,19 +25,11 @@
             yield [key, chunk];
         }
     }
-
-
-    let container;
-    // TODO: eventually, store scroll height/last unread in channel? scroll there?
-
-    let scroll = (message) => {
-        message.scrollIntoView();
-    }
 </script>
 
-<div class="container" bind:this={container}>
+<div class="container">
     {#each chunkBy(messageList, msg => msg.sender) as [sender, messages]}
-        <div use:scroll>
+        <div>
             <MessageRun {sender} {messages} />
         </div>
     {/each}
-- 
cgit v1.2.3

