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

Show Jump to bottom button

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-09-06 18:35:02 +03:00
parent 4c74d5a780
commit b8f4fa14bf

View File

@ -9,6 +9,7 @@ import { cssNames } from "../../../utils";
import { v4 as getRandomId } from "uuid"; import { v4 as getRandomId } from "uuid";
import { useScrollToBottomButton } from "./use-scroll-to-bottom"; import { useScrollToBottomButton } from "./use-scroll-to-bottom";
import { useInitialScrollToBottom } from "./use-initial-scroll-to-bottom"; import { useInitialScrollToBottom } from "./use-initial-scroll-to-bottom";
import { ToBottom } from "./to-bottom";
export interface LogListProps { export interface LogListProps {
model: LogTabViewModel; model: LogTabViewModel;
@ -111,6 +112,9 @@ export const LogList = observer(({ model }: LogListProps) => {
))} ))}
<div className={styles.lastLine}></div> <div className={styles.lastLine}></div>
</div> </div>
{toBottomVisible && (
<ToBottom onClick={scrollToBottom} />
)}
</div> </div>
) )
}); });