Image block lightbox: The enlarged image isn't responsive #55124
Labels
[Block] Image
Affects the Image Block
[Packages] Interactivity
/packages/interactivity
[Type] Bug
An existing feature does not function as intended
Description
Splitting this out from #54971
See #54971 (comment)
See #52765 (comment)
The lightbox enlarged image doesn't scale when resizing the window or changing device orientation.
This happens regardless of the initial orientation or window size:
Seems to me this is less than ideal especially on tablets and other small screens. The current behavior isn't great on dsktop either. I'd tend to think all images in WordPress should be responsive and adapt to the available space.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
When changing device orientation (or resizing the browser window), the image in the open modal dialog doesn't scale correctly:
The user experience is less than ideal especially when the image is cut-off on the sides, as some parts of the image aren't visible any longer.
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: