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 @@...@@ -14,7 +14,7 @@
14.vms-list tbody.vm :is(tr.bottom > td, td.actions) { box-shadow: inset 0 -1px var(--grid); }14.vms-list tbody.vm :is(tr.bottom > td, td.actions) { box-shadow: inset 0 -1px var(--grid); }
15.vms-list td:focus-visible { outline-offset: -2px; }15.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; }
18.vms-list td.title button {18.vms-list td.title button {
19 display: flex;19 display: flex;
20 align-items: baseline;20 align-items: baseline;
...@@ -30,7 +30,7 @@...@@ -30,7 +30,7 @@
30 cursor: pointer;30 cursor: pointer;
31}31}
32.vms-list td.title button:focus-visible { outline-offset: 2px; }32.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; }
34.vms-list tbody.off .vm-name { color: var(--text-2); }34.vms-list tbody.off .vm-name { color: var(--text-2); }
35.vms-list .for { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }35.vms-list .for { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
36.vms-list td.specs { max-width: 0; }36.vms-list td.specs { max-width: 0; }
...@@ -132,11 +132,14 @@...@@ -132,11 +132,14 @@
132.vm-active .list-body.flush { margin: 0; padding: 0; overflow: hidden; }132.vm-active .list-body.flush { margin: 0; padding: 0; overflow: hidden; }
133.vm-active .list-body.flush > .vm-workspace { margin: 0; flex: 1; min-height: 0; }133.vm-active .list-body.flush > .vm-workspace { margin: 0; flex: 1; min-height: 0; }
134.vm-workspace { display: flex; flex-direction: column; }134.vm-workspace { display: flex; flex-direction: column; }
135.vm-home { display: none; }135.vms .vm-home { display: none; }
136@media (max-width: 640px) {136@media (max-width: 640px) {
137 .shell:has(.vm-active) { grid-template-columns: minmax(0, 1fr); }137 .shell:has(.vms) { grid-template-columns: minmax(0, 1fr); }
138 .shell:has(.vm-active) > .sidebar { display: none; }138 .shell:has(.vms) > .sidebar { display: none; }
139 .vm-home { display: inline-flex; }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; }
140}143}
141.vm-console-screen[hidden] { display: none; }144.vm-console-screen[hidden] { display: none; }
142.vm-workspace .vm-detail { padding: 20px var(--gutter); overflow: auto; flex: 1; min-height: 0; }145.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 @@...@@ -1,5 +1,5 @@
1import { VMMenu } from "../components/VMMenu.tsx";1import { VMMenu } from "../components/VMMenu.tsx";
2import { useSearchParams } from "@solidjs/router";2import { A, useSearchParams } from "@solidjs/router";
3import CircuitBoard from "lucide-solid/icons/circuit-board";3import CircuitBoard from "lucide-solid/icons/circuit-board";
4import HardDrive from "lucide-solid/icons/hard-drive";4import HardDrive from "lucide-solid/icons/hard-drive";
5import Network from "lucide-solid/icons/network";5import Network from "lucide-solid/icons/network";
...@@ -599,6 +599,7 @@ export function VMs() {...@@ -599,6 +599,7 @@ export function VMs() {
599 const newButton = (label: string) => <button class="button primary" disabled={!loaded()} onClick={newVm}><Plus size={14} />{label}</button>;599 const newButton = (label: string) => <button class="button primary" disabled={!loaded()} onClick={newVm}><Plus size={14} />{label}</button>;
600 return <ListPage id="vms" class={`vms ${params.vm ? "vm-active" : ""}`} flush head={600 return <ListPage id="vms" class={`vms ${params.vm ? "vm-active" : ""}`} flush head={
601 <Show when={!params.vm}><div class="page-head">601 <Show when={!params.vm}><div class="page-head">
602 <A class="button small vm-home" href="/">Snow Globe</A>
602 <h1>virtual machines</h1>603 <h1>virtual machines</h1>
603 <Show when={loaded()}>{(value) => <span class="muted vm-count">{plural(value().domains.length, "vm")}</span>}</Show>604 <Show when={loaded()}>{(value) => <span class="muted vm-count">{plural(value().domains.length, "vm")}</span>}</Show>
604 <span class="spacer" />605 <span class="spacer" />