Always add height and width prop to image with layout="raw" (#36523)
This PR makes the following changes: * Always add the `height` and `width` prop to image with `raw` layout (previously only added to images without `sizes`) * Add a warning if a raw layout image is getting stretched (which can be caused by interaction of height and width prop with styles) * Remove automatic aspect-ratio style from `raw` images. This is no longer necessary if all `raw` images have height and width props. * Update tests and docs accordingly
Showing
Please
register
or
sign in
to comment