概览微调:进度条与图标对齐、明细文字向存储信息看齐、实时监控改主按钮
- 处理器/内存进度条去掉 12px 侧边内缩,左缘与卡片图标精确对齐(断言 Δ<1.5px) - 明细小字(CPU 型号/进程数)此前因选择器不命中而偏大:现与存储空间盘符信息同行同款(同字号 --nex-text-3xs 同灰色 --nex-muted) - 「实时监控」ghost 描边按钮改为橙色主按钮,与「开始智能扫描」同尺寸同样式 - demo 8 断言全过(对齐/字号/颜色/按钮类名与高度实测)dev
parent
761710402d
commit
e75b711c73
|
|
@ -214,7 +214,7 @@ export function OverviewPage({
|
|||
: t("Start a smart scan", "开始智能扫描")}
|
||||
</Button>
|
||||
<Button
|
||||
variant="ghost"
|
||||
variant="primary"
|
||||
icon={<CircleGauge size={16} />}
|
||||
onClick={() => onNavigate("system")}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -5279,10 +5279,27 @@ select:focus-visible,
|
|||
border-top: 1px dashed rgba(96, 82, 60, 0.18);
|
||||
}
|
||||
|
||||
/* Bars flush with the metric icons (no extra side inset), and the detail
|
||||
line reads exactly like the drive rows' info text. Declared after the
|
||||
generic .overview-metrics inset below so it wins the cascade. */
|
||||
.metric-combo .m-block > small {
|
||||
display: block;
|
||||
margin-top: 8px;
|
||||
overflow: hidden;
|
||||
color: var(--nex-muted);
|
||||
font-size: var(--nex-text-3xs);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.overview-metrics .usage-bar {
|
||||
margin-inline: 12px;
|
||||
}
|
||||
|
||||
.metric-combo .usage-bar {
|
||||
margin-inline: 0;
|
||||
}
|
||||
|
||||
.metric-drives {
|
||||
align-content: start;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue