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:
parent
f09974fd1f
commit
f90ede1026
@ -83,6 +83,10 @@ export const LogList = observer(({ model }: LogListProps) => {
|
|||||||
rowVirtualizer.scrollToIndex(visibleLogs.get().length - 1, { align: 'end', smoothScroll: false });
|
rowVirtualizer.scrollToIndex(visibleLogs.get().length - 1, { align: 'end', smoothScroll: false });
|
||||||
}, [model.logTabData.get()]);
|
}, [model.logTabData.get()]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
rowVirtualizer.scrollToIndex(model.searchStore.occurrences[model.searchStore.activeOverlayIndex], { align: 'end', smoothScroll: false });
|
||||||
|
}, [model.searchStore.activeOverlayIndex])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={parentRef}
|
ref={parentRef}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user