资金栏交易账户 USDT/ETH 多行显示。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-20 17:40:16 +08:00
parent 857974070e
commit feef36db78
4 changed files with 11 additions and 4 deletions
+7
View File
@@ -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;
}
+1 -1
View File
@@ -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(
@@ -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){
+2 -2
View File
@@ -19,7 +19,7 @@
<link rel="manifest" href="/static/icons/manifest.webmanifest">
<title>{{ pwa_app_name }}</title>
<link rel="stylesheet" href="/static/instance_page.css?v=13">
<link rel="stylesheet" href="/static/instance_theme.css?v=117">
<link rel="stylesheet" href="/static/instance_theme.css?v=118">
</head>
<body
@@ -1645,7 +1645,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){