Open images in lightbox

What does this MR do and why?

Adds support for images added in GLFM to open in lightbox, rather than in a new page.

References

Closes #377398 (closed)

Screenshots or screen recordings

Before After
Clicking an image navigates to the image after_lightbox.gif
image.png

How to set up and validate locally

  1. Enable :image_lightboxes
  2. Add one or more images to any GLFM enabled context, such as an issue or MR description, a wiki page, or a comment.
  3. Click the image to open in a lightbox
  4. If you added >1 image, use the arrows or left/right keys to traverse
  5. Click again to close (or esc)

Test error state by adding <a href="test.png"><img /></a> to a description then clicking the resulting block.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Nick Leonard

Merge request reports

Loading