+ Enlarge only to display width and not to 1:1
-
Hello!
I use PhotoSwipe 4 (to be able to set mobile view as well).
My acute issue:
I have an image with 1920 width (height 4800) and would like to have this size displayed when clicking on another image. This works, but if I click on the magnifying glass, the image is displayed at 100% and therefore unfavorable on smaller displays in this particular case. Since the “magnifying glass” has this as an idea, the implementation is therefore also correct and I ” misuse” therefore from my point of view the magnifying glass for less ??
However: I would like to display “still” only on 100% of the display width, if + is used.
So on a 1200er display then 1200er width would be scaled.
I tried to solve this with CSS, but it doesn’t work.
Alternatively working with an image-size-plugin would be technically probably the better way. However, because the image is very small as a webp, I would currently want to work around it.
Thanks for any advice
- The topic ‘+ Enlarge only to display width and not to 1:1’ is closed to new replies.