style(web): 薰衣草主题背景下沉与卡片阴影、面板紧凑度微调

- 主区背景下沉至约 92% 明度,卡片/KPI 改用更明显的紫色投影并上浮
- 修复 Dashboard 在 route-page flex 下被压扁导致快捷入口被裁切
- 车辆监控面板紧凑化

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zhaowei.huang
2026-05-31 00:16:54 +08:00
co-authored by Cursor
parent bf450e38a0
commit 745ab03a84
4 changed files with 52 additions and 40 deletions
@@ -285,22 +285,23 @@ function detailIdForCar(car: Car): string {
.vehicle-monitor {
display: flex;
flex-direction: column;
gap: 10px;
gap: 6px;
min-height: 0;
height: 100%;
overflow: hidden;
}
.overview-row {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 6px;
gap: 4px;
flex: none;
}
.overview-item {
background: var(--mg-veil-1);
border: 1px solid var(--mg-veil-border);
border-radius: 8px;
padding: 6px 4px;
border-radius: 6px;
padding: 4px 2px;
text-align: center;
transition: var(--mg-transition, all 0.2s ease);
}
@@ -309,7 +310,7 @@ function detailIdForCar(car: Car): string {
border-color: rgba(var(--mg-accent-rgb, 142, 200, 252), 0.4);
}
.overview-num {
font-size: 18px;
font-size: 15px;
font-weight: 600;
color: var(--mg-text-light);
line-height: 1.2;
@@ -333,24 +334,25 @@ function detailIdForCar(car: Car): string {
.toolbar .filter { width: 100px; flex: none; }
.vehicle-list {
flex: 1;
flex: 1 1 0;
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 6px;
gap: 4px;
padding-right: 2px;
}
.vehicle-row {
background: var(--mg-veil-1);
border: 1px solid var(--mg-veil-border);
border-radius: 6px;
padding: 6px 8px;
border-radius: 4px;
padding: 4px 6px;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 3px;
gap: 2px;
flex: none;
transition: all 0.18s ease;
}
.vehicle-row:hover {
@@ -369,7 +371,7 @@ function detailIdForCar(car: Car): string {
gap: 6px;
}
.vid {
font-size: 11.5px;
font-size: 10.5px;
color: var(--mg-text-muted);
font-family: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
flex: none;
@@ -379,7 +381,7 @@ function detailIdForCar(car: Car): string {
min-width: 0;
color: var(--mg-text-light);
font-weight: 600;
font-size: 12.5px;
font-size: 11.5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -413,8 +415,8 @@ function detailIdForCar(car: Car): string {
.vehicle-sub {
display: flex;
align-items: center;
gap: 10px;
font-size: 11.5px;
gap: 6px;
font-size: 10.5px;
}
.battery-mini {
display: flex;