From 4f46be9b16395a01e0070ca812f4c07168cb8237 Mon Sep 17 00:00:00 2001 From: librelad Date: Thu, 28 May 2026 23:21:36 +0100 Subject: [PATCH] ux(system): stack the storage-breakdown button under the range selector Move the Disk page's "View storage breakdown" button beneath the time-range picker (actions stack in a column, right-aligned) instead of beside it. Co-Authored-By: Claude Opus 4.7 Signed-off-by: librelad --- containers/libreportal/frontend/css/admin.css | 5 +++-- .../frontend/js/components/admin/system-metric-page.js | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/containers/libreportal/frontend/css/admin.css b/containers/libreportal/frontend/css/admin.css index 5c60964..bc2f70f 100644 --- a/containers/libreportal/frontend/css/admin.css +++ b/containers/libreportal/frontend/css/admin.css @@ -415,8 +415,9 @@ table.sys-apps tr:hover td { background: rgba(var(--text-rgb), 0.03); } } .sys-metric-actions { display: flex; - align-items: center; - gap: 14px; + flex-direction: column; + align-items: flex-end; + gap: 10px; margin-top: 6px; } .sys-detail-range { display: inline-flex; gap: 4px; padding: 4px; background: rgba(var(--text-rgb), 0.06); border-radius: 999px; } diff --git a/containers/libreportal/frontend/js/components/admin/system-metric-page.js b/containers/libreportal/frontend/js/components/admin/system-metric-page.js index b75ffde..4da23d0 100644 --- a/containers/libreportal/frontend/js/components/admin/system-metric-page.js +++ b/containers/libreportal/frontend/js/components/admin/system-metric-page.js @@ -175,14 +175,14 @@ class SystemMetricPage {

${fmt.escape(this._subline())}

- ${this.metricKey === 'disk' ? `` : ''}
${[[60,'1h'],[360,'6h'],[1440,'24h'],[10080,'7d']] .map(([m,l]) => ``).join('')}
+ ${this.metricKey === 'disk' ? `` : ''}