diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-28 02:00:39 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-29 02:50:08 +0800 |
commit | 78333b3026c8e0a13770bfab2341a17d5163592a (patch) | |
tree | 9773c2a045e6c4517fb0ba5864999f416dd74c22 /packages | |
parent | 1ca182e741fbdff4cd4df5877de18174b83a532b (diff) | |
download | dexon-0x-contracts-78333b3026c8e0a13770bfab2341a17d5163592a.tar.gz dexon-0x-contracts-78333b3026c8e0a13770bfab2341a17d5163592a.tar.zst dexon-0x-contracts-78333b3026c8e0a13770bfab2341a17d5163592a.zip |
Change wallet margin based on hover to prevent re-layout
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/components/wallet/wallet.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/website/ts/components/wallet/wallet.tsx b/packages/website/ts/components/wallet/wallet.tsx index 2474ec3fa..b20f3ef4b 100644 --- a/packages/website/ts/components/wallet/wallet.tsx +++ b/packages/website/ts/components/wallet/wallet.tsx @@ -281,6 +281,7 @@ export class Wallet extends React.Component<WalletProps, WalletState> { return { ...styles.bodyInnerDiv, overflow: this.state.isHoveringSidebar ? 'auto' : 'hidden', + marginRight: this.state.isHoveringSidebar ? 0 : 4, // TODO: make this completely responsive maxHeight: this.props.screenWidth !== ScreenWidths.Sm ? 475 : undefined, }; |