精修 WebUI 第十五轮:设备下拉框状态点

- decorateDeviceSelect: 把 #device select 包裹进 .deviceSelectWrap,在右侧自定义箭头之前插入状态点
- 状态点:选中具体设备或自动模式下有在线设备 → 绿色 ok;无设备 → 灰色 idle;refreshDevices/change 时更新
- cache-bust v17 → v18
This commit is contained in:
Codex committed 2026-05-21 09:29:38 +08:00
1 parent 16042d7fd2
commit 94e8d37d18
3 files changed
+56 -2

No files matched your search

+28
View File
@@ -2324,6 +2324,34 @@ details[open] > summary.sectionTitle::before {
}
}
/* Device select wrapper with status dot */
.deviceSelectWrap {
position: relative;
display: block;
}
.deviceSelectWrap select {
padding-right: 40px;
}
.deviceSelectDot {
position: absolute;
right: 28px;
top: 50%;
transform: translateY(-50%);
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--muted-soft);
box-shadow: 0 0 0 2px color-mix(in oklab, var(--muted-soft) 16%, transparent);
pointer-events: none;
}
.deviceSelectDot[data-state="ok"] {
background: var(--success);
box-shadow: 0 0 0 2px color-mix(in oklab, var(--success) 16%, transparent);
}
/* ==================== Tooltip (data-tooltip) ==================== */
[data-tooltip] {
position: relative;