Try: Fix regression with mover and block control sizes.#40037
Try: Fix regression with mover and block control sizes.#40037
Conversation
|
Size Change: +46 B (0%) Total Size: 1.22 MB
ℹ️ View Unchanged
|
Mamaduka
left a comment
There was a problem hiding this comment.
Thanks for the quick follow-up, @jasmussen.
It works as expected.
I agree that refactoring is the better option, but probably not a good idea to do it a week before WP 6.0 beta.
I noticed that the spacing is a little off when the block name is displayed in the toolbar vs. when it's not. But this might not be related.
How to reproduce:
Add two Reusable blocks to the post. Lock block removal for one and compare toolbars.
|
The block title shouldn't be hidden when the removal is disabled. It's a different bug, but I think this still leaves us with spacing inconsistency. |
Correct. I've half working RR locally, just need to make CSS adjustments to the |
|
Look at it this way: it'll feel great to remove an ocean of code once we get a chance to refactor it! Thanks for the reviews, I'll land this one when the checks pass. |
|







What?
Addresses feedback in #39920 (comment).
Changes there made the mover control and block locking icons too wide:
This PR, although slightly hacky, fixes it:
Why?
This is a quick bandaid. A better solution is to refactor the mover control to be a single toolbar group, so it can benefit from the very same simplified spacing metrics which were the cause of the regression. See also this codepen:
In the meantime, this might be a good bandaid. The code surrounding those controls is already a bit messy.
Testing Instructions
Test block toolbars, notably the mover control in a few case: