-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Reduce clearance around the Frame in the site editor #57023
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
Conversation
|
Size Change: -9 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in b4c6ad2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7246704927
|
packages/base-styles/_variables.scss
Outdated
| $modal-width-large: 840px; | ||
| $spinner-size: 16px; | ||
| $canvas-padding: $grid-unit-30; | ||
| $canvas-padding: $grid-unit-10; |
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.
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.
+1 to @richtabor suggestion
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.
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.
+1 to Rich's suggestion :)
Nice attention to detail, thanks for the PR, Jay!
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 updated to that suggestion 👍
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.
Good step forward. Before:
After:
Happy to green chek this one. However, this is not lining up with the site logo:
The site logo is using a CSS transform to scale a 64px tall container to 0.5, making the site icon effectively 32x32 in its resting state. I wonder if we should tweak those maths or not, I think you separately suggested a 64px header may be a good endstate to reach for our post and site editors, so maybe we keep that.
The main issue here is that we're actually cropping that 64x64 site logo container into 60x60 to match the existing post/site editor header heights. This is part of what's causing things to not line up. And we could either change that clearance you just updated to 14px, or we could change the transform to an uneven scale(0.4375) to make the site logo be 28x28px.
In either case, that would make things line up. So I guess the question is, we need to find another 4px. Where do we find them? Do we update metrics to account for 60px top toolbars? Or do we update top toolbars to be 64px?
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.
Since this PR addresses an issue in data views, and because the site icon doesn't align correctly on trunk either, I would prefer to tackle that problem in a follow up.
As you noted there are potentially a few things to try there, and we also need to factor in alignment between site icon + site title + search button, plus site icon + menu items below.






What?
Reduce clearance around the Frame in the site editor from 24px to 8px.
Why?
On screens like data views the current clearance feels unnecessarily large, particularly in the list layout.