恢复背景效果

This commit is contained in:
CN-JS-HuiBai
2026-04-05 22:47:48 +08:00
parent 2a8cb32d47
commit afe7361e06
3 changed files with 59 additions and 36 deletions

View File

@@ -647,11 +647,7 @@
// Flash animation
if (previousMetrics) {
[dom.cpuPercent, dom.memPercent, dom.diskPercent, dom.totalBandwidthTx, dom.totalBandwidthRx].forEach(el => {
el.classList.remove('value-update');
void el.offsetWidth; // Force reflow
el.classList.add('value-update');
});
// No flash on update
}
previousMetrics = data;