-
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: Site logo rounded on mobile. #43903
Conversation
Size Change: +26 B (0%) Total Size: 1.25 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.
Thanks, @jasmussen. The fix works as expected.
It looks like wrapper div logic has been there since the very beginning. @scruffian, do you remember why this is needed?
gutenberg/packages/block-library/src/site-logo/edit.js
Lines 157 to 159 in 4c7298d
if ( ! isResizable || ! imageWidthWithinContainer ) { | |
return <div style={ { width, height } }>{ imgWrapper }</div>; | |
} |
Screenshots
Before | After |
---|---|
Thank you, I'll merge this, we can always follow up. This extra div from the CSS was probably erroneously refactored out as I cleaned things up recently. |
I'm wondering if we can remove extra div logic altogether in a follow-up. |
No, sorry it's been too long! |
No worries, @scruffian. Thanks for the reply! |
What?
Followup to #43762. Turns out on mobile, only in the editor, there's an additional wrapping div around the site logo, which needs inheritance. This PR adds that.
Before:
After:
Is there a way to e2e test this.
Testing Instructions
The site logo should remain round.