diff --git a/dashboard/web/pages/VMs.css b/dashboard/web/pages/VMs.css index e073c00e6c44aa69de9dd15661a30bf420749b97..2679538a76b355634c064688bcb87185e802179a 100644 --- a/dashboard/web/pages/VMs.css +++ b/dashboard/web/pages/VMs.css @@ -14,7 +14,7 @@ .vms-list tbody.vm :is(tr.bottom > td, td.actions) { box-shadow: inset 0 -1px var(--grid); } .vms-list td:focus-visible { outline-offset: -2px; } -.vms-list td.title { max-width: 0; } +.vms-list td.title { min-width: 220px; max-width: 0; } .vms-list td.title button { display: flex; align-items: baseline; @@ -30,7 +30,7 @@ cursor: pointer; } .vms-list td.title button:focus-visible { outline-offset: 2px; } -.vm-name { font-weight: 600; } +.vm-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; } .vms-list tbody.off .vm-name { color: var(--text-2); } .vms-list .for { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); } .vms-list td.specs { max-width: 0; } @@ -132,11 +132,14 @@ .vm-active .list-body.flush { margin: 0; padding: 0; overflow: hidden; } .vm-active .list-body.flush > .vm-workspace { margin: 0; flex: 1; min-height: 0; } .vm-workspace { display: flex; flex-direction: column; } -.vm-home { display: none; } +.vms .vm-home { display: none; } @media (max-width: 640px) { - .shell:has(.vm-active) { grid-template-columns: minmax(0, 1fr); } - .shell:has(.vm-active) > .sidebar { display: none; } - .vm-home { display: inline-flex; } + .shell:has(.vms) { grid-template-columns: minmax(0, 1fr); } + .shell:has(.vms) > .sidebar { display: none; } + .vms .vm-home { display: inline-flex; } + .vm-library-item { flex-wrap: wrap; } + .vm-library-item .spacer { display: none; } + .vms-list .for { display: none; } } .vm-console-screen[hidden] { display: none; } .vm-workspace .vm-detail { padding: 20px var(--gutter); overflow: auto; flex: 1; min-height: 0; } diff --git a/dashboard/web/pages/VMs.tsx b/dashboard/web/pages/VMs.tsx index 96f573443acd3e6b078e3b803142287d6c6a09b9..7714f8b8e0fbcd4be58b73b2adde4eef342736c0 100644 --- a/dashboard/web/pages/VMs.tsx +++ b/dashboard/web/pages/VMs.tsx @@ -1,5 +1,5 @@ import { VMMenu } from "../components/VMMenu.tsx"; -import { useSearchParams } from "@solidjs/router"; +import { A, useSearchParams } from "@solidjs/router"; import CircuitBoard from "lucide-solid/icons/circuit-board"; import HardDrive from "lucide-solid/icons/hard-drive"; import Network from "lucide-solid/icons/network"; @@ -599,6 +599,7 @@ export function VMs() { const newButton = (label: string) => ; return
+ Snow Globe

virtual machines

{(value) => {plural(value().domains.length, "vm")}}