From c606431af11b1ada66924a7ed38275186a508bbf Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 30 Jun 2023 22:54:11 +0100 Subject: [PATCH] network & account popover tweaks --- .../header-base/header-base.tsx | 1 + .../picker-network/picker-network.js | 2 +- .../component-library/popover/popover.tsx | 2 +- .../account-list-menu/account-list-menu.js | 10 +++++----- .../multichain/account-list-menu/index.scss | 1 - .../multichain/network-list-menu/index.scss | 1 - .../network-list-menu/network-list-menu.js | 17 +++++++---------- ui/components/ui/popover/popover.component.js | 2 +- 8 files changed, 16 insertions(+), 20 deletions(-) diff --git a/ui/components/component-library/header-base/header-base.tsx b/ui/components/component-library/header-base/header-base.tsx index f10315e3f..f71bf03b6 100644 --- a/ui/components/component-library/header-base/header-base.tsx +++ b/ui/components/component-library/header-base/header-base.tsx @@ -67,6 +67,7 @@ export const HeaderBase: React.FC = ({ display={DISPLAY.FLEX} justifyContent={JustifyContent.spaceBetween} {...props} + padding={1} > {startAccessory && ( { {actionMode === '' ? ( {/* Search box */} - {accounts.length > 1 ? ( + {accounts.length > 100 ? ( { {/* Add / Import / Hardware */} - + { {t('addAccount')} - + { {t('importAccount')} - + { { ///: BEGIN:ONLY_INCLUDE_IN(keyring-snaps) <> - + { }} /> - - + { if (isFullScreen) { if (completedOnboarding) { @@ -182,7 +179,7 @@ export const NetworkListMenu = ({ onClose }) => { }} > {t('addNetwork')} - + diff --git a/ui/components/ui/popover/popover.component.js b/ui/components/ui/popover/popover.component.js index 261883c56..c301a0b3d 100644 --- a/ui/components/ui/popover/popover.component.js +++ b/ui/components/ui/popover/popover.component.js @@ -85,6 +85,7 @@ const Popover = ({ {onBack ? (