aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-06 08:11:50 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-06 08:11:50 +0800
commit97809a03eb5be210a20247444cfd45ed68b515fd (patch)
treecd504c41e87780e943304733e52888666a88e79f /packages/website/ts
parentf894ffc0ccccca8e94ea37dda6184168f126839d (diff)
downloaddexon-sol-tools-97809a03eb5be210a20247444cfd45ed68b515fd.tar
dexon-sol-tools-97809a03eb5be210a20247444cfd45ed68b515fd.tar.gz
dexon-sol-tools-97809a03eb5be210a20247444cfd45ed68b515fd.tar.bz2
dexon-sol-tools-97809a03eb5be210a20247444cfd45ed68b515fd.tar.lz
dexon-sol-tools-97809a03eb5be210a20247444cfd45ed68b515fd.tar.xz
dexon-sol-tools-97809a03eb5be210a20247444cfd45ed68b515fd.tar.zst
dexon-sol-tools-97809a03eb5be210a20247444cfd45ed68b515fd.zip
Make wallet height responsive
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/components/wallet/wallet.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/wallet/wallet.tsx b/packages/website/ts/components/wallet/wallet.tsx
index 1e0b9ec48..8ea2725fe 100644
--- a/packages/website/ts/components/wallet/wallet.tsx
+++ b/packages/website/ts/components/wallet/wallet.tsx
@@ -270,7 +270,7 @@ export class Wallet extends React.Component<WalletProps, WalletState> {
overflowY: this.state.isHoveringSidebar ? 'scroll' : 'hidden',
marginRight: this.state.isHoveringSidebar ? 0 : 4,
// TODO: make this completely responsive
- maxHeight: this.props.screenWidth !== ScreenWidths.Sm ? 475 : undefined,
+ maxHeight: !utils.isMobileWidth(this.props.screenWidth) ? 'calc(90vh - 300px)' : undefined,
};
}
private _onSidebarHover(_event: React.FormEvent<HTMLInputElement>): void {