# Estilo do resumo de e-mail alterado como renderizado no Gmail?

**URL:** <https://meta.discourse.org/t/email-summary-styling-changed-as-rendered-in-gmail/251940>\
**Category:** UX\
**Tags:** email\
**Created:** [16 Janeiro , 2023 16:34 UTC](https://meta.discourse.org/t/email-summary-styling-changed-as-rendered-in-gmail/251940 "2023-01-16T16:34:21Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [20 Abril , 2023 13:36 UTC](https://meta.discourse.org/t/email-summary-styling-changed-as-rendered-in-gmail/251940/11 "2023-04-20T13:36:27Z")

</div>

Acabei de mesclar uma atualização, esta foi uma alteração mais fácil do que eu esperava. Isso deve evitar a maioria das quebras de layout quando for muito longo para o Gmail.

> <https://github.com/discourse/discourse/pull/21176>
>
> This addresses an issue raised here: https://meta.discourse.org/t/email-summary-…styling-changed-as-rendered-in-gmail/251940
> 
> A simplified version of the problem:
> 
> \`\`\`xml
> \<table\> 
> \<tr\>
> \<td\>\</td\> 
> \<td width="650"\> \</td\>
> \<td\>\</td\> 
> \</tr\>
> \</table\>
> \`\`\`
> 
> If the width-restricted \`td\` is too long, gmail will clip the end, including the following \`td\`. 
> 
> When the last \`td\` is removed, the first \`td\` expands to fill the space and pushes all the content to the right, so it's no longer centered. 
> 
> To avoid this, I've updated the structure so that each section centers itself and doesn't rely on the wrapping container. 
> 
> \`\`\`xml
> \<table\> 
> \<tr\>
> \<td\> 
> \<table\> 
> \<tr\>
> \<td\>\</td\> 
> \<td width="650"\> \</td\>
> \<td\>\</td\> 
> \</tr\>
> \</table\>
> \<table\> 
> \<tr\>
> \<td\>\</td\> 
> \<td width="650"\> \</td\>
> \<td\>\</td\> 
> \</tr\>
> \</table\>
>        
> \</td\>
> \</tr\>
> \</table\>
> \`\`\`
> 
> 
> So now if gmail clips a too-long email, only the last section that gets clipped will be misaligned.  
> 
> This also results in a slightly different appearance with a wider background, but I think this is a completely fine trade-off. 
> 
> Before:
> 
> 
> 
> !\[Screenshot 2023-04-19 at 6 09 54 PM\](https://user-images.githubusercontent.com/1681963/233210791-e61331f3-363d-4d15-955c-1d78c2fc85d3.png)
> 
> 
> After:
> 
> !\[Screenshot 2023-04-19 at 6 09 37 PM\](https://user-images.githubusercontent.com/1681963/233210832-13d0d464-1856-4193-96b4-597af4af1e3a.png)

> [@anon48433008](#):
>
> Estou bem com um resumo abreviado, como faço para gerenciar isso, não vejo como um modelo?

Não é um modelo editável como os outros, está no código-fonte do Discourse aqui: [discourse/app/views/user\_notifications/digest.html.erb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/app/views/user_notifications/digest.html.erb)

---

_[View the full topic](https://meta.discourse.org/t/email-summary-styling-changed-as-rendered-in-gmail/251940)._
