jpuri / react-draft-wysiwyg

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg
MIT License
6.4k stars 1.16k forks source link

Images not responsive #886

Open Arun-Josh opened 4 years ago

Arun-Josh commented 4 years ago

The images linked are not responsive when viewed in mobile

stevehwg commented 4 years ago

I had the same issue but I found that you can update "auto" to "100%" and as long as you have a css for responsive image, it should work.

Arun-Josh commented 4 years ago

I had the same issue but I found that you can update "auto" to "100%" and as long as you have a css for responsive image, it should work.

Thank you for taking your time Steve... Will try your suggestion 👍

alaminsheikh01 commented 3 years ago

You should use custom css code like this:

@media (max-width: 767.98px) {
  img {
    width: 100% !important;
  }
}