fix: dupliquer les styles du body sur la table wrapper dans le base email
Gmail, ProtonMail, SFR, Yahoo, Outlook.com, Orange et d'autres clients email suppriment ou remplacent la balise <body> par un <div>, ce qui fait perdre tous les styles inline definis sur le body. templates/email/base.html.twig: - Table wrapper principale: ajout de margin-top/right/bottom/left: 0, padding-top/right/bottom/left: 0, font-family: Arial, color: #111827, -webkit-text-size-adjust: 100%, -ms-text-size-adjust: 100% en plus du background-color: #eeeef3 deja present - Les styles restent aussi sur le body pour les clients qui le supportent Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body style="margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0; padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; background-color: #eeeef3; font-family: Arial, Helvetica, sans-serif; color: #111827; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;">
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: #eeeef3;">
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0; padding-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; background-color: #eeeef3; font-family: Arial, Helvetica, sans-serif; color: #111827; width: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;">
|
||||
<tr>
|
||||
<td align="center" style="padding-top: 40px; padding-bottom: 40px; padding-left: 16px; padding-right: 16px;">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user