hide proc-grp notifs icon when <0
3clyp50 committed
Jan 20, 2026 at 13:15 UTC
9ed61e93dd422d3bca8ac5d0d4bec33f3b846f80
2 files changed
+5
-5
webui/components/messages/process-group/process-group.css
+4
@@ -272,6 +272,10 @@
272
font-weight: 600;
273
}
274
275
+.process-group-header .group-metrics .metric-notifications[hidden] {
276
+ display: none;
277
+}
278
+
279
.process-group-header .group-metrics .metric-notifications .material-symbols-outlined {
280
opacity: 0.85;
281
}
webui/js/messages.js
+1
-5
@@ -1170,8 +1170,8 @@ function createProcessGroup(id) {
1170
<span class="group-metrics">
1171
<span class="metric-time" title="Start time"><span class="material-symbols-outlined">schedule</span><span class="metric-value">--:--</span></span>
1172
<span class="metric-steps" title="Steps"><span class="material-symbols-outlined">footprint</span><span class="metric-value">0</span></span>
1173
+ <span class="metric-notifications" title="Warnings/Info/Hint" hidden><span class="material-symbols-outlined">priority_high</span><span class="metric-value">0</span></span>
1174
<span class="metric-duration" title="Duration"><span class="material-symbols-outlined">timer</span><span class="metric-value">0s</span></span>
1174
- <span class="metric-notifications" title="Warnings/Info/Hint" hidden><span class="material-symbols-outlined">notifications</span><span class="metric-value">0</span></span>
1175
</span>
1176
`;
1177
@@ -1819,11 +1819,7 @@ function updateProcessGroupHeader(group) {
1819
notificationsEl.hidden = false;
1820
notificationsEl.title = `Warnings: ${counts.warning}, Info: ${counts.info}, Hints: ${counts.hint}`;
1821
} else {
1822
- if (countEl) {
1823
- countEl.textContent = "0";
1824
- }
1822
notificationsEl.hidden = true;
1826
- notificationsEl.title = "Warnings/Info/Hint";
1823
}
1824
}
1825