From a51907f6d45689b5d4aaa17e3840311128f1a48f Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Fri, 2 Apr 2021 16:01:59 +0300 Subject: [PATCH] Styling helm chart section Signed-off-by: Alex Andreev --- .../components/+preferences/helm-charts.scss | 20 ++++++++++++++----- .../components/+preferences/helm-charts.tsx | 16 ++++++--------- .../components/+preferences/preferences.tsx | 3 --- .../components/layout/page-layout.scss | 6 ++++++ src/renderer/themes/lens-light.json | 2 +- 5 files changed, 28 insertions(+), 19 deletions(-) diff --git a/src/renderer/components/+preferences/helm-charts.scss b/src/renderer/components/+preferences/helm-charts.scss index 69d952d186..574fec28d9 100644 --- a/src/renderer/components/+preferences/helm-charts.scss +++ b/src/renderer/components/+preferences/helm-charts.scss @@ -1,11 +1,21 @@ .HelmCharts { .repos { - margin-top: var(--margin); + margin-top: 20px; - .Badge { - display: flex; - margin-bottom: 1px!important; - padding: 6px 8px; + .repo { + background: var(--inputControlBackground); + border-radius: 4px; + padding: 12px 16px; + box-shadow: 0 0 0 1px var(--secondaryBackground); + + .repoName { + font-weight: 500; + margin-bottom: 8px; + } + + .repoUrl { + color: var(--textColorDimmed); + } } } } \ No newline at end of file diff --git a/src/renderer/components/+preferences/helm-charts.tsx b/src/renderer/components/+preferences/helm-charts.tsx index 9bcdd5f755..f1c38deb04 100644 --- a/src/renderer/components/+preferences/helm-charts.tsx +++ b/src/renderer/components/+preferences/helm-charts.tsx @@ -4,12 +4,10 @@ import React from "react"; import { action, computed, observable } from "mobx"; import { HelmRepo, repoManager } from "../../../main/helm/helm-repo-manager"; -import { Badge } from "../badge"; import { Button } from "../button"; import { Icon } from "../icon"; import { Notifications } from "../notifications"; import { Select, SelectOption } from "../select"; -import { Tooltip } from "../tooltip"; import { AddHelmRepoDialog } from "./add-helm-repo-dialog"; import { observer } from "mobx-react"; @@ -116,20 +114,18 @@ export class HelmCharts extends React.Component { this.loadRepos()}/>
{Array.from(this.addedRepos).map(([name, repo]) => { - const tooltipId = `message-${name}`; - return ( - - {name} +
+
+
{name}
+
{repo.url}
+
this.removeRepo(repo)} tooltip="Remove" /> - - {repo.url} - - +
); })}
diff --git a/src/renderer/components/+preferences/preferences.tsx b/src/renderer/components/+preferences/preferences.tsx index 1bfa01e7ed..ebb40cfb3f 100644 --- a/src/renderer/components/+preferences/preferences.tsx +++ b/src/renderer/components/+preferences/preferences.tsx @@ -133,9 +133,6 @@ export class Preferences extends React.Component { onChange={v => this.shell = v} onBlur={() => preferences.shell = this.shell} /> -
- The path of the shell that the terminal uses. -
)} diff --git a/src/renderer/components/layout/page-layout.scss b/src/renderer/components/layout/page-layout.scss index e56d624fb9..fe485a0d07 100644 --- a/src/renderer/components/layout/page-layout.scss +++ b/src/renderer/components/layout/page-layout.scss @@ -98,6 +98,12 @@ > .content { width: var(--width); padding: 60px 40px 80px; + + > section { + &:last-of-type { + margin-bottom: 80px; + } + } } > .toolsRegion { diff --git a/src/renderer/themes/lens-light.json b/src/renderer/themes/lens-light.json index 07a20378e1..52b9cd32e2 100644 --- a/src/renderer/themes/lens-light.json +++ b/src/renderer/themes/lens-light.json @@ -12,7 +12,7 @@ "textColorPrimary": "#555555", "textColorSecondary": "#51575d", "textColorAccent": "#333333", - "textColorDimmed": "#8e92978c", + "textColorDimmed": "#5557598c", "borderColor": "#c9cfd3", "borderFaintColor": "#dfdfdf", "mainBackground": "#f1f1f1",