Hub monitor card: split perpetual and options blocks when options enabled.

Show matching stat rows and position sections for each account type; keep the standard single-block layout for exchanges without options.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-07 13:17:48 +08:00
parent 4a3afdfb48
commit 5e66600727
3 changed files with 153 additions and 63 deletions
+39
View File
@@ -7896,6 +7896,45 @@ body.funds-fullscreen-open {
}
}
/* ── 监控页:永续 / 期权分块 ── */
.hub-monitor-block {
margin-bottom: 4px;
}
.hub-monitor-block-label {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.06em;
color: var(--text);
margin: 0 0 8px;
}
.hub-monitor-perp .section-title:first-of-type {
margin-top: 0;
}
.hub-monitor-options {
margin-top: 14px;
padding-top: 12px;
border-top: 1px dashed var(--border-soft);
}
.hub-monitor-options .hub-monitor-block-label {
color: var(--accent);
}
.hub-monitor-options .section-title.hub-options-title {
margin-top: 0;
}
html[data-theme="light"] .hub-monitor-block-label {
color: #142232;
}
html[data-theme="light"] .hub-monitor-options .hub-monitor-block-label {
color: #006e9a;
}
/* ── 监控页:OKX 期权只读聚合 ── */
.hub-options-title {
margin-top: 14px;