From 076f27a12a63f193592cee7d225a1142b371b72d Mon Sep 17 00:00:00 2001 From: "jihoon87.lee" Date: Wed, 25 Feb 2026 10:01:58 +0900 Subject: [PATCH] =?UTF-8?q?=ED=98=B8=EA=B0=80=EC=B0=BD=20=EB=A7=A4?= =?UTF-8?q?=EC=88=98,=EB=A7=A4=EB=8F=84=20=EC=83=89=EC=83=81=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trade/components/orderbook/OrderBook.tsx | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/features/trade/components/orderbook/OrderBook.tsx b/features/trade/components/orderbook/OrderBook.tsx index 5763642..43b3be1 100644 --- a/features/trade/components/orderbook/OrderBook.tsx +++ b/features/trade/components/orderbook/OrderBook.tsx @@ -462,8 +462,8 @@ function CurrentPriceBar({ totalBid: number; }) { return ( -
-
+
+
{totalAsk > 0 ? fmt(totalAsk) : ""}
@@ -492,7 +492,7 @@ function CurrentPriceBar({ )}
-
+
{totalBid > 0 ? fmt(totalBid) : ""}
@@ -502,14 +502,14 @@ function CurrentPriceBar({ /** 호가 표 헤더 */ function BookHeader() { return ( -
-
+
+
매도잔량
호가
-
+
매수잔량
@@ -532,8 +532,8 @@ function BookSideRows({
{rows.map((row, i) => { @@ -580,7 +580,7 @@ function BookSideRows({ {row.price > 0 ? fmt(row.price) : "-"} @@ -647,7 +647,7 @@ function SummaryPanel({ { label: "실시간", value: orderBook || latestTick ? "연결됨" : "끊김", - tone: orderBook || latestTick ? "bid" : undefined, + tone: orderBook || latestTick ? "ask" : undefined, }, { label: "거래량", value: fmt(displayTradeVolume) }, { @@ -733,8 +733,8 @@ function SummaryMetricCell({ {value} @@ -751,8 +751,8 @@ function DepthBar({ ratio, side }: { ratio: number; side: "ask" | "bid" }) { className={cn( "absolute inset-y-0.5 z-0 rounded-sm transition-[width] duration-150", side === "ask" - ? "right-0.5 bg-red-300/55 dark:bg-red-700/50" - : "left-0.5 bg-blue-300/60 dark:bg-blue-600/45", + ? "right-0.5 bg-blue-300/55 dark:bg-blue-700/50" + : "left-0.5 bg-red-300/60 dark:bg-red-600/45", )} style={{ width: `${ratio}%` }} /> @@ -861,11 +861,11 @@ function CumulativeRows({ asks, bids }: { asks: BookRow[]; bids: BookRow[] }) { key={i} className="grid h-7 grid-cols-3 items-center rounded border bg-background px-2 text-xs dark:border-brand-800/45 dark:bg-black/20" > - {fmt(r.askAcc)} + {fmt(r.askAcc)} {fmt(r.price)} - + {fmt(r.bidAcc)}