diff --git a/gui/app/public/i18n/en/translation.ftl b/gui/app/public/i18n/en/translation.ftl index 1979bcd04..06e4526a1 100644 --- a/gui/app/public/i18n/en/translation.ftl +++ b/gui/app/public/i18n/en/translation.ftl @@ -887,7 +887,7 @@ settings-logs-export_all = Export all logs (.zip) settings-logs-export-title = Export logs settings-logs-export-all = All log files (.zip) settings-logs-export-all-description = Every log file, for bug reports -settings-logs-export-origin = { $source } files only (.zip) +settings-logs-export-source = { $source } files only (.zip) settings-logs-export-selected = { $count -> [one] Export 1 selected file (.zip) diff --git a/gui/app/src/components/settings/pages/logs/LogList.tsx b/gui/app/src/components/settings/pages/logs/LogList.tsx index 84eeb82ca..36136ef09 100644 --- a/gui/app/src/components/settings/pages/logs/LogList.tsx +++ b/gui/app/src/components/settings/pages/logs/LogList.tsx @@ -109,6 +109,7 @@ function LogRowView({ export function LogList({ rows, query }: { rows: LogRow[]; query: string }) { const scrollRef = useRef(null); + const lastScrollTop = useRef(0); const [atBottom, setAtBottom] = useState(true); const [lastSeenId, setLastSeenId] = useState(-1); const [expanded, setExpanded] = useState>(new Set()); @@ -136,8 +137,15 @@ export function LogList({ rows, query }: { rows: LogRow[]; query: string }) { const onScroll = () => { const el = scrollRef.current; if (!el) return; + const movedUp = el.scrollTop < lastScrollTop.current; + lastScrollTop.current = el.scrollTop; const bottom = el.scrollTop + el.clientHeight >= el.scrollHeight - 24; - if (bottom !== atBottom) setAtBottom(bottom); + // The virtualizer's own corrections only move down, only the user scrolls up + if (bottom) { + setAtBottom(true); + return; + } + if (movedUp) setAtBottom(false); }; const toggle = (id: number) =>