You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the lightbox behavior for the Image block that contains a vertical image inserted from URL, it displays correctly on the front end. However, when the lightbox gets opened, if the image is tall, then it gets cut on both the top and bottom of the image.
Step-by-step reproduction instructions
Activate the experiment that enables Interactivity API and Behaviors.
gziolo
changed the title
Image: Vertical image cut when displayed in the lightbox
Image: Vertical image from URL cut when displayed in the lightbox
May 31, 2023
If I am not mistaken this could be solved using max-height: 100% and max-width: 100% (or something similar) here. I can work on a pull request for that.
Description
When using the lightbox behavior for the Image block that contains a vertical image inserted from URL, it displays correctly on the front end. However, when the lightbox gets opened, if the image is tall, then it gets cut on both the top and bottom of the image.
Step-by-step reproduction instructions
Insert from URL
option, for example:https://pd.w.org/2023/05/7866470b6f485ce37.96403804.jpg.
Screenshots, screen recording, code snippet
Vertical image in the block editor:
Vertical image in the lightbox on the frontend:
Environment info
trunk
)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: