diff --git a/internal/gateway/ui/index.html b/internal/gateway/ui/index.html index 52b6f8d..c0cc5ac 100644 --- a/internal/gateway/ui/index.html +++ b/internal/gateway/ui/index.html @@ -979,14 +979,11 @@ function drawStatusChart(rows) { ctx.fill(); a0 += sweep; }); - // center label = total - ctx.fillStyle = 'var(--fg)'; - ctx.font = '700 16px ui-monospace,Menlo,Consolas,monospace'; - ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; - ctx.fillText(fmtN(total), cx, cy - 7); - ctx.fillStyle = 'var(--muted)'; - ctx.font = '10px ui-monospace,Menlo,Consolas,monospace'; - ctx.fillText(t('thReqs'), cx, cy + 9); + // carve a clean center hole (donut) instead of a solid pie with a number + ctx.beginPath(); + ctx.arc(cx, cy, Math.max(r * 0.45, 1), 0, Math.PI * 2); + ctx.fillStyle = 'var(--card)'; + ctx.fill(); } function paintKeyTable(rows, keyNames) { const el = $('#tb-key'); if (!el) return;