Skip to content

Commit 622fd46

Browse files
committed
fixed: fix orderbook not being properly rendered in smaller moniters
1 parent 6bc6ce5 commit 622fd46

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/components/OrderBook/OrderBook.styles.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
export const container =
2-
"flex w-full flex-col bg-card font-mono text-xs mt-10 rounded-md";
1+
export const container =
2+
"flex w-full h-full flex-col bg-card font-mono text-xs rounded-md overflow-hidden";
33

44
export const loadingContainer =
55
"flex h-full items-center justify-center text-xs text-muted-foreground font-mono";
66

77
export const errorContainer =
88
"flex h-full items-center justify-center text-xs text-destructive font-mono";
99

10-
export const asksWrapper =
11-
"flex flex-1 flex-col justify-end min-h-0 pb-1";
10+
export const asksWrapper =
11+
"flex flex-1 flex-col justify-end min-h-0 pb-1 overflow-hidden";
1212

13-
export const bidsWrapper =
14-
"flex flex-1 flex-col pt-1 min-h-0";
13+
export const bidsWrapper =
14+
"flex flex-1 flex-col pt-1 min-h-0 overflow-hidden";
1515

1616
export const headerRow =
1717
"flex w-full px-3 text-[#848E9C] text-xs font-semibold items-center";

src/components/OrderBook/OrderBook.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ export const OrderBook = ({ symbol }: OrderBookProps) => {
4646

4747
return (
4848
<div className={S.container}>
49-
<div className={S.asksWrapper}>
50-
<div className={S.headerRow}>
49+
<div className={S.headerRow}>
5150
<span className={S.colPrice}>Price(USDT)</span>
5251
<span className={S.colAmount}>Amount</span>
5352
<span className={S.colTotal}>Total</span>
5453
</div>
55-
54+
<div className={S.asksWrapper}>
5655
{asks.map((ask) => (
5756
<OrderBookRow
5857
key={ask[0]}

0 commit comments

Comments
 (0)