From 5ee35037e5ecc2514fd6f4179e7c3aa132bef740 Mon Sep 17 00:00:00 2001 From: Ilker Manap Date: Tue, 27 Oct 2026 19:20:40 +0100 Subject: [PATCH] ui: machines table scrolls horizontally on narrow screens; shorter model/serial cells Co-Authored-By: Claude Fable 5.1 --- cmd/rollcall/web/app.js | 6 +++--- cmd/rollcall/web/style.css | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/rollcall/web/app.js b/cmd/rollcall/web/app.js index f959609..e1e1fc4 100644 --- a/cmd/rollcall/web/app.js +++ b/cmd/rollcall/web/app.js @@ -190,7 +190,7 @@ function pageMachines() { ${locChips} ${S.sel.size ? bulkBar() : ''} ${S.machines.length ? '' : '
No machines yet. PXE-boot an unknown server: it commissions itself and appears here.
'} - ${th('name', 'Machine')}${th('state', 'State')}${th('loc', 'Location')}${th('role', 'Profile / OS')}${th('model', 'Model')}${th('cpu', 'Hardware')}${th('seen', 'Seen')} +
TagsBMC
${th('name', 'Machine')}${th('state', 'State')}${th('loc', 'Location')}${th('role', 'Profile / OS')}${th('model', 'Model')}${th('cpu', 'Hardware')}${th('seen', 'Seen')}${slice.map(m => ` @@ -198,10 +198,10 @@ function pageMachines() { - + - `).join('')}
TagsBMC
${esc(nameOf(m))}
${esc(m.mgmt_ip || m.id)}
${m.location && (m.location.rack || m.location.room || m.location.building) ? `${esc([m.location.building, m.location.room].filter(Boolean).join(' / '))}
${esc(m.location.rack || '')}${m.location.unit ? ` U${m.location.unit}` : ''}` : '—'}
${m.profile ? esc(m.profile) : m.os ? `${esc(m.os)}
${esc(m.os_version || '')}` : '—'}
${tagPills(m)}${esc(((m.manufacturer || '') + ' ' + (m.product || '')).trim().slice(0, 34))}
${esc(m.serial || '')}
${esc(((m.manufacturer || '') + ' ' + (m.product || '')).trim().slice(0, 26))}
${esc((m.serial || '').slice(0, 20))}
${hwSummary(m)} ${esc(m.bmc && m.bmc.address || '—')}${ago(m.last_seen)}
+ ${ago(m.last_seen)}`).join('')}
${pages > 1 ? ` page ${S.page + 1} / ${pages} ` : ''} per page
`; } diff --git a/cmd/rollcall/web/style.css b/cmd/rollcall/web/style.css index a7a00e2..7235dc6 100644 --- a/cmd/rollcall/web/style.css +++ b/cmd/rollcall/web/style.css @@ -57,6 +57,8 @@ input[type=search] { min-width: 260px; } .menu .list button:hover { background: var(--hover); } .menu .list button.danger { color: var(--danger); } .menu .list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; } /* tables */ +.tw { overflow-x: auto; border-radius: 8px; } +.tw table { min-width: 1100px; } table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; } th { font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; background: var(--panel); z-index: 1; }