Media & Text - image is stretched vertically on front end #35738
Labels
[Block] Media & Text
Affects the Media & Text Block
Needs Testing
Needs further testing to be confirmed.
Description
In the Media & Text block the image is stretched vertically on the front end.
The image is not stretched in the editor as the
.block-editor__container img
CSS containsheight: auto
.However on the front end
height: auto
is missing from the block styling:.wp-block-media-text__media img, .wp-block-media-text__media video
Step-by-step reproduction instructions
Add a Media & Text block
Select an image that with landscape dimensions (wider than the height)
Add enough text so that the text appears with a larger height than the image.
Leave the 'Crop image to fill entire column' option off.
View on front end and notice the image is stretched in the vertical.
Screenshots, screen recording, code snippet
Editor view:
Front end view:
Environment info
No response
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
The text was updated successfully, but these errors were encountered: