From 6e9db2de4fa627a5971c009c893cef860c65d4d8 Mon Sep 17 00:00:00 2001 From: Joel Mathew Thomas <90510078+joelmathewthomas@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:22:43 +0530 Subject: [PATCH] fix log scrolling --- client/src/components/Logs.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/components/Logs.tsx b/client/src/components/Logs.tsx index fb0ddd8..39f153e 100644 --- a/client/src/components/Logs.tsx +++ b/client/src/components/Logs.tsx @@ -12,11 +12,15 @@ const Logs = () => { padding: '8px', borderRadius: '4px', width: '100%', - minHeight: '100px', + minHeight: '200px', maxHeight: '200px', overflowY: 'auto', boxShadow: '0 0 5px rgba(0, 0, 0, 0.8)', mt: '40px', + scrollBehavior: 'smooth', + }} + ref={(el: HTMLDivElement | null) => { + if (el) el.scrollTop = el.scrollHeight; }} > {logs.length > 0 ? (