perf: trim widget loading work

This commit is contained in:
ajnart committed 2026-08-14 11:32:11 +02:00
1 parent b2fbd10965
commit af6fb75e6b
4 files changed
+5 -2

No files matched your search

@@ -104,8 +104,9 @@ const SystemDiskCard = ({
measure();
const observer = new ResizeObserver(measure);
observer.observe(card);
observer.observe(value);
return () => observer.disconnect();
}, [displayText, healthy]);
}, []);
const unhealthyLabel = t("widget.systemDisks.status.unhealthy");
const hasTemperature = temperature !== null && temperature !== undefined;