精修 WebUI 第七轮:底部状态栏 + 实时反馈
- 底部 appFooter:左侧连接状态点(idle/ok/error 3 态 + tooltip)+ 文字;右侧版本号 + 构建标识;移动端纵向排列 - API 连接状态实时指示:apiGet/apiPost 拦截成功失败,连续 2 次失败才标 error,避免抖动 - 版本号:尝试拉 /api/version;失败时回退到 cache-bust tag - stat 数字变化时短暂闪 primary 色(statFlash 700ms),通过 setTextIfExists 自动触发 - number input 隐藏原生上下箭头 + tabular-nums 数字 - cache-bust v9 → v10
This commit is contained in:
1 parent
07700c24d9
commit
857b33f413
3 files changed
+196
-23
No files matched your search
@@ -1249,6 +1249,20 @@ select.input {
|
||||
padding-right: 28px;
|
||||
}
|
||||
|
||||
/* Number inputs: hide native spinner everywhere, keep arrow keys */
|
||||
input[type="number"] {
|
||||
-moz-appearance: textfield;
|
||||
appearance: textfield;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.textarea {
|
||||
min-height: 96px;
|
||||
padding: 9px 10px;
|
||||
@@ -1379,6 +1393,22 @@ select.input {
|
||||
letter-spacing: var(--tracking-tight);
|
||||
font-variant-numeric: tabular-nums;
|
||||
overflow-wrap: anywhere;
|
||||
transition: color var(--motion-fast);
|
||||
}
|
||||
|
||||
.statValue.isFlash {
|
||||
animation: statFlash 700ms ease-out;
|
||||
}
|
||||
|
||||
@keyframes statFlash {
|
||||
0% { color: var(--primary); }
|
||||
100% { color: var(--text-strong); }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.statValue.isFlash {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
.statTrace {
|
||||
@@ -2043,6 +2073,63 @@ details[open] > summary.sectionTitle::before {
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
/* ==================== App footer ==================== */
|
||||
.appFooter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-top: 18px;
|
||||
padding: 10px 14px;
|
||||
border-top: 1px solid var(--border);
|
||||
color: var(--muted);
|
||||
font-size: var(--text-xs);
|
||||
letter-spacing: var(--tracking-wide);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.appFooterLeft,
|
||||
.appFooterRight {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.appConnDot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--muted-soft);
|
||||
box-shadow: 0 0 0 3px color-mix(in oklab, var(--muted-soft) 16%, transparent);
|
||||
}
|
||||
|
||||
.appConnDot[data-state="ok"] {
|
||||
background: var(--success);
|
||||
box-shadow: 0 0 0 3px color-mix(in oklab, var(--success) 16%, transparent);
|
||||
}
|
||||
|
||||
.appConnDot[data-state="error"] {
|
||||
background: var(--danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 16%, transparent);
|
||||
animation: statusPulse 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.appConnText,
|
||||
.appFooterMeta {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.appFooterDivider {
|
||||
color: var(--muted-soft);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.appFooter {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
/* ==================== Toast ==================== */
|
||||
.toastContainer {
|
||||
position: fixed;
|
||||
|
||||
Reference in new issue
Block a user