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 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
librelad 2026-05-28 23:21:36 +01:00
parent e38f881aa5
commit 4f46be9b16
2 changed files with 7 additions and 6 deletions

View File

@ -415,8 +415,9 @@ table.sys-apps tr:hover td { background: rgba(var(--text-rgb), 0.03); }
} }
.sys-metric-actions { .sys-metric-actions {
display: flex; display: flex;
align-items: center; flex-direction: column;
gap: 14px; align-items: flex-end;
gap: 10px;
margin-top: 6px; margin-top: 6px;
} }
.sys-detail-range { display: inline-flex; gap: 4px; padding: 4px; background: rgba(var(--text-rgb), 0.06); border-radius: 999px; } .sys-detail-range { display: inline-flex; gap: 4px; padding: 4px; background: rgba(var(--text-rgb), 0.06); border-radius: 999px; }

View File

@ -175,14 +175,14 @@ class SystemMetricPage {
<p class="sys-metric-sub">${fmt.escape(this._subline())}</p> <p class="sys-metric-sub">${fmt.escape(this._subline())}</p>
</div> </div>
<div class="sys-metric-actions"> <div class="sys-metric-actions">
${this.metricKey === 'disk' ? `<button type="button" class="sys-storage-cta" data-go-storage title="Open the full storage breakdown">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.21 15.89A10 10 0 1 1 8 2.83"/><path d="M22 12A10 10 0 0 0 12 2v10z"/></svg>
View storage breakdown
</button>` : ''}
<div class="sys-detail-range" role="tablist" aria-label="Time range"> <div class="sys-detail-range" role="tablist" aria-label="Time range">
${[[60,'1h'],[360,'6h'],[1440,'24h'],[10080,'7d']] ${[[60,'1h'],[360,'6h'],[1440,'24h'],[10080,'7d']]
.map(([m,l]) => `<button type="button" role="tab" class="sys-detail-range-btn ${this.rangeMin===m?'active':''}" data-rng="${m}">${l}</button>`).join('')} .map(([m,l]) => `<button type="button" role="tab" class="sys-detail-range-btn ${this.rangeMin===m?'active':''}" data-rng="${m}">${l}</button>`).join('')}
</div> </div>
${this.metricKey === 'disk' ? `<button type="button" class="sys-storage-cta" data-go-storage title="Open the full storage breakdown">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.21 15.89A10 10 0 1 1 8 2.83"/><path d="M22 12A10 10 0 0 0 12 2v10z"/></svg>
View storage breakdown
</button>` : ''}
</div> </div>
</div> </div>
<section class="sys-detail-stats"> <section class="sys-detail-stats">