Improve swarm dashboard portrait layout

This commit is contained in:
Meta Vens 2026-05-25 01:22:57 +01:00
commit da6cd83ae1
2 changed files with 59 additions and 8 deletions

View file

@ -1137,22 +1137,48 @@ function renderHtml(snapshot) {
.inspector-pane {
left: 10px;
top: 10px;
right: 10px;
bottom: auto;
width: calc(45% - 16px);
height: calc(43% - 15px);
width: auto;
height: 34%;
padding-right: calc(clamp(190px, 22vw, 230px) + 24px);
grid-template-columns: minmax(230px, 0.9fr) minmax(180px, 0.76fr) minmax(230px, 1fr);
grid-template-rows: minmax(0, 1fr);
align-items: stretch;
}
.tree-pane {
left: 10px;
top: calc(43% + 5px);
top: calc(34% + 20px);
bottom: 10px;
width: calc(45% - 16px);
width: calc(44% - 16px);
}
.memory-pane {
left: calc(45% + 4px);
top: 10px;
left: calc(44% + 4px);
top: calc(34% + 20px);
right: 10px;
bottom: 10px;
}
.control-grid {
min-height: 0;
}
.inspector-hero {
align-self: start;
}
.agent-stats {
min-height: 0;
grid-template-columns: repeat(2, minmax(0, 1fr));
align-content: start;
gap: 7px;
}
.agent-stat {
padding: 7px;
}
.agent-bar {
height: 7px;
}
.inspector-lore {
display: none;
}
.turn-card { width: 72px; height: 96px; }
.status-panel {
position: fixed;
@ -1160,17 +1186,41 @@ function renderHtml(snapshot) {
right: 8px;
bottom: auto;
left: auto;
width: 230px;
width: clamp(190px, 22vw, 230px);
height: 88px;
}
}
@media (max-width: 760px) {
.pane { padding: 12px; }
.inspector-lore { display: none; }
.status-panel { width: 210px; }
}
@media (max-width: 850px) and (orientation: portrait) {
.inspector-pane {
height: 38%;
padding-right: 12px;
grid-template-columns: minmax(210px, 1fr) minmax(170px, 0.8fr);
}
.agent-stats {
grid-column: 1 / -1;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tree-pane {
top: calc(38% + 20px);
}
.memory-pane {
top: calc(38% + 20px);
}
.status-panel {
top: auto;
right: 12px;
bottom: 12px;
width: 180px;
height: 84px;
}
}
@media (max-width: 980px) and (orientation: landscape) {
.inspector-pane { width: 25%; }
.tree-pane { left: calc(25% + 18px); width: calc(34% - 18px); }

View file

@ -335,3 +335,4 @@
{"ts":"2026-05-24T23:06:38Z","type":"implementation","status":"ok","note":"Rebuilt the local swarm dashboard into a CTB-owned four-column SPA: Face inspector, typed Face-state tree, selected memory/detail viewer, and command/watchdog column. The page now reads registered Face .cc state through the typed loader for display-only memory browsing while cadence/manual-turn controls remain the only writers."}
{"ts":"2026-05-24T23:19:32Z","type":"implementation","status":"ok","note":"Adjusted the local swarm dashboard layout from iPad screenshot evidence: watchdog HUD is now a sticky module in the CTB rail, controls moved to the top of the Face inspector, agent facts became game-style stat bars, and the Face state tree gets the freed column width with readable wrapping plus selected-path expansion."}
{"ts":"2026-05-25T00:18:11Z","type":"implementation","status":"ok","note":"Rebuilt the local swarm dashboard into an iPad Safari kiosk renderer: fixed absolute panel geometry replaces grid ownership, a canvas chrome layer paints the HUD surface, JS-owned viewport height avoids 100vh Safari drift, and CTB/HUD/inspector/tree/detail panels stay in viewport under browser verification."}
{"ts":"2026-05-25T00:22:21Z","type":"implementation","status":"ok","note":"Adjusted the kiosk dashboard portrait composition: CTB remains on the long side, inspector/control becomes a full-width top band, tree and detail occupy the lower work area, and the watchdog HUD now has reserved top-right air instead of overlapping Face stat bars."}