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
This is because `img.width.toString()` returns the `<img>` element dimension, not the real image dimension (stored in the `width` attribute).
closes#934
What happened?
I am using the built-in Photoswipe on my site. Example post at https://optimizedbyotto.com/post/gitlab-mariadb-debian/
When a user clicks on one of the images to zoom in, Photoswipe does open it in an overlay, but the image size stays unchanged.
The image size is controlled by CSS. Initially the width is scaled down to 100% of available space:
When clicked Photoswipe adds custom CSS rules:
The image file itself that gets loaded is the same file all the time: https://optimizedbyotto.com/post/gitlab-mariadb-debian/gitlab-merge-request-example.png (dimensions 1356x896px).
Hugo version
0.122.0
Theme version
1.0.0
What browsers are you seeing the problem on?
Chrome
More information about the browser
No response
Relevant log output
No response
Link to Minimal Reproducible Example
https://optimizedbyotto.com/post/gitlab-mariadb-debian/
The text was updated successfully, but these errors were encountered: