Commit Graph

7 Commits

Author SHA1 Message Date
Adrien Maston 39575a0cb6 Fix lightbox layout and focus 2026-01-23 17:41:33 +01:00
Mike Dalessio e9cb2956ee Lightbox uses Stimulus target callbacks instead of data-action
Remove data-action from the sanitizer allowlist to disallow injection
of potentially malicious Stimulus actions in user-provided
content. The lightbox controller now uses imageTarget callbacks to
handle clicks on image links.

Also add the file name as a caption in the light box, and fix the
caption color for dark mode visibility.
2025-12-13 17:06:03 -05:00
Jeremy Daer db55923fdb Fix lightbox transitionend listener leak
Switch to a Stimulus action for automatic handling
2025-12-05 16:19:01 -08:00
Andy Smith 34f926ffca Support optional captions 2025-08-04 13:05:39 -05:00
Andy Smith 4c505aeb23 Get all transitions working properly 2025-07-31 15:34:27 -05:00
Andy Smith 3f7f414c34 Animate the lightbox 2025-07-30 17:26:05 -05:00
Jose Farias 0e8d4104f8 Implement lightbox 2024-11-29 15:52:45 -06:00