From 7beeb3500c5f87729d9ee075162606b50412e52e Mon Sep 17 00:00:00 2001 From: dekun Date: Mon, 25 May 2026 07:37:33 +0800 Subject: [PATCH] =?UTF-8?q?hub=E6=94=BE=E5=A4=A7=E6=8E=92=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manual_trading_hub/hub.py | 2 +- manual_trading_hub/static/app.css | 35 +++++++++++++++++++++++++++- manual_trading_hub/static/index.html | 2 +- 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/manual_trading_hub/hub.py b/manual_trading_hub/hub.py index 8f0de6c..b0c5a89 100644 --- a/manual_trading_hub/hub.py +++ b/manual_trading_hub/hub.py @@ -43,7 +43,7 @@ HUB_BRIDGE_TOKEN = (os.getenv("HUB_BRIDGE_TOKEN") or os.getenv("CONTROL_TOKEN") _trust_raw = (os.getenv("HUB_TRUST_LAN", "true") or "").strip().lower() HUB_TRUST_LAN = _trust_raw not in ("0", "false", "no", "off") DIR = Path(__file__).resolve().parent -HUB_BUILD = "20260525-fs-fix" +HUB_BUILD = "20260525-fs-pos-row" def _is_local(host: str | None) -> bool: diff --git a/manual_trading_hub/static/app.css b/manual_trading_hub/static/app.css index 71be242..065d804 100644 --- a/manual_trading_hub/static/app.css +++ b/manual_trading_hub/static/app.css @@ -533,7 +533,7 @@ body.hub-fullscreen-open { .exchange-fullscreen-panel { position: relative; z-index: 1; - max-width: 820px; + max-width: min(1800px, 98vw); margin: 0 auto; } @@ -604,6 +604,18 @@ body.hub-fullscreen-open { margin-bottom: 14px; } +/* 全屏放大:持仓卡片横向排列 */ +.exchange-fullscreen .hub-pos-list { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + gap: 14px; + align-items: start; +} + +.exchange-fullscreen .hub-pos-card.pos-card { + min-width: 0; +} + /* 对齐实盘「实时持仓」pos-card */ .hub-pos-card.pos-card { background: rgba(10, 16, 28, 0.95); @@ -730,6 +742,17 @@ body.hub-fullscreen-open { font-weight: 500; } +.hub-pos-card .pos-value.pnl-pos { + color: var(--green); + font-weight: 600; + text-shadow: 0 0 12px rgba(0, 255, 157, 0.25); +} + +.hub-pos-card .pos-value.pnl-neg { + color: var(--red); + font-weight: 600; +} + .hub-pos-card .pos-footer { display: flex; flex-wrap: wrap; @@ -1158,6 +1181,16 @@ button.btn-sm { .pnl-neg { color: var(--red); } + +.data-table td.pnl-pos { + color: var(--green); + font-weight: 600; +} + +.data-table td.pnl-neg { + color: var(--red); + font-weight: 600; +} .err { color: var(--red); font-size: 12px; diff --git a/manual_trading_hub/static/index.html b/manual_trading_hub/static/index.html index f317615..cdbfd24 100644 --- a/manual_trading_hub/static/index.html +++ b/manual_trading_hub/static/index.html @@ -7,7 +7,7 @@ - +