mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +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 { DebounceInput } from "react-debounce-input";
|
||||||
import { APIClient } from "../api/APIClient";
|
import { APIClient } from "../api/APIClient";
|
||||||
import { Checkbox } from "../components/Checkbox";
|
import { Checkbox } from "../components/Checkbox";
|
||||||
import { baseUrl, classNames, simplifyDate } from "../utils";
|
import { classNames, simplifyDate } from "../utils";
|
||||||
import { SettingsContext } from "../utils/Context";
|
import { SettingsContext } from "../utils/Context";
|
||||||
import { EmptySimple } from "../components/emptystates";
|
import { EmptySimple } from "../components/emptystates";
|
||||||
import {
|
import {
|
||||||
|
@ -41,7 +41,7 @@ export const Logs = () => {
|
||||||
const [filteredLogs, setFilteredLogs] = useState<LogEvent[]>([]);
|
const [filteredLogs, setFilteredLogs] = useState<LogEvent[]>([]);
|
||||||
|
|
||||||
const scrollToBottom = () => {
|
const scrollToBottom = () => {
|
||||||
messagesEndRef.current?.scrollIntoView({ behavior: "auto" });
|
messagesEndRef.current?.scrollIntoView({ behavior: "smooth", block: "end", inline: "end" });
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue