From feef36db78232441ed87c59e7c457e8fbe1b8a64 Mon Sep 17 00:00:00 2001 From: dekun Date: Thu, 20 Aug 2026 17:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E9=87=91=E6=A0=8F=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=20USDT/ETH=20=E5=A4=9A=E8=A1=8C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- lib/common/static/instance_theme.css | 7 +++++++ lib/instance/instance_embed_context_lib.py | 2 +- lib/instance/templates/embed_boot_scripts.html | 2 +- lib/instance/templates/index.html | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/common/static/instance_theme.css b/lib/common/static/instance_theme.css index 2cc6fb9..2278563 100644 --- a/lib/common/static/instance_theme.css +++ b/lib/common/static/instance_theme.css @@ -837,6 +837,13 @@ html[data-theme="light"] .nav-spot--down .nav-spot-pct { white-space: nowrap; } +.stat-strip-item .value[data-funds-field="current-capital"], +.inst-phone-chip b[data-funds-field="current-capital"] { + white-space: pre-line; + line-height: 1.25; + text-align: center; +} + .stat-strip-item--primary .label { font-size: 0.76rem; } diff --git a/lib/instance/instance_embed_context_lib.py b/lib/instance/instance_embed_context_lib.py index 3103f02..3962ed3 100644 --- a/lib/instance/instance_embed_context_lib.py +++ b/lib/instance/instance_embed_context_lib.py @@ -166,7 +166,7 @@ def trading_account_label( btc_txt = _fmt_coin_amount(btc, min_amt=1e-7) if btc_txt is not None: parts.append(f"{btc_txt} BTC") - return " / ".join(parts) if parts else "—" + return "\n".join(parts) if parts else "—" def total_funds_usdt( diff --git a/lib/instance/templates/embed_boot_scripts.html b/lib/instance/templates/embed_boot_scripts.html index 1058e24..34aeb18 100644 --- a/lib/instance/templates/embed_boot_scripts.html +++ b/lib/instance/templates/embed_boot_scripts.html @@ -1164,7 +1164,7 @@ function formatTradingAccountLabel(usdt, eth, btc, marginMode) { }; pushCoin(eth, "ETH"); pushCoin(btc, "BTC"); - return parts.length ? parts.join(" / ") : "—"; + return parts.length ? parts.join("\n") : "—"; } function setFundsFieldText(field, text){ diff --git a/lib/instance/templates/index.html b/lib/instance/templates/index.html index 7d9d409..5ef380c 100644 --- a/lib/instance/templates/index.html +++ b/lib/instance/templates/index.html @@ -19,7 +19,7 @@ {{ pwa_app_name }} - +