Media Editor: add zoom control and hide fine rotation on narrow viewports#77585
Media Editor: add zoom control and hide fine rotation on narrow viewports#77585
Conversation
There was a problem hiding this comment.
Pull request overview
Adds additional cropper usability controls to the experimental Media Editor modal, improving edit precision (zoom) while keeping the bottom toolbar usable on narrow viewports.
Changes:
- Adds a Zoom
RangeControl(1×–10×) to the Crop sidebar panel with a percentage tooltip. - Hides the fine-rotation slider in the bottom toolbar at viewports
<= 480pxto reduce cramped controls.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/media-editor/src/components/media-editor-toolbar/style.scss | Hides the rotation slider at/under the mobile breakpoint to keep the toolbar usable on narrow viewports. |
| packages/media-editor/src/components/media-editor-crop-panel/index.tsx | Adds a zoom slider wired to the shared cropper controller and displays tooltip values as percentages. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Size Change: +136 B (0%) Total Size: 7.76 MB 📦 View Changed
ℹ️ View Unchanged
|
andrewserong
left a comment
There was a problem hiding this comment.
Looking good!
Not for now, but once we've built out the cropper interface to the point where we think we've got everything we need, it'd be good to review the order of which controls we have available in the sidebar as to which should come first, etc. I suspect it'll become clearer once we've got some more stuff in there.
But for now, this LGTM 🚀
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in dd35d80. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24815334358
|
Follow-up to #77540.
Part of:
Summary
RangeControlto the Crop sidebar tab (1×–10×, step 0.1, tooltip as a percentage). Reset still handled by the toolbar's Reset button.Thanks to @andrewserong for the suggestions
Test plan
100%–1000%.Kapture.2026-04-23.at.13.33.54.mp4