hyperhive/hive-ag3nt
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
..
assets fix: screen fit-to-window actually scales the canvas (#133) 2026-05-21 18:45:13 +02:00
prompts manager prompt: update get_loose_ends docs for agent param 2026-05-20 22:13:25 +02:00
src agent icon: add hyperhive.icon option + GET /icon endpoint 2026-05-21 01:06:34 +02:00
Cargo.toml feat: poll forge notifications in agent harness 2026-05-20 17:59:56 +02:00