Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Another behaviour for retina images

Started by Maxim Bazarov 8 years ago · 0 replies · 419 views
8 years ago

Grav automatically injects sizes="100vw" for retina images.
As a result a browser stretches image on full page width. In some cases it may be useful, but in many other it works not well.

Is it possible to tell Grav to change this behaviour and use sizes=“{REAL IMAGE WIDTH}px”?

https://www.dropbox.com/s/tb1tvqokyyfwx3q/image1.png?dl=0

Currently, to make it looking in valid way, I use media query to set sizes manually. But it's really annoying.

Thanks

last edited 02/16/18 by Maxim Bazarov

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 57 15 hours ago
Support · by Anna, 3 days ago
2 65 18 hours ago
Support · by Justin Young, 18 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago