-
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
[Post Featured Image]: Fix some sizing issues #49641
Conversation
Size Change: +12 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
Flaky tests detected in 8746c57. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4630662738
|
8746c57
to
15bef96
Compare
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.
@ntsekouras, this needs to be included in a minor WP release, correct? |
@ntsekouras, I just noticed that after this change, the Feature Image block in post content takes up full width, even when alignment says "None." I believe that's due to this line change: const blockProps = useBlockProps( {
style: { width, height, aspectRatio, maxWidth: '100%' },
} ); Screenshot |
Good catch @Mamaduka ! I'll take a look tomorrow for a fix. |
What?
Resolves: #48988
This is a start to address some sizing issues in Post Featured Image block. There are more similar issues like: #48892, but we can iterate on fixing them.
Notes
This PR handles:
max-width:100%
Testing instructions
For percentage width:
For overflowing images:
grid
view.Before
before.mov
After
after.mov
🤖 Generated by Copilot at 15bef96