From 687f9cc3c9a7aa73635a90cd8e8816a04512e582 Mon Sep 17 00:00:00 2001 From: Mihail Polev Date: Mon, 9 May 2022 19:22:11 +0700 Subject: [PATCH] =?UTF-8?q?devop:=20=F0=9F=94=A7=20fixes=20and=20updates?= =?UTF-8?q?=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/extension/src/ui/action/App.vue | 2 +- .../action/components/base-button/index.vue | 70 +++++++++++++- .../ui/action/components/base-input/index.vue | 4 +- .../action/components/network-menu/index.vue | 4 + .../icons/common/custom-network-icon.vue | 22 +++++ .../ui/action/icons/common/slider-icon.vue | 23 +++++ .../action/icons/common/test-network-icon.vue | 39 ++++++++ .../ui/action/icons/password/visible-icon.vue | 20 ++++ .../components/accounts-list-item.vue | 2 - .../components/add-network-header.vue | 25 ++++- .../components/add-network-search.vue | 93 +++++++++++++++++-- .../src/ui/action/views/add-network/index.vue | 80 +++++++++++++++- .../src/ui/action/views/deposit/index.vue | 1 + .../components/network-activity-action.vue | 23 ++++- .../components/network-nfts-category.vue | 1 + .../components/network-nfts-item.vue | 13 ++- .../ui/action/views/swap-best-offer/index.vue | 4 +- .../src/ui/action/views/swap/index.vue | 6 +- .../onboard/create-wallet/recovery-phrase.vue | 2 +- 19 files changed, 404 insertions(+), 30 deletions(-) create mode 100644 packages/extension/src/ui/action/icons/common/custom-network-icon.vue create mode 100644 packages/extension/src/ui/action/icons/common/slider-icon.vue create mode 100644 packages/extension/src/ui/action/icons/common/test-network-icon.vue create mode 100644 packages/extension/src/ui/action/icons/password/visible-icon.vue diff --git a/packages/extension/src/ui/action/App.vue b/packages/extension/src/ui/action/App.vue index 0b78876f1..c36539927 100644 --- a/packages/extension/src/ui/action/App.vue +++ b/packages/extension/src/ui/action/App.vue @@ -15,7 +15,7 @@
- + + + +
+
+ + Custom network + +
+ Show testnets + +
@@ -16,8 +27,14 @@ export default { @@ -51,14 +72,74 @@ const action = () => { justify-content: space-between; align-items: center; flex-direction: row; + position: relative; &-input { - width: 238px; - margin-right: 16px; + width: 348px; + margin-right: 8px; } &-add { - width: 142px; + width: 40px; + font-size: 0; + border-radius: 8px; + + &:hover { + background: @black007; + } + + a { + cursor: pointer; + } + } + + &-list { + width: 256px; + height: 104px; + background: @white; + box-shadow: 0px 0.5px 5px rgba(0, 0, 0, 0.039), + 0px 3.75px 11px rgba(0, 0, 0, 0.19); + border-radius: 12px; + position: absolute; + top: 52px; + right: 0; + z-index: 4; + padding: 4px; + box-sizing: border-box; + + &-item { + width: 100%; + height: 48px; + display: flex; + justify-content: flex-start; + align-items: center; + flex-direction: row; + cursor: pointer; + + &:hover, + &.active { + background: rgba(0, 0, 0, 0.04); + border-radius: 8px; + } + + svg { + margin-right: 12px; + margin-left: 12px; + } + + span { + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 20px; + letter-spacing: 0.25px; + color: @primaryLabel; + } + + .switch { + margin-left: 52px; + } + } } } } diff --git a/packages/extension/src/ui/action/views/add-network/index.vue b/packages/extension/src/ui/action/views/add-network/index.vue index 7109e5c24..e8c0cd379 100644 --- a/packages/extension/src/ui/action/views/add-network/index.vue +++ b/packages/extension/src/ui/action/views/add-network/index.vue @@ -2,8 +2,22 @@
- - +
+

Manage networks

+ + + + +
+

Popular

@@ -35,7 +49,8 @@ export default {