-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 cover width regression. #25103
Fix cover width regression. #25103
Conversation
Size Change: -28 B (0%) Total Size: 1.2 MB
ℹ️ View Unchanged
|
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.
LGTM 👍
This breaks the cover block styling on the frontend. It looks like this did more than just revert the change in #24523. It removed the entire line, rather than restoring it to what it originally was. This change is causing a width collapse of all cover blocks. |
Thank you @johnstonphilip for pointing that out. I created #26143 to fix it. |
This issue seems to have been made more visible by #24523, but did not seem to be the result of it.
Basically, the Cover block has an inner container, called
wp-block-cover__inner-container
. This had a max-width ofcalc(100% - 70px)
. Since that rule was written for the UI that shipped with 5.4, I'm assuming those 70px were to accommodate for the side UI that was present (movers, etc).Since that side UI is no longer needed, that rule can be removed. Which in turn makes the editor consistent with the frontend:
Here's before: