File tree 5 files changed +32
-7
lines changed
OrderbookAndTradesInterface/SpotOrderBook
5 files changed +32
-7
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ const Root = styled(SmartFlex)<{ size: TRADE_TABLE_SIZE }>`
119
119
transition: height 200ms;
120
120
121
121
${ media . mobile } {
122
- height: fit-content ;
122
+ height: 100% ;
123
123
}
124
124
` ;
125
125
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
+ import styled from "@emotion/styled" ;
2
3
import { observer } from "mobx-react" ;
3
4
4
5
import { useStores } from "@src/stores" ;
6
+ import { media } from "@src/themes/breakpoints" ;
5
7
6
8
import PerpTable from "./PerpTable" ;
7
9
import SpotTable from "./SpotTable" ;
8
10
9
11
const BottomTables : React . FC = observer ( ( ) => {
10
12
const { tradeStore } = useStores ( ) ;
11
13
12
- if ( tradeStore . isPerp ) {
13
- return < PerpTable /> ;
14
- }
14
+ const TableComponent = tradeStore . isPerp ? PerpTable : SpotTable ;
15
15
16
- return < SpotTable /> ;
16
+ return (
17
+ < StyledBottomTables >
18
+ < TableComponent />
19
+ </ StyledBottomTables >
20
+ ) ;
17
21
} ) ;
18
22
19
23
export default BottomTables ;
24
+
25
+ const StyledBottomTables = styled . div `
26
+ width: 100%;
27
+
28
+ ${ media . mobile } {
29
+ flex-grow: 1;
30
+ }
31
+ ` ;
Original file line number Diff line number Diff line change @@ -258,6 +258,8 @@ const SettingsContainer = styled(Row)`
258
258
259
259
${ media . mobile } {
260
260
order: 3;
261
+ padding: 0 8px;
262
+ flex-direction: row-reverse;
261
263
}
262
264
` ;
263
265
@@ -347,6 +349,9 @@ const OrderbookContainer = styled.div`
347
349
flex-direction: column;
348
350
width: 100%;
349
351
height: 100%;
352
+ ${ media . mobile } {
353
+ height: fit-content;
354
+ }
350
355
` ;
351
356
352
357
const Container = styled ( OrderbookContainer ) < {
@@ -359,7 +364,7 @@ const Container = styled(OrderbookContainer)<{
359
364
height: 100%;
360
365
361
366
${ media . mobile } {
362
- justify-content: center ;
367
+ justify-content: flex-start ;
363
368
}
364
369
` ;
365
370
Original file line number Diff line number Diff line change @@ -345,6 +345,10 @@ const Root = styled(SmartFlex)`
345
345
min-height: 418px;
346
346
display: flex;
347
347
gap: 16px;
348
+
349
+ ${ media . mobile } {
350
+ min-height: fit-content;
351
+ }
348
352
` ;
349
353
350
354
const LeverageButton = styled ( Button ) `
@@ -365,6 +369,10 @@ const TpSlContentContainer = styled(SmartFlex)<{ isOpen: boolean }>`
365
369
366
370
const CreateOrderButton = styled ( Button ) `
367
371
margin: auto 0 0;
372
+
373
+ ${ media . mobile } {
374
+ margin: 0;
375
+ }
368
376
` ;
369
377
370
378
const ParamsContainer = styled . div `
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ const MobileContent = styled.div`
90
90
grid-template-columns: 140px 1fr;
91
91
gap: 8px;
92
92
width: 100%;
93
- min- height: 404px ;
93
+ height: fit-content ;
94
94
` ;
95
95
96
96
const ContentWrapper = styled ( SmartFlex ) `
You can’t perform that action at this time.
0 commit comments