perf(tui): coalesce and cancel usage refreshes

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-09 13:04:45 +08:00
1 parent b7fc4146e0
commit 7d845046e0
6 files changed
+225 -23

No files matched your search

+1
View File
@@ -108,6 +108,7 @@ export class UsagePanel {
}
private render(): void {
if (!this.visible) return
const { theme, width } = this
const compact = this.height < 20
const tiny = this.height < 14