fix: 四榜并列后的横向溢出与进度条语义说明

This commit is contained in:
jinghui committed 2026-10-26 18:55:05 +08:00
1 parent 743a41c0e7
commit 2b8bd3a503
2 files changed
+5 -2

No files matched your search

+2 -1
View File
@@ -278,7 +278,8 @@ async function renderApps(silent) {
<div class="top-head"><b>运行时长 Top 5</b><span class="muted">连续运行</span></div>
${topRun.map((a, i) => topRow(a, i, `${fmtDurCompact(a.runMs)} <small>${a.running}/${a.total}</small>`, (a.runMs / maxRun) * 100, 'run')).join('') || '<div class="empty sm">暂无数据</div>'}
</div>
</div>`;
</div>
<div class="top-note">进度条长度按各榜第一名的值等比缩放,不是占整机比例</div>`;
const insItems = (ins && ins.items) || [];
const shownIns = state.insightOpen ? insItems : insItems.slice(0, 4);
+3 -1
View File
@@ -4,7 +4,7 @@
--radius:10px; --shadow:0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
html,body{overflow-x:hidden;margin:0;height:100%}
body{background:var(--bg);color:var(--text);font:14px/1.5 -apple-system,"PingFang SC","Microsoft YaHei",Segoe UI,Roboto,sans-serif}
.app{display:flex;height:100vh;overflow:hidden}
a{color:var(--blue);text-decoration:none;cursor:pointer}
@@ -314,3 +314,5 @@ table.tb th.num{text-align:right}
.trend-card:nth-child(3) .tc-now{color:#7a5af8}
.tc-foot{font-size:11px;color:#8b95a5;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tf-chart{width:100%;height:112px;display:block}
.top-note{font-size:11px;color:#9aa4b5;margin:-6px 0 12px 2px}