From 06d76ead74e93d971d3e31547727793e0f44f1c2 Mon Sep 17 00:00:00 2001 From: alexfront Date: Tue, 4 Aug 2020 15:46:42 +0300 Subject: [PATCH] Fixing Cluster Settings general layout bugs Signed-off-by: alexfront --- .../+cluster-settings/cluster-settings.scss | 159 ++++++++++-------- .../+cluster-settings/cluster-settings.tsx | 39 +++-- 2 files changed, 113 insertions(+), 85 deletions(-) diff --git a/src/renderer/components/+cluster-settings/cluster-settings.scss b/src/renderer/components/+cluster-settings/cluster-settings.scss index 1ea6926eab..b3c538daf8 100644 --- a/src/renderer/components/+cluster-settings/cluster-settings.scss +++ b/src/renderer/components/+cluster-settings/cluster-settings.scss @@ -1,86 +1,101 @@ .ClusterSettings { - overflow-y: scroll; - grid-template-columns: unset; + grid-template-columns: unset; - .info-col { - display: none; + .info-col { + display: none; + } + + .content-col { + margin: 0; + padding-top: $padding * 3; + + .SubTitle { + text-transform: none; } - .content-col { - margin-right: unset; - } + .settings-wrapper { + margin: 0 auto; + width: 70%; + min-width: 800px; - * { - margin-top: 40px; + > div { + margin-top: $margin * 3; + } - &:first-child { - margin-top: 0px; - } - } - - h4 { - margin-top: 20px; - } - - .status-table { - margin-top: 20px; - display: grid; - grid-template-columns: 1fr 3fr; - grid-gap: 10px; - } - - .loading { - margin-top: 20px; - text-align: center; - - .Spinner { - display: inline-block; - } - } - - .Input,.Select { - margin-top: 10px; - } - - .Icon:not(.updated):not(.clean) { - color: #ad0000; - } - - .Icon.updated { - color: #00dd1d; - } - - .updated { - animation: updated-name 1s 1; - animation-fill-mode: forwards; - animation-delay: 3s; - } - - @keyframes updated-name { - from {opacity :1;} - to {opacity :0;} - } - - .center { - text-align: center; - } - - input[type="text"]::placeholder { + .admin-note { font-size: small; - color: #707070; + opacity: 0.5; + margin-left: $margin; + } } + } - input[type="text"] { - color: white; - } + .status-table { + margin: $margin * 3 0; - button { - margin-top: 5px; + .Table { + border: 1px solid var(--drawerSubtitleBackground); + border-radius: $radius; - .Spinner { - width: 10px; - height: 10px; - border-color: transparent black; + .TableCell { + border-bottom: 1px solid var(--drawerSubtitleBackground); + + &.value { + color: var(--textColorSecondary); } + } } + } + + .loading { + margin-top: 20px; + text-align: center; + + .Spinner { + display: inline-block; + } + } + + .Input,.Select { + margin-top: 10px; + } + + .Icon:not(.updated):not(.clean) { + color: #ad0000; + } + + .Icon.updated { + color: #00dd1d; + } + + .updated { + animation: updated-name 1s 1; + animation-fill-mode: forwards; + animation-delay: 3s; + } + + @keyframes updated-name { + from {opacity :1;} + to {opacity :0;} + } + + + input[type="text"]::placeholder { + font-size: small; + color: #707070; + } + + input[type="text"] { + color: white; + } + + button { + margin-top: 5px; + + .Spinner { + width: 10px; + height: 10px; + border-color: transparent black; + } + } } \ No newline at end of file diff --git a/src/renderer/components/+cluster-settings/cluster-settings.tsx b/src/renderer/components/+cluster-settings/cluster-settings.tsx index 777562060b..46ca7b2d8e 100644 --- a/src/renderer/components/+cluster-settings/cluster-settings.tsx +++ b/src/renderer/components/+cluster-settings/cluster-settings.tsx @@ -1,25 +1,38 @@ -import "./cluster-settings.scss" +import "./cluster-settings.scss"; + import React from "react"; import { observer } from "mobx-react"; -import { Features } from "./features" -import { Removal } from "./removal" -import { Status } from "./status" -import { General } from "./general" -import { getHostedCluster } from "../../../common/cluster-store" +import { Features } from "./features"; +import { Removal } from "./removal"; +import { Status } from "./status"; +import { General } from "./general"; +import { getHostedCluster } from "../../../common/cluster-store"; import { WizardLayout } from "../layout/wizard-layout"; +import { ClusterIcon } from "../cluster-icon"; @observer export class ClusterSettings extends React.Component { render() { const cluster = getHostedCluster(); - + const header = ( + <> + +

{cluster.preferences.clusterName}

+ + ); return ( - - - - - + +
+ + + + +
- ) + ); } }