mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-02 13:44:16 +09:00
Backport #40104 by @0xJacky Remove the `body {margin: 0; padding: 0}` reset from https://github.com/go-gitea/gitea/pull/38396, which left HTML mails flush against the edge in Apple Mail and Thunderbird. The devtest preview stops injecting its own padding, so it matches delivered mails. These clients render the mail as a document and apply the default 8px body margin again, as with GitHub and GitLab notifications. Webmail clients replace `<body>` and keep their own inset. Fixes: https://github.com/go-gitea/gitea/issues/40103 Assisted-by: Codex:GPT-6.1, Claude:Opus 5.5 Co-authored-by: Jacky <jacky-943572677@qq.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: silverwind <me@silverwind.io>
17 lines
768 B
Handlebars
17 lines
768 B
Handlebars
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
|
|
<meta name="color-scheme" content="light dark">
|
|
<meta name="supported-color-schemes" content="light dark">
|
|
<title>{{.}}</title>
|
|
|
|
<style>
|
|
body, td {font-family: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif}
|
|
a, a:visited {color: #0969da; text-decoration: none}
|
|
a:hover {text-decoration: underline}
|
|
blockquote {padding-left: 1em; margin: 1em 0; border-left: 1px solid grey}
|
|
@media (prefers-color-scheme: dark) {
|
|
a, a:visited {color: #58a6ff}
|
|
.mail-footer td {border-top-color: #3f4248 !important; color: #8c959f !important}
|
|
}
|
|
</style>
|