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

Styling Kubernetes page

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-11-22 11:12:54 +03:00
parent 4c1067b1e8
commit 83841aae90
5 changed files with 9 additions and 36 deletions

View File

@ -143,7 +143,7 @@ export class KubeconfigSyncs extends React.Component {
if (!entries) {
return (
<div className="loading-spinner">
<div className="m-auto">
<Spinner />
</div>
);

View File

@ -46,7 +46,7 @@ export const KubectlBinaries = observer(() => {
return (
<>
<section>
<section className="mb-12">
<SubTitle title="Kubectl binary download"/>
<FormSwitch
control={
@ -60,7 +60,7 @@ export const KubectlBinaries = observer(() => {
/>
</section>
<section>
<section className="mb-12">
<SubTitle title="Download mirror" />
<Select
placeholder="Download mirror for kubectl"
@ -73,7 +73,7 @@ export const KubectlBinaries = observer(() => {
/>
</section>
<section>
<section className="mb-12">
<SubTitle title="Directory for binaries" />
<Input
theme="round-black"
@ -84,7 +84,7 @@ export const KubectlBinaries = observer(() => {
onBlur={save}
disabled={!userStore.downloadKubectlBinaries}
/>
<div className="hint">
<div className="pt-4">
The directory to download binaries into.
</div>
</section>

View File

@ -28,16 +28,16 @@ import { KubectlBinaries } from "./kubectl-binaries";
export const Kubernetes = observer(() => {
return (
<section id="kubernetes">
<section id="kubectl">
<section id="kubectl" className="mb-12">
<h2 data-testid="kubernetes-header">Kubernetes</h2>
<KubectlBinaries />
</section>
<hr/>
<section id="kube-sync">
<hr className="mb-12"/>
<section id="kube-sync" className="mb-12">
<h2 data-testid="kubernetes-sync-header">Kubeconfig Syncs</h2>
<KubeconfigSyncs />
</section>
<hr/>
<hr className="mb-12"/>
<section id="helm">
<h2>Helm Charts</h2>
<HelmCharts/>

View File

@ -1,26 +0,0 @@
/**
* Copyright (c) 2021 OpenLens Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
.Preferences {
.loading-spinner {
margin: auto;
}
}

View File

@ -18,7 +18,6 @@
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
import "./preferences.scss";
import tabStyles from "../layout/settings-layout.module.css";
import { makeObservable, observable } from "mobx";