You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 329e237
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ai-edition): make preview canvas actually contain-fit the selected aspect ratio
The aspect-ratio setting was already wired to the document, but the
previewFrame's CSS (`aspect-ratio` + `width: 100%` + `max-height: 100%`)
only clamps height when the box overflows -- it never shrinks width
back down to match, so portrait ratios like 9:16 silently kept the
frame full-width instead of resizing. Compute the contain-fit box in
JS instead, measuring the frame's parent and applying explicit pixel
width/height.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments