-
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
Post Lock: Fix the avatar position #49421
Conversation
@@ -15,5 +11,5 @@ | |||
.editor-post-locked-modal__avatar { | |||
border-radius: $radius-block-ui; | |||
margin-top: $grid-unit-20; | |||
margin-right: $grid-unit-30; | |||
min-width: initial !important; |
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.
The HStack
sets min-width: 0
to all its children. We must override that so the image can take up the entire width.
Size Change: -3 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
Flaky tests detected in c50b379. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4550980655
|
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.
Looks good to me, and the !important is properly scoped. I'd appreciate a code sanity check, but otherwise, go for it.
What?
PR fixes the avatar position regression in the Post Lock modal.
P.S. It's easier to review code changes by hiding whitespaces - https://github.com/WordPress/gutenberg/pull/49421/files?diff=unified&w=1.
Why?
The modal markup changed recently, and the previous styling wasn't applied. See #47426.
How?
Wraps modal content into an
HStack
component.I also pushed minor code quality updates in c50b379.
Testing Instructions
Snippet
Screenshots or screencast
Before
After