ui: array card — 2 columns at ≤1024px, 3+ at full width

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gmer4Lfe
2026-05-31 22:35:06 -04:00
co-authored by Claude Sonnet 4.6
parent 212b61ce15
commit a8c5b2af29
+1 -1
View File
@@ -1240,7 +1240,7 @@ function vvPollMonitor() {
${arrIoHtml}
</span>`;
const numCols = Math.max(3, Math.ceil(arrayDisks.length / 6));
const numCols = window.innerWidth <= 1024 ? 2 : Math.max(3, Math.ceil(arrayDisks.length / 6));
const perCol = Math.ceil(arrayDisks.length / numCols);
const cols = [];
for (let i = 0; i < numCols; i++) cols.push(arrayDisks.slice(i * perCol, (i + 1) * perCol));