KyleAMathews/react-retina-image

Make inline "width" and "height" attributes optional

Closed this issue · 1 comments

Because the width and height attributes are by default added to the <img> tag, this doesn't allow the image to be responsive due to the fixed width and height.

After initial page load, as I shrink down my viewport width, it squishes the image and doesn't scale. Same if I widen the viewport width.

Actually i forgot to set the height: auto. It scales fine now. Thanks for a great plugin!