From fc6f85e76caa7a49d848ab0ec1690b7f922fbf3b Mon Sep 17 00:00:00 2001 From: dekun Date: Tue, 7 Jul 2026 01:52:50 +0800 Subject: [PATCH] fix: taller centered stats strip with larger exchange and trade count Co-authored-by: Cursor --- lib/common/static/instance_theme.css | 37 ++++++++++++------- lib/instance/templates/embed_shell.html | 2 +- lib/instance/templates/index.html | 2 +- .../templates/instance_header_panel.html | 4 +- 4 files changed, 28 insertions(+), 17 deletions(-) diff --git a/lib/common/static/instance_theme.css b/lib/common/static/instance_theme.css index 0a86560..4e2d003 100644 --- a/lib/common/static/instance_theme.css +++ b/lib/common/static/instance_theme.css @@ -606,46 +606,57 @@ html[data-theme="light"] .theme-toggle-btn.is-active { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; - margin-top: 10px; - padding-top: 10px; + margin-top: 12px; + padding: 14px 0 12px; border-top: 1px solid var(--border-soft, #2a3150); + min-height: 72px; + align-items: center; } .stat-strip-item { display: flex; flex-direction: column; - align-items: flex-start; + align-items: center; justify-content: center; min-width: 0; - padding: 0 12px; + padding: 4px 10px; border-right: 1px solid var(--border-soft, #2a3150); - text-align: left; + text-align: center; } .stat-strip-item:first-child { - padding-left: 0; + padding-left: 4px; } .stat-strip-item:last-child { border-right: none; - padding-right: 0; + padding-right: 4px; } .stat-strip-item .label { - font-size: 0.7rem; + font-size: 0.72rem; color: #8892b0; - margin-bottom: 3px; + margin-bottom: 6px; white-space: nowrap; } .stat-strip-item .value { - font-size: 0.92rem; + font-size: 0.94rem; font-weight: 600; color: #e8ecff; - line-height: 1.25; + line-height: 1.3; white-space: nowrap; } +.stat-strip-item--primary .label { + font-size: 0.76rem; +} + +.stat-strip-item--primary .value { + font-size: 1.18rem; + font-weight: 700; +} + .stat-strip-item--pnl .value.pnl-pos { color: #3dd68c; } @@ -662,11 +673,11 @@ html[data-theme="light"] .theme-toggle-btn.is-active { .stat-strip-item { border-right: none; - padding: 0 8px 0 0; + padding: 6px 8px; } .stat-strip-item:first-child { - padding-left: 0; + padding-left: 6px; } } diff --git a/lib/instance/templates/embed_shell.html b/lib/instance/templates/embed_shell.html index bf6bf03..1a51121 100644 --- a/lib/instance/templates/embed_shell.html +++ b/lib/instance/templates/embed_shell.html @@ -7,7 +7,7 @@ - + {{ exchange_display }} · 加密货币 | 交易监控复盘系统 diff --git a/lib/instance/templates/index.html b/lib/instance/templates/index.html index b697200..fb480b0 100644 --- a/lib/instance/templates/index.html +++ b/lib/instance/templates/index.html @@ -17,7 +17,7 @@ {{ exchange_display }} · 加密货币 | 交易监控复盘系统 - +
-
+
交易所
{{ exchange_display }}
-
+
总交易
{{ total }}