From 533f1bb9e353fa05ee6b01f46a03059c7b160e97 Mon Sep 17 00:00:00 2001 From: librelad Date: Thu, 28 May 2026 23:11:00 +0100 Subject: [PATCH] ux(system): drop the disk gauge sublabel, keep just the % The "LibrePortal X GB" sublabel under the disk percentage read as clutter; remove it. The % and the coloured LibrePortal portion of the ring stay. Co-Authored-By: Claude Opus 4.7 Signed-off-by: librelad --- .../libreportal/frontend/js/components/admin/admin-system.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/containers/libreportal/frontend/js/components/admin/admin-system.js b/containers/libreportal/frontend/js/components/admin/admin-system.js index 176f5d0..1b055c2 100644 --- a/containers/libreportal/frontend/js/components/admin/admin-system.js +++ b/containers/libreportal/frontend/js/components/admin/admin-system.js @@ -225,12 +225,11 @@ class AdminSystem { + ((this.d.storage && this.d.storage.total) || 0); const diskTotal = Number(rootDisk.total) || 0; const lpPct = diskTotal > 0 ? (lpBytes / diskTotal) * 100 : 0; - const diskSub = lpBytes > 0 ? `LibrePortal ${this.bytes(lpBytes)}` : (rootDisk.mount || '/'); return ` ${wrap('cpu', C.gauge(cpu.percent || 0, { label: 'CPU', sublabel: `${cpu.cores || '?'} cores` }))} ${wrap('mem', C.gauge(mem.percent || 0, { label: 'Memory', sublabel: `${this.bytes(mem.used)} / ${this.bytes(mem.total)}` }))} - ${wrap('disk', C.gauge(rootDisk.percent || 0, { label: 'Disk', sublabel: diskSub, segment: { value: lpPct, color: 'accent' } }))} + ${wrap('disk', C.gauge(rootDisk.percent || 0, { label: 'Disk', segment: { value: lpPct, color: 'accent' } }))} ${wrap('load1', C.gauge(load1, { label: 'Load', display: load1.toFixed(2), suffix: '', max: cores * 2, color: loadColor, sublabel: `1m · ${cpu.load5 ?? '–'}/${cpu.load15 ?? '–'}` }))}`; }