Skip to content

Image: Lightbox does not display largest available size of image #51171

@artemiomorales

Description

@artemiomorales

Description

The lightbox does not scale images up or show the largest available size when it is opened.

Step-by-step reproduction instructions

  1. Enable the Interactivity API and Behaviors UI experiment in Gutenberg > Experiments.
  2. Add an image to a post
  3. Enable Advanced > Behaviors > Lightbox in the image block settings
  4. Set the image to thumbnail
  5. Publish the post and click on the image.
  6. See that a thumbnail-sized image is shown rather than a full screen version of it.

Screenshots, screen recording, code snippet

lightbox-image-size.mp4

Environment info

WP 6.2, Gutenberg 15.9
Chrome
Mac OSX

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

Metadata

Metadata

Labels

[Block] ImageAffects the Image Block[Feature] Interactivity APIAPI to add frontend interactivity to blocks.[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions