diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-13 21:01:51 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-13 21:01:57 +0100 |
| commit | c782f36b86d3c2aa357a7292f17bdad3322e46ad (patch) | |
| tree | 437771e78eedb3deaef85087f762c1ea51a8fa67 /static/modules | |
| parent | 896163d7961d86b4e023a50ce4f6e19a30006a3f (diff) | |
| download | deck-it-c782f36b86d3c2aa357a7292f17bdad3322e46ad.tar.gz deck-it-c782f36b86d3c2aa357a7292f17bdad3322e46ad.zip | |
feat(vm): one column, a running VM as tall as the tab
A single running VM is the whole tab, without the card look; with more
they stack as tab-tall cards and the tab scrolls. Shut-off VMs are
short cards below, without screen or trends.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/modules')
| -rw-r--r-- | static/modules/vm.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/static/modules/vm.js b/static/modules/vm.js index df68a07..b6c1a92 100644 --- a/static/modules/vm.js +++ b/static/modules/vm.js @@ -18,8 +18,10 @@ import { offline } from "../offline.js"; import { hold } from "../hold.js"; import { area, line, push } from "../dashboard.js"; -// One tile per VM: its screen, a big power button (tap for the gentle -// action, hold to force it off), SSH, and CPU/RAM trends. A tap on the tile +// One tile per VM, in one column (deck.css: a running one as tall as the +// tab, the whole tab when it is the only one): its screen, a big power +// button (tap for the gentle action, hold to force it off), SSH, and +// CPU/RAM trends. A tap on the tile // opens a sheet with every action and the snapshot timeline. Buttons are // Nerd Font glyphs; destructive ones fire only on a press and hold. const G = { @@ -300,5 +302,6 @@ export default { if (!seen.has(name)) { v.tile.remove(); v.sheet.remove(); views.delete(name); } } grid.classList.toggle("empty", !st.vms.length); + grid.classList.toggle("solo", st.vms.filter((vm) => vm.state === "running").length === 1); }, }; |
