mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Scroll to bottom on tab change
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
c4538e928b
commit
1679ba14e1
@ -80,6 +80,10 @@ export const LogList = observer(({ model }: LogListProps) => {
|
|||||||
}, 200)
|
}, 200)
|
||||||
}, [model.logTabData.get()?.selectedPodId])
|
}, [model.logTabData.get()?.selectedPodId])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
rowVirtualizer.scrollToIndex(visibleLogs.get().length - 1, { align: 'end', smoothScroll: false });
|
||||||
|
}, [model.logTabData.get()]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={parentRef}
|
ref={parentRef}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user