From 2d36a12da8ac164c9f3ec5faf6ed090cf7f44583 Mon Sep 17 00:00:00 2001 From: soup Date: Wed, 15 Feb 2023 18:53:17 +0100 Subject: [PATCH] fix(web): Logs page scroll to bottom (#717) fix(web): fixed scroll to bottom --- web/src/screens/Logs.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/screens/Logs.tsx b/web/src/screens/Logs.tsx index 170ccce..cf3f4c9 100644 --- a/web/src/screens/Logs.tsx +++ b/web/src/screens/Logs.tsx @@ -4,7 +4,7 @@ import format from "date-fns/format"; import { DebounceInput } from "react-debounce-input"; import { APIClient } from "../api/APIClient"; import { Checkbox } from "../components/Checkbox"; -import { baseUrl, classNames, simplifyDate } from "../utils"; +import { classNames, simplifyDate } from "../utils"; import { SettingsContext } from "../utils/Context"; import { EmptySimple } from "../components/emptystates"; import { @@ -41,7 +41,7 @@ export const Logs = () => { const [filteredLogs, setFilteredLogs] = useState([]); const scrollToBottom = () => { - messagesEndRef.current?.scrollIntoView({ behavior: "auto" }); + messagesEndRef.current?.scrollIntoView({ behavior: "smooth", block: "end", inline: "end" }); }; useEffect(() => {