-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix zoom reflow by replacing border with padding #66012
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. |
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.
This is a cool fix.
Still seeing a weird animation in the post editor but this is way better in the site editor.
Size Change: -2 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
Flaky tests detected in e73856b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11272195985
|
Co-authored-by: richtabor <[email protected]> Co-authored-by: youknowriad <[email protected]> Co-authored-by: ndiego <[email protected]> Co-authored-by: getdave <[email protected]> Co-authored-by: talldan <[email protected]>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 126acf2 |
@@ -19,9 +19,7 @@ | |||
|
|||
background-color: $gray-300; | |||
|
|||
// Firefox and Safari don't render margin-bottom here and margin-bottom is needed for Chrome | |||
// layout, so we use border matching the background instead of margins. | |||
border: calc(#{$frame-size} / #{$scale}) solid $gray-300; |
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.
When this border is removed, the border: 0
needs to be removed above L6.
Co-authored-by: richtabor <[email protected]> Co-authored-by: youknowriad <[email protected]> Co-authored-by: ndiego <[email protected]> Co-authored-by: getdave <[email protected]> Co-authored-by: talldan <[email protected]>
Co-authored-by: richtabor <[email protected]> Co-authored-by: youknowriad <[email protected]> Co-authored-by: ndiego <[email protected]> Co-authored-by: getdave <[email protected]> Co-authored-by: talldan <[email protected]>
What?
Fixes #65757 by removing the applied border and applying padding instead.
Screenshots or screencast
Before
As seen in FireFox:
CleanShot.2024-10-10.at.12.22.13.mp4
After
CleanShot.2024-10-10.at.12.21.27.mp4