From 8753b2b17c9abbe8d22f36f745c84fe2fe0de49a Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Wed, 25 Nov 2020 11:53:40 +0200 Subject: [PATCH] Tweak install extension ux (#1510) Signed-off-by: Jari Kolehmainen Co-authored-by: Roman --- .../components/+extensions/extensions.scss | 8 ++-- .../components/+extensions/extensions.tsx | 44 +++++-------------- 2 files changed, 14 insertions(+), 38 deletions(-) diff --git a/src/renderer/components/+extensions/extensions.scss b/src/renderer/components/+extensions/extensions.scss index 8350b62b9c..d0716feda9 100644 --- a/src/renderer/components/+extensions/extensions.scss +++ b/src/renderer/components/+extensions/extensions.scss @@ -45,10 +45,8 @@ .SearchInput { --spacing: #{$padding}; - } - - .SubTitle { - font-style: italic; + width: 100%; + max-width: none; } .WizardLayout { @@ -83,4 +81,4 @@ border: 1px solid currentColor; box-shadow: none !important; } -} \ No newline at end of file +} diff --git a/src/renderer/components/+extensions/extensions.tsx b/src/renderer/components/+extensions/extensions.tsx index 90577cd3a4..8bcbc4cb8f 100644 --- a/src/renderer/components/+extensions/extensions.tsx +++ b/src/renderer/components/+extensions/extensions.tsx @@ -14,7 +14,6 @@ import { DropFileInput, Input, InputValidators, SearchInput } from "../input"; import { Icon } from "../icon"; import { SubTitle } from "../layout/sub-title"; import { PageLayout } from "../layout/page-layout"; -import { Clipboard } from "../clipboard"; import logger from "../../../main/logger"; import { extensionLoader } from "../../../extensions/extension-loader"; import { extensionDiscovery, manifestFilename } from "../../../extensions/extension-discovery"; @@ -269,26 +268,21 @@ export class Extensions extends React.Component { renderInfo() { return (
-

Lens Extension API

+

Lens Extensions

- The Extensions API in Lens allows users to customize and enhance the Lens experience by creating their own menus or page content that is extended from the existing pages. Many of the core - features of Lens are built as extensions and use the same Extension API. -
-
- -
shell.openPath(this.extensionsPath)}> - - {this.extensionsPath} -
+ The features that Lens includes out-of-the-box are just the start. + Lens extensions let you add new features to your installation to support your workflow. + Rich extensibility model lets extension authors plug directly into the Lens UI and contribute functionality through the same APIs used by Lens itself. + Check out documentation to learn more.
- + this.downloadUrl = v} @@ -296,27 +290,11 @@ export class Extensions extends React.Component { />
-
- -

- Check out documentation to learn more + Pro-Tip: you can drag & drop extension's tarball here to request installation

@@ -363,7 +341,7 @@ export class Extensions extends React.Component { this.search = value} /> @@ -375,4 +353,4 @@ export class Extensions extends React.Component { ); } -} \ No newline at end of file +}