Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds the existing crop aspect-ratio selector to the mobile/narrow media editor footer toolbar by extending the flat transform controls to optionally render an aspect-ratio dropdown, while keeping the wide/sidebar “Crop” panel behavior unchanged.
Changes:
- Passes crop aspect-ratio state/handlers into the footer
MediaEditorTransformControlsfor narrow layouts. - Extends
MediaEditorTransformControlsto optionally render an aspect-ratioDropdownMenu(flat toolbar only; omitted whenwithLabelsis used). - Adds unit tests covering presence/absence and selection behavior of the new dropdown.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/media-editor/src/components/media-editor/index.tsx | Wires narrow/footer transform controls to existing aspect-ratio state from useCropOptions. |
| packages/media-editor/src/components/media-editor-transform-controls/index.tsx | Adds optional aspect-ratio dropdown rendering in the flat toolbar (not in labelled/panel layout). |
| packages/media-editor/src/components/media-editor-transform-controls/test/index.tsx | Adds tests for the dropdown rendering and change callback behavior. |
ramonjd
force-pushed
the
update/apply-media-tab-designs
branch
3 times, most recently
from
June 4, 2026 07:28
3467aa2 to
be335b4
Compare
ramonjd
force-pushed
the
update/media-editor-aspect-ratio-mobile-toolbar
branch
from
June 4, 2026 07:36
de270d5 to
2f882c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Follow up to #78896
Adds the aspect ratio control to the media editor mobile toolbar as an icon dropdown.
Kapture.2026-06-04.at.14.21.28.mp4
Why?
The mobile media editor toolbar should expose aspect ratio changes alongside the existing rotate and flip controls.
How?
Testing Instructions