simplelightbox icon indicating copy to clipboard operation
simplelightbox copied to clipboard

Lightbox not centered

Open sarahjadesigns opened this issue 2 years ago • 0 comments

Nothing critical, but I noticed that the images in the lightbox aren't centered, which is a little weird. It's so slight that you don't really notice it until you get down to a mobile view. Since it was pulling a bit more to the left, I thought it might just be compensating for the disable scrollbar, but if I set disableScroll to false, then it pulls to the right – see screenshots. You can see that the content behind is centered properly, it's only the lightbox that's off (probably just the arrow when scrolling is disabled).

This is probably just a small formatting issue, but I can't seem to find what's causing the problem, at least not in the CSS.

Otherwise a very nice, sleek plugin and very grateful I get to use it. :D

simplelightbox_off-centre

sarahjadesigns avatar Apr 18 '22 11:04 sarahjadesigns