From 1c155328b4993c55c23a86042aa3d428d3f0096a Mon Sep 17 00:00:00 2001 From: dekun Date: Sun, 19 Jul 2026 08:20:55 +0800 Subject: [PATCH] =?UTF-8?q?Move=20=E6=9C=9F=E6=9C=9F=20USDC=20transfer=20i?= =?UTF-8?q?nto=20T-quote=20card=20to=20free=20left=20panel.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- lib/common/static/hedge_plan.js | 1 + lib/common/static/instance_theme.css | 16 +++++--- .../templates/hedge_plan_panel.html | 38 +++++++++---------- 3 files changed, 30 insertions(+), 25 deletions(-) diff --git a/lib/common/static/hedge_plan.js b/lib/common/static/hedge_plan.js index c90cab3..785ade2 100644 --- a/lib/common/static/hedge_plan.js +++ b/lib/common/static/hedge_plan.js @@ -217,6 +217,7 @@ el.textContent = text || ""; el.classList.toggle("is-err", kind === "err"); el.classList.toggle("is-ok", kind === "ok"); + el.classList.toggle("muted", !kind); } function ooXferDir() { diff --git a/lib/common/static/instance_theme.css b/lib/common/static/instance_theme.css index 2009e3f..b62e248 100644 --- a/lib/common/static/instance_theme.css +++ b/lib/common/static/instance_theme.css @@ -3281,13 +3281,17 @@ html[data-theme="light"] .opt-be-dist-down { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); } +.hedge-plan-page-wrap .hp-oo-transfer--compact { + margin: 12px 0 8px; + padding: 8px 10px; +} .hedge-plan-page-wrap .hp-oo-transfer-bals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; - margin-bottom: 8px; - font-size: 0.78rem; + margin-bottom: 6px; + font-size: 0.76rem; } .hedge-plan-page-wrap .hp-oo-transfer-bals strong { color: var(--text, #e6edf3); @@ -3311,15 +3315,15 @@ html[data-theme="light"] .opt-be-dist-down { width: 96px; max-width: 30vw; } -.hedge-plan-page-wrap .hp-oo-transfer-msg { - margin: 6px 0 0; +.hedge-plan-page-wrap #hp-oo-xfer-msg { + margin-left: auto; font-size: 0.72rem; min-height: 1.1em; } -.hedge-plan-page-wrap .hp-oo-transfer-msg.is-err { +.hedge-plan-page-wrap #hp-oo-xfer-msg.is-err { color: #ff8a8a; } -.hedge-plan-page-wrap .hp-oo-transfer-msg.is-ok { +.hedge-plan-page-wrap #hp-oo-xfer-msg.is-ok { color: #3dd68c; } .hedge-plan-page-wrap .hp-oo-controls { diff --git a/lib/hedge_plan/templates/hedge_plan_panel.html b/lib/hedge_plan/templates/hedge_plan_panel.html index 836a3d8..e165f0c 100644 --- a/lib/hedge_plan/templates/hedge_plan_panel.html +++ b/lib/hedge_plan/templates/hedge_plan_panel.html @@ -137,24 +137,6 @@ 指数 — -
-
- 资金 - · - 交易 - USDC -
-
- - - - -
-

-
张数 @@ -213,6 +195,24 @@
+
+
+ 资金 + · + 交易 + USDC + +
+
+ + + + +
+
@@ -298,4 +298,4 @@
- +