diff --git a/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap b/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap index 36047c7184..c3d9431eb2 100644 --- a/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap +++ b/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap @@ -270,7 +270,7 @@ exports[`extensions - navigation using application menu when navigating to exten Extensions

Add new features via Lens Extensions. Check out the @@ -292,9 +292,7 @@ exports[`extensions - navigation using application menu when navigating to exten .

-
+
@@ -302,16 +300,12 @@ exports[`extensions - navigation using application menu when navigating to exten
-
-
+
+
Pro-Tip diff --git a/src/renderer/components/+extensions/extensions.module.scss b/src/renderer/components/+extensions/extensions.module.scss new file mode 100644 index 0000000000..048487e2e1 --- /dev/null +++ b/src/renderer/components/+extensions/extensions.module.scss @@ -0,0 +1,9 @@ +/** + * Copyright (c) OpenLens Authors. All rights reserved. + * Licensed under MIT License. See LICENSE in root directory for more information. + */ + +.notice { + margin-top: var(--margin); + margin-bottom: calc(var(--margin) * 3); +} diff --git a/src/renderer/components/+extensions/extensions.scss b/src/renderer/components/+extensions/extensions.scss deleted file mode 100644 index d2f67e1520..0000000000 --- a/src/renderer/components/+extensions/extensions.scss +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright (c) OpenLens Authors. All rights reserved. - * Licensed under MIT License. See LICENSE in root directory for more information. - */ - -.PageLayout.Extensions { - $spacing: $padding * 2; - width: 100%; - - .contentRegion { - .content { - max-width: 740px; - - > section { - height: 100%; - } - } - } -} - -.InstallingExtensionNotification { - .remove-folder-warning { - font-size: $font-size-small; - font-style: italic; - opacity: .8; - cursor: pointer; - - &:hover { - opacity: 1; - } - - code { - display: inline; - color: inherit; - } - } - - .Button { - background-color: unset; - border: 1px solid currentColor; - box-shadow: none !important; - } -} diff --git a/src/renderer/components/+extensions/extensions.tsx b/src/renderer/components/+extensions/extensions.tsx index 4974814a37..446f6e0778 100644 --- a/src/renderer/components/+extensions/extensions.tsx +++ b/src/renderer/components/+extensions/extensions.tsx @@ -3,7 +3,7 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ -import "./extensions.scss"; +import styles from "./extensions.module.scss"; import type { IComputedValue } from "mobx"; import { @@ -82,7 +82,7 @@ class NonInjectedExtensions extends React.Component {

Extensions

- +

{"Add new features via Lens Extensions. Check out the "} { installPath={this.installPath} /> - {userExtensions.length > 0 &&


} - = ({ installFromSelectFileDialog, extensionInstallationStateStore, }) => ( -
+
-
-
+
+
= ({ iconRight={( = ({ )} />
-
+
- + Pro-Tip : you can drag-n-drop tarball-file to this area