hyperhive/hive-ag3nt/assets
iris dfee0574a5 fix: screen fit-to-window actually scales the canvas (#133)
The fit toggle relied on canvas.fit { max-width/max-height: 100% }.
The canvas is a flex item, and a flex item's automatic minimum size
(min-width/min-height: auto → the replaced element's intrinsic size)
overrides max-*, so an oversized desktop never shrank — it just got
centred and clipped, looking like the toggle did nothing.

Replace the CSS approach with explicit JS sizing: relayoutCanvas()
computes a scale factor (min of width/height ratios, capped at 1 so
it never upscales) and sets canvas.style.width/height in px,
preserving aspect ratio. Recomputed on fit toggle, window resize,
and framebuffer-size (ServerInit). Pointer mapping is unaffected —
sendPointer already derives scale from getBoundingClientRect().
2026-05-21 18:45:13 +02:00
..
agent.css agent icon: render on dashboard + per-agent web UI 2026-05-21 15:36:58 +02:00
app.js terminal: show recv wait/max params + bash [bg] flag 2026-05-21 17:57:24 +02:00
index.html agent icon: render on dashboard + per-agent web UI 2026-05-21 15:36:58 +02:00
screen.html fix: screen fit-to-window actually scales the canvas (#133) 2026-05-21 18:45:13 +02:00
stats.html agent icon: render on dashboard + per-agent web UI 2026-05-21 15:36:58 +02:00
stats.js stats: per-bucket turns-by-model chart 2026-05-20 10:58:14 +02:00