Layout fixes

This commit is contained in:
Philippe Maes 2020-09-23 14:47:31 +02:00
parent af0253ce17
commit 39319e6157
2 changed files with 13 additions and 5 deletions

View File

@ -29,7 +29,11 @@ export default function PublicTrades({ smallScreen }) {
style={
smallScreen
? { flex: 1 }
: { marginTop: '10px', height: 'calc(100% - 520px)' }
: {
marginTop: '10px',
minHeight: '270px',
height: 'calc(100vh - 710px)',
}
}
>
<Title>Recent Market trades</Title>

View File

@ -213,7 +213,7 @@ const RenderNormal = ({ onChangeOrderRef, onPrice, onSize }) => {
return (
<Row
style={{
minHeight: '750px',
minHeight: '800px',
flexWrap: 'nowrap',
}}
>
@ -240,13 +240,13 @@ const RenderSmall = ({ onChangeOrderRef, onPrice, onSize }) => {
<>
<Row
style={{
height: '750px',
height: '800px',
}}
>
<Col flex="auto" style={{ height: '100%', display: 'flex' }}>
<Orderbook
smallScreen={true}
depth={12}
depth={13}
onPrice={onPrice}
onSize={onSize}
/>
@ -282,7 +282,11 @@ const RenderSmaller = ({ onChangeOrderRef, onPrice, onSize }) => {
<StandaloneBalancesDisplay />
</Col>
</Row>
<Row style={{ minHeight: '500px' }}>
<Row
style={{
height: '500px',
}}
>
<Col xs={24} sm={12} style={{ height: '100%', display: 'flex' }}>
<Orderbook smallScreen={true} onPrice={onPrice} onSize={onSize} />
</Col>