next/image and responsiveness
igordanchenko opened this issue ยท 3 comments
igordanchenko commented
Discussed in #84
Originally posted by jensober March 9, 2023
I'm using the lightbox with the next/image component as described here: https://yet-another-react-lightbox.com/examples/nextjs
I get problems when I change the size of the browser window or rotate the smartphone. Here you can see a screen capture:
Is there anything I can fix here?
jensober commented
As a workaround, I use window.screen.availWidth
resp. window.screen.availHeight
instead of the rect parameter to calculate the width and the height.
igordanchenko commented
Thank you for catching this nasty bug! I'll release a fix later today.
github-actions commented
๐ This issue has been resolved in version 2.6.1 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐