zalify / easy-email-editor

Easy Email Editor is a feature-rich, top open-source SaaS email editor based on React and MJML.
https://email.maocanhua.cn/
MIT License
1.59k stars 329 forks source link

Issues with email format and contents in mobile view (web-app) #256

Closed shahiakriti closed 1 year ago

shahiakriti commented 1 year ago

When viewing the template on mobile view (outlook app and web-app), the contents of the template are inconsistent.

Steps to reproduce:

Observation: If we send this template in the email, the elements are not consistent in mobile view web-app and outlook app. Below if the screenshot of how it appears in the outlook mobile web-app (Here I'm using Safari). Here we can see the text is not wrapped correctly and button is also missing.

image

Expectation: The email is supposed to look like the screenshot below taken from the outlook app on mobile phone. image

m-Ryan commented 1 year ago

Please check if the button link is valid, as some platforms may remove the button if the link is invalid. @shahiakriti

shahiakriti commented 1 year ago

Thanks @m-Ryan, for the button we figured that the default # that gets added to the Href when we drag a button was causing the button to disappear in some platforms.

However there's still an issue with text wrapping it seems. The texts are breaking when we send test emails. Please view the screenshot below: image

m-Ryan commented 1 year ago
image

https://www.caniemail.com/search/?s=word-break

The default style of MJML is word-break: break-word, you can override it. https://developer.mozilla.org/en-US/docs/Web/CSS/word-break But I don't have a better way to recommend. @shahiakriti

Relatived: https://github.com/mjmlio/mjml/issues/1728 https://github.com/mjmlio/mjml/issues/2615 https://github.com/mjmlio/mjml/issues?q=word-break