Skip to content

Image: Long captions break lightbox #51170

Closed

Description

@artemiomorales

Description

In the image lightbox, large captions will get cut off on desktop and will cause the lightbox to rendered incorrectly on mobile.

Step-by-step reproduction instructions

  1. Ensure the Interactivity API and Behaviors UI setting is enabled in Gutenberg > Experiments in the admin.
  2. Create a new post and add an image with a long caption of a few paragraphs.
  3. Activate the image's lightbox via Advanced > Behaviors > Lightbox.
  4. Publish and view the post.
  5. Click on the image; see that the caption is cut off on desktop and that the image and/or caption are cut off on mobile.

Screenshots, screen recording, code snippet

Desktop View

Screen Shot 2023-06-01 at 3 34 35 PM

Mobile View

Screen Shot 2023-06-01 at 3 35 02 PM

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

Activity

  1. added
    [Type] Bug
    [Block] Image
    [Feature] Interactivity API
    on Jun 1, 2023
  2. artemiomorales commented on Jun 6, 2023

    @artemiomorales
    ContributorAuthor

    As per the design changes in #51206 and this comment on a related PR, the caption has been removed, so this issue is no longer relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Image[Feature] Interactivity API[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions