-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Media & Text: Layout breaks when inside a Stack and set to "Crop image to fill" #65605
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
Browser IssuesIssues or PRs that are related to browser specific problemsIssues or PRs that are related to browser specific problems[Block] Media & TextAffects the Media & Text BlockAffects the Media & Text Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
If you place a Media & Text block inside a Stack block, assign an image and set the image to "Crop image to fill", the image will overflow the bounds of the wrapping blocks.
Step-by-step reproduction instructions
- Create a new page.
- Insert a Stack.
- Insert a Media & Text block inside the stack, and assign an image.
- In the block settings, set the image to "Crop image to fill".
- The image should overflow the stack in the block editor.
- Publish and visit the page, and the image should overflow the stack (and the Post Content block) on the front-end as well.
Screenshots, screen recording, code snippet
Edit: Disregard the page title – there's no Cover block used in the layout.
Environment info
WP 6.6.2
Twenty Twenty-Four
With or without Gutenberg 19.2.0 active
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Browser IssuesIssues or PRs that are related to browser specific problemsIssues or PRs that are related to browser specific problems[Block] Media & TextAffects the Media & Text BlockAffects the Media & Text Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.