Przeglądaj źródła

style(mail): 订单邮件 CTA 按钮水平居中(align=center + margin auto)

wenhongquan 1 miesiąc temu
rodzic
commit
acb2284934
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      server/email_templates.py

+ 1 - 1
server/email_templates.py

@@ -120,7 +120,7 @@ def _shell(inner: str, preheader: str = "") -> str:
 def _button(label: str, url: str) -> str:
     return """
 <tr><td style="padding:6px 0 4px;">
-  <table role="presentation" cellpadding="0" cellspacing="0" border="0">
+  <table role="presentation" cellpadding="0" cellspacing="0" border="0" align="center" style="margin:0 auto;">
     <tr><td align="center" bgcolor="%s" style="border-radius:10px;">
       <a href="%s" target="_blank"
          style="display:inline-block;padding:13px 34px;font-family:%s;font-size:15px;font-weight:600;color:#fffdf8;text-decoration:none;border-radius:10px;background-color:%s;">%s</a>