Fix dashboard mobile load issues and simplify card layout.

Reduce poll pressure on phone/tablet, cache key prices, and handle live API errors gracefully. Rework mobile position and close cards with inline direction, compact P/L line, and detail modal.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-29 23:10:20 +08:00
parent d1ad0f9253
commit 2f5b5c4aae
6 changed files with 225 additions and 34 deletions
+23 -1
View File
@@ -362,7 +362,8 @@ html:is([data-layout="phone"], .layout-phone) .dash-mobile-list {
}
html:is([data-layout="phone"], .layout-phone) .dash-pos-table-wrap,
html:is([data-layout="phone"], .layout-phone) .dash-keys-table-wrap {
html:is([data-layout="phone"], .layout-phone) .dash-keys-table-wrap,
html:is([data-layout="phone"], .layout-phone) .dash-closes-table-wrap {
display: none;
}
@@ -416,6 +417,27 @@ html:is([data-layout="phone"], .layout-phone) .dash-keys-table-wrap {
font-size: 0.78rem;
}
.dash-mobile-item-summary {
flex: 1;
min-width: 0;
line-height: 1.45;
color: var(--text-muted);
}
.dash-mobile-item-summary .pnl-pos {
color: var(--profit);
font-weight: 600;
}
.dash-mobile-item-summary .pnl-neg {
color: var(--loss);
font-weight: 600;
}
.dash-mobile-item-title .badge {
vertical-align: middle;
}
.dash-mobile-chevron {
font-size: 0.72rem;
color: var(--accent);