-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improving amp-image-lightbox for desktop #24531
Comments
^^ I think the whole point of the lightbox is to provide a higher resolution image to the user on click. so you need to supply a higher resolution pic and if not, you don't need a lightbox. I could be wrong tho. |
Yes it is. But the things is that lightbox is enabled by default in all images including featured image and small screenshots images that I use. Any way to avoid auto enabled lightbox? |
Are you sure you are not talking about |
Yes; it was not happening before. I was manually enabling lightbox effect while editing post. Here is my site - https://sangams.com.np/ |
You can disable auto lightbox by setting the Additionally, if you include the |
Thanks for the solution. Is it possible to makes image not fill the width and height instead show actual size of image. |
@2shrestha22 I think that's probably a better use case for |
This disables weird behavior where AMP displays a zoomed-in, blurry lightbox when an <amp-img> that doesn't already have a click handler is clicked. It also prevents an <amp-lightbox-gallery> element from being automatically created. See https://stackoverflow.com/q/58276934 and ampproject/amphtml#24531.
Describe the new feature or change to an existing feature you'd like to see
When AMP is used in desktop version the amp-image-lightbox effect cause small images to stretch. Images tends to fill the whole screen but in desktop this feature makes images ugly. Is there any way not to exceed width and height of images?
Describe alternatives you've considered
Provide a clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: