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 }} - +