diff --git a/src/renderer/components/+preferences/preferences.scss b/src/renderer/components/+preferences/preferences.scss
index 859315cc8a..94c08e8f53 100644
--- a/src/renderer/components/+preferences/preferences.scss
+++ b/src/renderer/components/+preferences/preferences.scss
@@ -1,23 +1,51 @@
.Preferences {
- h2 {
- &:not(:first-child) {
- margin-top: $padding * 3;
+ position: fixed!important; // Allows to cover ClustersMenu
+ z-index: 1;
+
+ .WizardLayout {
+ grid-template-columns: unset;
+ grid-template-rows: 76px 1fr;
+ padding: 0;
+
+ .content-col {
+ background-color: transparent;
+ padding: $padding * 8 0;
+
+ h2 {
+ margin-bottom: $margin * 2;
+
+ &:not(:first-child) {
+ margin-top: $margin * 3;
+ }
+ }
+
+ .repos {
+ position: relative;
+
+ .Badge {
+ display: flex;
+ margin: 0;
+ margin-bottom: 1px;
+ padding: $padding $padding * 2;
+ }
+ }
+
+ .hint {
+ margin-top: -$margin;
+ }
}
}
- .info-block {
- --flex-gap: #{$padding};
+ .is-mac & {
+ .WizardLayout .head-col {
+ padding-top: 32px;
+ overflow: hidden;
+ }
}
- .repos {
- --flex-gap: #{$padding};
-
- > .title {
- font-style: italic;
- }
-
- .Badge {
- margin: $padding / 2;
+ .Select {
+ &__control {
+ box-shadow: 0 0 0 1px $borderFaintColor;
}
}
}
\ No newline at end of file
diff --git a/src/renderer/components/+preferences/preferences.tsx b/src/renderer/components/+preferences/preferences.tsx
index 02e66b7342..643e15c5f8 100644
--- a/src/renderer/components/+preferences/preferences.tsx
+++ b/src/renderer/components/+preferences/preferences.tsx
@@ -1,5 +1,5 @@
import "./preferences.scss"
-import React, { Fragment } from "react";
+import React from "react";
import { observer } from "mobx-react";
import { action, computed, observable } from "mobx";
import { t, Trans } from "@lingui/macro";
@@ -15,6 +15,8 @@ import { Notifications } from "../notifications";
import { Badge } from "../badge";
import { Spinner } from "../spinner";
import { themeStore } from "../../theme.store";
+import { history } from "../../navigation";
+import { Tooltip } from "../tooltip";
@observer
export class Preferences extends React.Component {
@@ -103,104 +105,96 @@ export class Preferences extends React.Component {
)
}
- renderInfo() {
- return (
-
-
- Preferences
-
-
-
-
- Lens Global Settings (applicable to all clusters)
-
-
-
- )
- }
-
render() {
const { preferences } = userStore;
+ const header = (
+ <>
+
Preferences
+
+ >
+ );
return (
-
- Color Theme
-