Skip to content

Add configurable preview aspect ratios#232

Merged
stevebauman merged 5 commits into
masterfrom
feature/custom-aspect-ratios
Jul 11, 2026
Merged

Add configurable preview aspect ratios#232
stevebauman merged 5 commits into
masterfrom
feature/custom-aspect-ratios

Conversation

@stevebauman

Copy link
Copy Markdown
Owner

Summary

Adds a Preferences setting for managing the aspect ratio presets shown in the canvas preview controls.

Users can now:

  • Add their own aspect ratios, such as 21:9 or 5:4
  • Remove any preset, including the original defaults
  • Reset the ratio list back to 16:9, 4:3, and 1:1

When no aspect ratios are configured, the aspect ratio bar is hidden entirely and the preview remains in freeform sizing mode.

Testing

  • npm test -- tests/composables/useAspectRatios.test.js
  • npm test -- tests/components/ControlAspectRatios.test.js
  • npm test

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploying showcode with  Cloudflare Pages  Cloudflare Pages

Latest commit: e14af78
Status: ✅  Deploy successful!
Preview URL: https://ed231a63.showcode.pages.dev
Branch Preview URL: https://feature-custom-aspect-ratios.showcode.pages.dev

View logs

@stevebauman stevebauman merged commit 3c109a9 into master Jul 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant