Skip to content

fixes widgetOptions not being used when passed from props (widget con… - #5046

Merged
boutell merged 4 commits into
mainfrom
pro-8237
Aug 29, 2025
Merged

fixes widgetOptions not being used when passed from props (widget con…#5046
boutell merged 4 commits into
mainfrom
pro-8237

Conversation

@ValJed

@ValJed ValJed commented Aug 28, 2025

Copy link
Copy Markdown
Contributor

PRO-8237

Summary

Fix image cropper when coming from page and widget controls (not from widget editor), where area config wasn't taken into account (minSize, aspectRatio):

            '@apostrophecms/image': {
              aspectRatio: [ 2, 1 ],
              minSize: [ 1000, 500 ]
            }

Also fixes aspect ratio being stuck on free when configured from the area, it know takes the configured value:
image

What are the specific steps to test this change?

For example:

  1. Run the website and log in as an admin
  2. Open a piece manager modal and select several pieces
  3. Click the "Archive" button on the top left of the manager and confirm that it should proceed
  4. Check that all pieces have been archived properly

What kind of change does this PR introduce?

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

Make sure the PR fulfills these requirements:

  • It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves
  • The changelog is updated
  • Related documentation has been updated
  • Related tests have been updated

@linear

linear Bot commented Aug 28, 2025

Copy link
Copy Markdown

boutell
boutell previously approved these changes Aug 29, 2025
@boutell
boutell merged commit a2b5e95 into main Aug 29, 2025
6 checks passed
@boutell
boutell deleted the pro-8237 branch August 29, 2025 14:08
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.

3 participants