authoravatarclover caruso<git@paperclover.net>2026-10-20 14:18:12-07:00
committeravatarclover caruso<git@paperclover.net>2026-10-21 02:52:29-07:00
logd5255060f16bc0ddac53d35a07477df8c5d131e3
treea60ede2ad4461a893a8b92c6204a984e320925b5
parentc498049f587516c013f249c7da4903c20cc40045
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU

Keep VM inventory usable on narrow screens

Give VM names a readable minimum width, collapse the global sidebar on narrow VM pages, and retain a direct home link. Keep the full table horizontally scrollable. Assisted-by: gpt-6-astra

2 files changed, 11 insertions(+), 7 deletions(-)

dashboard/web/pages/VMs.css+9-6
......@@ -14,7 +14,7 @@
1414.vms-list tbody.vm :is(tr.bottom > td, td.actions) { box-shadow: inset 0 -1px var(--grid); }
1515.vms-list td:focus-visible { outline-offset: -2px; }
1616
17.vms-list td.title { max-width: 0; }
17.vms-list td.title { min-width: 220px; max-width: 0; }
1818.vms-list td.title button {
1919 display: flex;
2020 align-items: baseline;
......@@ -30,7 +30,7 @@
3030 cursor: pointer;
3131}
3232.vms-list td.title button:focus-visible { outline-offset: 2px; }
33.vm-name { font-weight: 600; }
33.vm-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
3434.vms-list tbody.off .vm-name { color: var(--text-2); }
3535.vms-list .for { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
3636.vms-list td.specs { max-width: 0; }
......@@ -132,11 +132,14 @@
132132.vm-active .list-body.flush { margin: 0; padding: 0; overflow: hidden; }
133133.vm-active .list-body.flush > .vm-workspace { margin: 0; flex: 1; min-height: 0; }
134134.vm-workspace { display: flex; flex-direction: column; }
135.vm-home { display: none; }
135.vms .vm-home { display: none; }
136136@media (max-width: 640px) {
137 .shell:has(.vm-active) { grid-template-columns: minmax(0, 1fr); }
138 .shell:has(.vm-active) > .sidebar { display: none; }
139 .vm-home { display: inline-flex; }
137 .shell:has(.vms) { grid-template-columns: minmax(0, 1fr); }
138 .shell:has(.vms) > .sidebar { display: none; }
139 .vms .vm-home { display: inline-flex; }
140 .vm-library-item { flex-wrap: wrap; }
141 .vm-library-item .spacer { display: none; }
142 .vms-list .for { display: none; }
140143}
141144.vm-console-screen[hidden] { display: none; }
142145.vm-workspace .vm-detail { padding: 20px var(--gutter); overflow: auto; flex: 1; min-height: 0; }
dashboard/web/pages/VMs.tsx+2-1
......@@ -1,5 +1,5 @@
11import { VMMenu } from "../components/VMMenu.tsx";
2import { useSearchParams } from "@solidjs/router";
2import { A, useSearchParams } from "@solidjs/router";
33import CircuitBoard from "lucide-solid/icons/circuit-board";
44import HardDrive from "lucide-solid/icons/hard-drive";
55import Network from "lucide-solid/icons/network";
......@@ -599,6 +599,7 @@ export function VMs() {
599599 const newButton = (label: string) => <button class="button primary" disabled={!loaded()} onClick={newVm}><Plus size={14} />{label}</button>;
600600 return <ListPage id="vms" class={`vms ${params.vm ? "vm-active" : ""}`} flush head={
601601 <Show when={!params.vm}><div class="page-head">
602 <A class="button small vm-home" href="/">Snow Globe</A>
602603 <h1>virtual machines</h1>
603604 <Show when={loaded()}>{(value) => <span class="muted vm-count">{plural(value().domains.length, "vm")}</span>}</Show>
604605 <span class="spacer" />