prismic-dom
prismic-dom copied to clipboard
Consider including the dpr param and width/height attributes on img tags
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).
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 ☺️