From 68d02b9c1718d05f14b7f090ecf9734795173400 Mon Sep 17 00:00:00 2001 From: dekun Date: Thu, 6 Aug 2026 03:37:52 +0800 Subject: [PATCH] Move strategy residual table below market panels. Co-authored-by: Cursor --- frontend/src/pages/Plan.tsx | 147 ++++++++++++++++++------------------ frontend/src/styles/app.css | 6 +- 2 files changed, 78 insertions(+), 75 deletions(-) diff --git a/frontend/src/pages/Plan.tsx b/frontend/src/pages/Plan.tsx index f4e188f..ee9f408 100644 --- a/frontend/src/pages/Plan.tsx +++ b/frontend/src/pages/Plan.tsx @@ -569,79 +569,6 @@ export default function PlanPage() { ) : null} - {plan?.residuals && plan.residuals.length > 0 ? ( -
-
-

残留期权

- - 自动平仓仍要求权利金≥设定比例;「平仓」仅验流动性 - -
-
- - - - - - - - - - - - - - - {plan.residuals.map((r) => { - const gid = String(r.group_id || ""); - const inst = String(r.option_inst_id || "—"); - const liqOk = r.liquidity_ok === true; - return ( - - - - - - - - - - - ); - })} - -
组名期权名数量开仓权利金买一流动性买一权利金占比操作
{gid || "—"}{inst}{fmt(r.option_qty_eth, 4)}{fmt(r.initial_premium, 2)} - {fmtBidLiquidity(r.bid_px, r.bid_sz_eth)} - {fmt(r.current_premium, 2)} - {r.recovery_pct == null - ? "—" - : `${fmt(r.recovery_pct, 1)}%`} - - -
-
-
- ) : null}
@@ -924,6 +851,80 @@ export default function PlanPage() {
+ + {plan?.residuals && plan.residuals.length > 0 ? ( +
+
+

残留期权

+ + 自动平仓仍要求权利金≥设定比例;「平仓」仅验流动性 + +
+
+ + + + + + + + + + + + + + + {plan.residuals.map((r) => { + const gid = String(r.group_id || ""); + const inst = String(r.option_inst_id || "—"); + const liqOk = r.liquidity_ok === true; + return ( + + + + + + + + + + + ); + })} + +
组名期权名数量开仓权利金买一流动性买一权利金占比操作
{gid || "—"}{inst}{fmt(r.option_qty_eth, 4)}{fmt(r.initial_premium, 2)} + {fmtBidLiquidity(r.bid_px, r.bid_sz_eth)} + {fmt(r.current_premium, 2)} + {r.recovery_pct == null + ? "—" + : `${fmt(r.recovery_pct, 1)}%`} + + +
+
+
+ ) : null} ); diff --git a/frontend/src/styles/app.css b/frontend/src/styles/app.css index a63b912..610cbaa 100644 --- a/frontend/src/styles/app.css +++ b/frontend/src/styles/app.css @@ -732,9 +732,11 @@ input { } .plan-residual-block { - margin-top: 14px; + margin-top: 0; padding-top: 12px; - border-top: 1px solid var(--line); + width: 100%; + min-width: 0; + box-sizing: border-box; } .plan-residual-head {