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

Restyling 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:49:50 +03:00
parent b8f4fa14bf
commit 6ec761868b
2 changed files with 11 additions and 3 deletions

View File

@ -0,0 +1,8 @@
.ToBottom {
position: absolute;
top: 64px;
right: 16px;
border-radius: 4px;
padding: 4px 6px;
background-color: var(--colorInfo);
}

View File

@ -2,20 +2,20 @@
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import styles from "./to-bottom.module.scss";
import React from "react";
import { Icon } from "../../icon";
export function ToBottom({ onClick }: { onClick: () => void }) {
return (
<button
className="absolute top-3 right-3 z-10 rounded-md flex align-center px-1 py-1 pl-3"
style={{ backgroundColor: "var(--blue)" }}
className={styles.ToBottom}
onClick={evt => {
evt.currentTarget.blur();
onClick();
}}
>
To bottom
<Icon small material="expand_more" />
</button>
);