Skip to content
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

Add a few small fixes. #90

Merged
merged 1 commit into from
Jun 9, 2020
Merged

Add a few small fixes. #90

merged 1 commit into from
Jun 9, 2020

Conversation

jasmussen
Copy link
Member

Extra vertical spacing is reported in Varia themes, that use this block a lot:

Automattic/themes#1798

This is because in the editor, every single block, including block containers, has an intrinsic top and bottom margin.

This unsets that margin for the layout grid, making sure editor and frontend look the same:

Screenshot 2020-05-07 at 14 55 59

Screenshot 2020-05-07 at 14 56 02

It has a side-effect — this doesn't look great:

Screenshot 2020-05-07 at 14 56 08

However, it's still accurate! So in that vein I'm tempted to keep that as is. We can make rules to space this out, but I lean towards not doing that. If you really want to insert multiple layout grids after each other, it feels correct to show that they will snug up against each other.

Finally, it fixes an issue where on some themes, the end-gutter option wouldn't work. Pictured below, end gutters not working:

layout grid

It works in this PR, rest assured.

I would not call a release of this urgent — fine to bundle it up with other patches that may need to be made.

@jasmussen jasmussen force-pushed the update/layout-grid branch from 4034262 to d04d057 Compare June 9, 2020 09:33
@jasmussen
Copy link
Member Author

Rebased and tested again. This branch:

Screenshot 2020-06-09 at 11 36 15

Master:

Screenshot 2020-06-09 at 11 36 36

So yes, this is still necessary, a good visual consistency improvement.

@johngodley
Copy link
Member

This works as described, merging.

@johngodley johngodley merged commit 6f92ce4 into master Jun 9, 2020
@johngodley johngodley deleted the update/layout-grid branch June 9, 2020 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants