Change wallet margin based on hover to prevent re-layout

This commit is contained in:
Brandon Millman
2018-06-27 11:00:39 -07:00
parent 1ca182e741
commit 78333b3026

View File

@@ -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,
};