fix(web): Logs page scroll to bottom (#717)

fix(web): fixed scroll to bottom
This commit is contained in:
soup 2023-02-15 18:53:17 +01:00 committed by GitHub
parent 5607184522
commit 2d36a12da8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<LogEvent[]>([]);
const scrollToBottom = () => {
messagesEndRef.current?.scrollIntoView({ behavior: "auto" });
messagesEndRef.current?.scrollIntoView({ behavior: "smooth", block: "end", inline: "end" });
};
useEffect(() => {