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
|
andrewserong
left a comment
There was a problem hiding this comment.
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 👍 |
andrewserong
left a comment
There was a problem hiding this comment.
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
trunkthe 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