From bdaf40a0ceb3e12170589f457ee3d62bd62986c9 Mon Sep 17 00:00:00 2001 From: William O'Beirne Date: Thu, 22 Mar 2018 14:30:51 -0400 Subject: [PATCH] Send Form Style Adjustments (#1368) * Remove title from account, tighten buttons and subtabs. * Send everything button in input. * Request tx to full width, adjust transaction fee spacing. * Fix token balances button spacing. * Fix address identicon flying offscreen. Tighten up identicon, show border even when theres no identicon. * Add isSelfAddress boolean to AddressField, use it on WalletInfo tab. * Use short amount again. * Unused --- common/components/AddressField.tsx | 8 +++- .../AddressFieldFactory.tsx | 16 +++++-- .../AddressInputFactory.scss | 25 ++++++++++ .../AddressInputFactory.tsx | 44 ++++++++++++------ common/components/AmountField.tsx | 11 +++-- .../TokenBalances/AddCustomTokenForm.scss | 5 +- .../BalanceSidebar/TokenBalances/Balances.tsx | 15 ++++-- .../BalanceSidebar/TokenBalances/index.scss | 8 +++- common/components/GasLimitField.tsx | 2 +- .../SendEverything/SendEverything.scss | 46 +++++++++++++++++++ .../SendEverything/SendEverything.tsx | 33 +++++++------ common/components/SubTabs/SubTabs.scss | 2 +- .../TXMetaDataPanel/TXMetaDataPanel.scss | 2 +- .../components/AdvancedGas.scss | 3 +- .../components/AdvancedGas.tsx | 28 +++++------ common/components/ui/Identicon.tsx | 46 +++++++++---------- common/components/ui/Input.scss | 4 +- common/components/ui/UnlockHeader.scss | 5 +- common/components/ui/UnlockHeader.tsx | 4 +- .../components/Fields/Fields.tsx | 5 +- .../components/RequestPayment.tsx | 4 +- .../SendTransaction/components/WalletInfo.tsx | 18 ++------ .../containers/Tabs/SendTransaction/index.tsx | 4 +- .../sass/styles/overrides/react-select.scss | 3 +- common/sass/variables/forms.scss | 3 +- 25 files changed, 231 insertions(+), 113 deletions(-) create mode 100644 common/components/AddressFieldFactory/AddressInputFactory.scss create mode 100644 common/components/SendEverything/SendEverything.scss diff --git a/common/components/AddressField.tsx b/common/components/AddressField.tsx index 29318f82..6c66ea1c 100644 --- a/common/components/AddressField.tsx +++ b/common/components/AddressField.tsx @@ -6,14 +6,18 @@ import { Input } from 'components/ui'; interface Props { isReadOnly?: boolean; + isSelfAddress?: boolean; } -export const AddressField: React.SFC = ({ isReadOnly }) => ( +export const AddressField: React.SFC = ({ isReadOnly, isSelfAddress }) => ( (