Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
fix(dino): size by clientWidth, not getBoundingClientRect (zoom-scaled)
enes3c38178c52dc
diff --git a/src/renderer/nodes/dino/dino-game.ts b/src/renderer/nodes/dino/dino-game.tsindex 8bc3a9acb..e96f9a8a7 100644--- a/src/renderer/nodes/dino/dino-game.ts+++ b/src/renderer/nodes/dino/dino-game.ts@@ -88,9 +88,11 @@ export function createDinoGame(let H = 200let groundY = 0function layout() {- const rect = host.getBoundingClientRect()- W = Math.max(240, Math.round(rect.width))- H = Math.max(120, Math.round(rect.height))+ // clientWidth/Height, NOT getBoundingClientRect: canvas zoom is a CSS transform, so the+ // rect is the zoom-scaled size — a node mounted while zoomed out would lay out shrunken+ // (and ResizeObserver never fires on transform changes to correct it).+ W = Math.max(240, host.clientWidth)+ H = Math.max(120, host.clientHeight)groundY = H - 26const dpr = window.devicePixelRatio || 1canvas.width = Math.round(W * dpr)