-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[6.7] Activate zoom out only on large viewport #66330
Conversation
I made a similar change to #66308, but somehow this PR doesn't seem to dynamically reset the zoom out mode when the viewport width changes: 1a1cbc43d7327a6f86035ff65f43334b.mp4Maybe it's because the zoom out mode implementation is different between |
Size Change: +17 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well for me. Thank you for following up 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is the change we want. I think this should be passed in via the inserter menu boolean, not added within the useZoomOut
hook.
I'm in no rush to merge if we want to explore the alternative. RC2 won't be cut until next Monday. Thanks Jerry 🙇 |
Based on #66341, I've updated this PR. I removed the viewport check from the useZoomOut hook and added it to the inserter menu instead. |
c969b3e
to
f75b5a3
Compare
c174750
to
f2b8385
Compare
I rebased the branch to fix the missing |
Flaky tests detected in f2b8385. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11511323340
|
@jeryj Can we get another review here please? 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I retested and Zoom Out does not activate on small viewports when switching to the Patterns tab.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great - thank you for the update @t-hamano!
This comment was marked as resolved.
This comment was marked as resolved.
f2b8385
to
981f386
Compare
Apply the same fix as #66308 to the
wp/6.7
branchWhat?
This PR resets the zoom out mode so that the inserter doesn't get narrower on smaller viewports.
Why?
I don't think the zoomed out mode is intended for use on small viewports.
How?
There is a difference in the implementation of the
useZoomOut
hook betweentrunk
and thewp/6.7
branch. Since we cannot backport #66308 directly, we need to manually apply the same change to thewp/6.7
branch.Testing Instructions
Screenshots or screencast