Media & Text Block: Image not rendered properly on frontend when inside stack #68609
Open
3 of 6 tasks
Labels
[Block] Media & Text
Affects the Media & Text Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When a Media Text block is created within a stack and an image is added without accompanying text, the block renders correctly in the editor. However, on the frontend, it is rendered without a defined width, causing the image to be hidden.
Expected Behavior
The image should be rendered with an appropriate width, making it visible on the frontend, even if no text is present.
Actual Behavior
The image is rendered without a defined width, causing it to be hidden on the frontend.
Please Note
I am working on the issue, discovered while working on #65605. Only happens with block themes.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Frontend
Editor
Environment info
WordPress version: 6.7
Browser(s): Safari, Chrome
OS: MAC
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: