New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
height: 'auto'
in defaultAttributes for 'mj-image' breaks template draft
#2578
Comments
I'm not sure what's the usecase here as sending HTML email via clients will alter the HTML and most likely break the email. However you can add |
Thanks for the quick answer @iRyusa .
I know that sad phenomenon, however, I believe that the more such use cases can be captured and corrected from a code perspective, the scope for uncontrolled HTML changes between email clients can decrease. This particular case I reported is an important part of a project I'm working on, and I believe many developers will find the option to have more control over it helpful. I have tested the blank |
As fair as I remember the height auto isn't mandatory but it helps some version of Outlook to keep the aspect ratio in some cases. I'll check if I can do a patch to completely remove |
I am wondering if that patch allow the Outlook pixel line bug to appear its' ugly head. I post it over at - #2630 |
Don't think so. But this has been release in 4.14.x |
By default, there are defined
defaultAttributes
formj-image
tag that include:Adding
heigt="auto"
by default breaks image display inside email drafts in the Apple Mail application. Images are not displayed at all or are not correctly scaled.Possible solutions for this issue:
height="auto"
by default to images (if it is not really necessary)height="auto"
by MJML (before compilation) without the need to define image height to a particular size.style=
without adding it as a separateheight
attribute.The text was updated successfully, but these errors were encountered: