prismic-dom icon indicating copy to clipboard operation
prismic-dom copied to clipboard

Consider including the dpr param and width/height attributes on img tags

Open brian-c opened this issue 4 years ago • 1 comments

Images from rich text areas display at low resolution on high DPI devices.

Including the &dpr=${window.devicePixelRatio} query param requests the image at the appropriate resolution. width and height attributes would keep the image at the right size (and should probably be present regardless of DPI to prevent the page jumping around while images load).

brian-c avatar Oct 29 '20 22:10 brian-c

Hey, I'm sorry we failed to give this issue any attention until then. We'll make sure to take that into account as we move forward with this kit. We're currently reworking it to provide first-class TypeScript support and a better interface ☺️

lihbr avatar Jun 21 '21 16:06 lihbr