mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(web): Logs page scroll to bottom (#717)
fix(web): fixed scroll to bottom
This commit is contained in:
parent
5607184522
commit
2d36a12da8
1 changed files with 2 additions and 2 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue