feat: 监控区 2x2 布局与左上今日统计卡
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1153,7 +1153,59 @@ html[data-theme="light"] .host-metric-bar {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
/* 列数由 app.js syncMonitorGridColumns 按卡片数量设置 */
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.grid-monitor.grid-monitor-2x2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.grid-monitor.grid-monitor-with-stats {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.monitor-stats-card .card-head {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.monitor-stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 12px 14px;
|
||||
}
|
||||
|
||||
.monitor-stat-cell {
|
||||
min-width: 0;
|
||||
padding: 10px 10px 8px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--border-soft);
|
||||
background: color-mix(in srgb, var(--panel-solid) 88%, transparent);
|
||||
}
|
||||
|
||||
.monitor-stat-label {
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.monitor-stat-value {
|
||||
font-family: var(--display);
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.monitor-stat-sub {
|
||||
margin-top: 4px;
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.monitor-stats-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.card-expand-zone {
|
||||
|
||||
Reference in New Issue
Block a user