From 3f1ae92bb7d4ca4629995f32dc03f37e6460a864 Mon Sep 17 00:00:00 2001 From: Chi Kei Chan Date: Tue, 24 Oct 2017 16:55:02 -0700 Subject: [PATCH] Hide sidebar on add token --- ui/app/components/wallet-view.js | 5 ++++- ui/app/css/itcss/components/newui-sections.scss | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js index 215103396..9c11ca4a5 100644 --- a/ui/app/components/wallet-view.js +++ b/ui/app/components/wallet-view.js @@ -150,7 +150,10 @@ WalletView.prototype.render = function () { h(TokenList), h('button.wallet-view__add-token-button', { - onClick: showAddTokenPage, + onClick: () => { + showAddTokenPage() + hideSidebar() + }, }, 'Add Token'), ]) } diff --git a/ui/app/css/itcss/components/newui-sections.scss b/ui/app/css/itcss/components/newui-sections.scss index d975c56b7..5c73de79b 100644 --- a/ui/app/css/itcss/components/newui-sections.scss +++ b/ui/app/css/itcss/components/newui-sections.scss @@ -153,7 +153,7 @@ $wallet-view-bg: $wild-sand; background: rgb(250, 250, 250); z-index: $sidebar-z-index; position: fixed; - top: 57px; + top: 56px; left: 0; right: 0; bottom: 0;