Summary email needs a width limit

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 Likes

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 Likes

I’ve restricted the width and centered the email content here:

From a test send:

I’ve used tables to restrict the width and center which should ensure it works with older email clients:

<table>
  <tr>
    <td></td>
    <td width="650"> all email content within this td </td>
    <td></td>
  </tr>
</table>

Note that a width set on a td functions more like a max-width, and content will still shrink to fit smaller devices.

5 Likes