You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a sample of the gallery open, from left to right side of a page. Vertical space is cut out.
You can see 2 images (rectangles). I want to see only one image at a time, taking the full viewport width. How to do that?
I'm getting this behavior on mobile only (including desktop devtools in mobile mode). Making the browser window on desktop narrow has no effect - each image takes full width.
Some things:
The currently open image is "stuck" to the left part of the page. The gap is to the right.
When zoomed in, the image to the right overlaps with the current image.
I tried setting initialZoomLevel to fit with no effect.
I'm setting both data-pswp-width and data-pswp-height correctly.
Setting padding is not an option - the gap changes between resolutions.
I'm using svelte-kit with dynamic imports and some format preprocessing, but disabling the latter has no effect (as shown by the code samples). The code is based on the svelte example in the docs.
Also, when inspecting an opened image, I see width and height set to width: 500px; height: 374px (I have a 2398x1795 image), even on big resolutions. Is this okay? Changing these values manually changes the image size but does not affect the position of the next image.
Here's a sample of the gallery open, from left to right side of a page. Vertical space is cut out.
You can see 2 images (rectangles). I want to see only one image at a time, taking the full viewport width. How to do that?
I'm getting this behavior on mobile only (including desktop devtools in mobile mode). Making the browser window on desktop narrow has no effect - each image takes full width.
Some things:
initialZoomLevel
tofit
with no effect.data-pswp-width
anddata-pswp-height
correctly.padding
is not an option - the gap changes between resolutions.Also, when inspecting an opened image, I see
width
andheight
set towidth: 500px; height: 374px
(I have a 2398x1795 image), even on big resolutions. Is this okay? Changing these values manually changes the image size but does not affect the position of the next image.Here's some code samples:
The text was updated successfully, but these errors were encountered: