WIP: Lightbox issue when choosing a different image source for a breakpoint

Browser: Brave - Chromium 138 (latest)
OS: macOS
Video: https://jam.dev/c/18b211b1-778e-4d49-830e-f86f1439934a

When setting a different image source for a smaller breakpoint and opening it on a lightbox, both the original image and the second one are displayed.

Hi @matutino,

this is not a bug, but it’s how it currently works. When using Lightbox, it will always take the desktop source as the Lightbox image.
You can create multiple image elements, one for desktop and one for mobile, and then it will show correctly.

Best regards,
Matej

Thanks Matej for your reply. I understand what you mean and actually your solution is what I did right after sending the report.
But did you check the video? In it you can see that both images are displayed at first, and then the secondary one disappears. It looks like a bug.
I guess in this case, if using the desktop image on the lightbox is what we want, the problem is the zoom-in animation when opening the image, and the solution would be to change it fo “fade” or “none”.

Hi @matutino,
ah, thank you for pointing that out. :slight_smile: I’ve noticed it now, and I’ve created an internal improvement task.

Thank you,
Matej