wagtail.org
wagtail.org copied to clipboard
Newsletter images should preserve their aspect ratio on mobile
Hey @thibaudcolas
Cause of Bug
I think the cause of this bug is the explicit mentioning of height and width of the img tag. If we remove that the image works fine and maintains the aspect ratio.
Also the use of CSS styles and properties are not done in an effective manner.
Solution
Simple solution would be to remove the explicit mentioning of height and width in the IMG tag and customize the CSS properties so that IMG works properly across all devices .
Also, I would like to work on this issue.
this can be fixed by adding height: auto; to .richtext-image