1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Scroll to overlay from the search

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-09-05 13:54:57 +03:00
parent f09974fd1f
commit f90ede1026

View File

@ -83,6 +83,10 @@ export const LogList = observer(({ model }: LogListProps) => {
rowVirtualizer.scrollToIndex(visibleLogs.get().length - 1, { align: 'end', smoothScroll: false });
}, [model.logTabData.get()]);
useEffect(() => {
rowVirtualizer.scrollToIndex(model.searchStore.occurrences[model.searchStore.activeOverlayIndex], { align: 'end', smoothScroll: false });
}, [model.searchStore.activeOverlayIndex])
return (
<div
ref={parentRef}