摘要邮件需要宽度限制

Looks like we are missing a max-width on the email summary post content:

Current:

With 700px max-width:

Thanks @pepa for the heads up!

9 个赞

There’s a code example here that constrains the width of emails sent from Discourse: Customize and style the Discourse outer email template. I’ve tested it on Litmus and seen issues on some email clients when it’s used as the outer wrapper for the summary email. I’m fairly sure those issues can be resolved.

5 个赞

我在这里限制了宽度并居中了电子邮件内容:

来自测试发送:

我使用了表格来限制宽度并居中,这应该能确保它在旧的电子邮件客户端中也能正常工作:

<table>
  <tr>
    <td></td>
    <td width="650">所有电子邮件内容都在此 td 中</td>
    <td></td>
  </tr>
</table>

请注意,设置在 td 上的宽度更像 max-width,内容仍会缩小以适应较小的设备。

5 个赞