aboutsummaryrefslogtreecommitdiffstats
path: root/static/modules
diff options
context:
space:
mode:
Diffstat (limited to 'static/modules')
-rw-r--r--static/modules/vm.js7
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);
},
};