mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Setting both width:100% and height:100% made CSS ignore aspect-ratio, stretching the drawing buffer non-uniformly into the tall container. Fixed by keeping only width:100% + max-height:100% so aspect-ratio:1/1 clamps the height and the element stays square. Draw functions now use canvas.offsetWidth for the square buffer size. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>