Lightbox menu icons may become hidden when there are many images

frm

Well-known member
Affected version
Xenforo
Xenforo live site issue

The X to close the light box in the media gallery is too far right.

It's very hard to tap, especially on a Galaxy S23 with a curved edge screen.

Screenshot_20240826_000858_Chrome.webp

Forum attachments are OK.

Screenshot_20240826_000701_Chrome.webp
 
Forum attachments are OK.

Screenshot_20240826_000701_Chrome.webp
Forum attachments are only okay if 1 is attached to the thread. When there are more, like 5 now in this thread, it becomes a problem with the lightbox on XF.
 
Also on Android 14 (but pixel/stockish, not oneui). I do run "full HD" not quadHD to save battery though. Could be a resolution, or samsung OneUI issue.
I tried all 3 settings and it looked the same.

Then I noticed screen zoom.

This is my current setting that doesn't impact any sites, that I've noticed.

Screenshot_20240826_073003_Settings.webp

If it's only +1 or 0, it works just fine.

Screenshot_20240826_073230_Chrome.webp

Maybe not a bug or is a bug if it can't adjust to a screen zoom like all other apps?
 
Googled a random lightbox plugin for WordPress.


All news websites with a lightbox carousel to show images with articles don't have an issue either. However, they all only make use of the X icon, not padding it with 6 icons for other various controls.
 

Attachments

  • Screenshot_20240826_080835_Chrome.webp
    Screenshot_20240826_080835_Chrome.webp
    49.5 KB · Views: 6
Steps to reproduce
  1. Access https://xenforo.com/community/threads/many-images-test.232114/ with a sufficiently narrow screen (360px like Samsung Galaxy)
  2. Open the lightbox
  3. Navigate to image #10
Expected Result
All menu icons or at least the close icon are accessible

Actual Result
The close icon is not visible and thus can't be used making it somewhat difficult / unintuitive to close the lightbox.

Screenshot_20250715_093343_Chrome.webp


Not sure yet how to fix this, but the current behaviour is meeh.
 
Is it similar to this?


I have my screen zoom bumped up just one or the text in other apps is a bit too small.

Screenshot_20250715_175107_Settings.webp


Edit: Had to reluctantly bump it down one since the report to behave with XF, which it does now, but +2 it'd act like what you posted.
 
Is it similar to this?
It's basically a superset of your bug report:
You reported this for XFMG but the issue is basically FancyBox itself, eg. also exists in core without XFMG.

The root cause is simply that there isn't enough horizontal space to display all icons and the counter (X / Y) if the screen is narrow and there are enough images to display, eg. the counter in the left colum gets wide enough.

This issue most likely won't be visible on Google Pixel or iPhone as those devices have a larger screen ( > 400px; Samsung Galaxy SXX has only 360px)
 
It's basically a superset of your bug report:
You reported this for XFMG but the issue is basically FancyBox itself, eg. also exists in core without XFMG.
I reported it for XFMG and RM, not noticing it had an impact on threads with attachments too. Probably why this one is marked Duplicate, as they see it as an XF-wide issue regardless of where reported:

 
Back
Top Bottom