LC-Lightbox-LITE icon indicating copy to clipboard operation
LC-Lightbox-LITE copied to clipboard

The automatically switching smart system: "under" vs "over"

Open alexipavlenko opened this issue 7 years ago • 1 comments
trafficstars

documentation

data_position | (string)

Specifies where elements data will be shown. Available modes are: over (over element) under (under element) rside (on right side) lside (on left side)

Please note lightbox uses a smart system automatically switching to "over" as soon element becomes too small because of long texts or tiny window.

So, "lightbox uses a smart system automatically switching to "over" as soon element becomes too small because of long texts or tiny window".

I propose the automatically switching to "under" and leave (do not delete) this text description on very small screens. It looks ok. On the other hand, it's better, when a user will decide, which the switching mode to use (on small screens).

alexipavlenko avatar Apr 09 '18 15:04 alexipavlenko

Hello, the "under" layout is pretty complex since involves a lot of sizing tricks (in fact the text could be higher if the image is smaller and then I'd have to recalculate everything over and over again).

Finally, "text under" on mobile means a super tall lightbox and a tiny image. The "over" layout is surely the best on mobile

LCweb-ita avatar May 25 '19 06:05 LCweb-ita