-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Grid interactivity: Show grid visualizer when block inspector is closed #61429
Grid interactivity: Show grid visualizer when block inspector is closed #61429
Conversation
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. |
Size Change: +15 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
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.
Nice simple fix 👍
This is mostly testing nicely for me, with one exception, which is when distraction free mode is activated:
On trunk, in distraction free mode, the visualiser is never displayed because the inspector controls are closed. With this PR applied, if you mouse over the top of the window, the toolbar becomes visible, and in this case, the visualiser is displayed in the wrong position:
2024-05-08.10.49.36.mp4
Would it be worth either a) checking for distraction free mode and if it's switched on, then hide the visualizer (I think that's probably what I'd expect), or b) see if it's possible to fix the positioning?
Otherwise this was testing well for me in the usual expected situations:
2024-05-08.10.46.21.mp4
That's a great idea, done 👍 |
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.
Thanks for the update, that's testing well for me now, with the visualizer hidden when distraction free mode is switched on 👍
LGTM! 🚀
cd4ce81
to
9c11c1d
Compare
What?
Small fix that I've split out of #59490.
Why?
In
trunk
the grid visualiser will go away when you close the block inspector. That's not right!How?
Render the visualiser in the layout's
toolbarControls
, notinspectorControls
.Testing Instructions
Screenshots or screencast