mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Use css modules for the Controls component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
3eb129efcb
commit
5090c323fb
@ -784,11 +784,9 @@ exports[`download logs options in pod logs dock tab when opening pod logs render
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="LogControls flex gaps align-center justify-space-between wrap"
|
||||
class="controls"
|
||||
>
|
||||
<div
|
||||
class="time-range"
|
||||
>
|
||||
<div>
|
||||
<span>
|
||||
Logs from
|
||||
|
||||
|
||||
11
src/renderer/components/dock/logs/controls.module.scss
Normal file
11
src/renderer/components/dock/logs/controls.module.scss
Normal file
@ -0,0 +1,11 @@
|
||||
.controls {
|
||||
@include hidden-scrollbar;
|
||||
|
||||
display: flex;
|
||||
gap: var(--padding);
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-flow: row wrap;
|
||||
background: var(--dockInfoBackground);
|
||||
padding: var(--padding) calc(var(--padding) * 2);
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
.LogControls {
|
||||
@include hidden-scrollbar;
|
||||
|
||||
background: var(--dockInfoBackground);
|
||||
padding: $padding $padding * 2;
|
||||
}
|
||||
@ -3,12 +3,11 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
import "./controls.scss";
|
||||
import styles from "./controls.module.scss";
|
||||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
|
||||
import { cssNames } from "../../../utils";
|
||||
import { Checkbox } from "../../checkbox";
|
||||
import type { LogTabViewModel } from "./logs-view-model";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
@ -72,8 +71,8 @@ const NonInjectedLogControls = observer(({ openSaveFileDialog, model, callForLog
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={cssNames("LogControls flex gaps align-center justify-space-between wrap")}>
|
||||
<div className="time-range">
|
||||
<div className={styles.controls}>
|
||||
<div>
|
||||
{since && (
|
||||
<span>
|
||||
Logs from
|
||||
|
||||
Loading…
Reference in New Issue
Block a user