Skip to content
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

srcset attribute in Gutenberg gallery blocks #13963

Closed
aitormendez opened this issue Feb 20, 2019 · 2 comments
Closed

srcset attribute in Gutenberg gallery blocks #13963

aitormendez opened this issue Feb 20, 2019 · 2 comments
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images [Feature] Media Anything that impacts the experience of managing media

Comments

@aitormendez
Copy link

Gallery block are very useful to layout thumbnails. However, when I choose a columns layout (for example, four columns layout), the srcset for this thumbnail remains the same as a large image.

In other words, with a four columns layout, the thumbnails srcset come with:

sizes="(max-width: 768px) 100vw, 768px"

So, all thumbnails are built with the large images. For example, in this page: https://stage.margenesdelarte.org/productions/relato-de-salida-al-albergue-2018/

Is it possible to get something like this?:

sizes="(max-width: 768px) 100vw, 200px"

Further more, is it possible to set srcset up regarding the number of columns in the gallery block layout?

@swissspidy swissspidy added [Feature] Media Anything that impacts the experience of managing media [Block] Gallery Affects the Gallery Block - used to display groups of images labels Feb 20, 2019
@swissspidy
Copy link
Member

Related and possible duplicates: #6177, #5674

@youknowriad
Copy link
Contributor

Duplicate of #9620

@youknowriad youknowriad marked this as a duplicate of #9620 Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images [Feature] Media Anything that impacts the experience of managing media
Projects
None yet
Development

No branches or pull requests

3 participants