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:
parent
b8f4fa14bf
commit
6ec761868b
8
src/renderer/components/dock/logs/to-bottom.module.scss
Normal file
8
src/renderer/components/dock/logs/to-bottom.module.scss
Normal file
@ -0,0 +1,8 @@
|
||||
.ToBottom {
|
||||
position: absolute;
|
||||
top: 64px;
|
||||
right: 16px;
|
||||
border-radius: 4px;
|
||||
padding: 4px 6px;
|
||||
background-color: var(--colorInfo);
|
||||
}
|
||||
@ -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>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user