From 54416ee84f88064897a824ae2c3a9e0ef2c1ccaa Mon Sep 17 00:00:00 2001
From: retoor <retoor@molodetz.nl>
Date: Mon, 17 Mar 2025 09:15:49 +0100
Subject: [PATCH] Added block end.

---
 src/snek/templates/web.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/snek/templates/web.html b/src/snek/templates/web.html
index e1e443b..932a1fa 100644
--- a/src/snek/templates/web.html
+++ b/src/snek/templates/web.html
@@ -138,7 +138,7 @@
         });
         lastMessage = messagesContainer.querySelector(".message:last-child");
         if (doScrollDown) { 
-            lastMessage?.scrollIntoView({ inline: "nearest" });
+            lastMessage?.scrollIntoView({ block: "end", inline: "nearest" });
         }
     }