Skip to content

Commit 19c59c2

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
email styling
1 parent 47ea5e4 commit 19c59c2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

email/templates.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (s *Sender) formatNotificationBody(sub *notifier.Subscription, thread *noti
2929
b.WriteString(".content img { max-width: 100%; height: auto; margin: 10px 0; display: block; }\n")
3030
b.WriteString(".content blockquote { border-left: 3px solid #ddd; padding-left: 15px; margin: 10px 0; color: #666; font-size: 0.95em; }\n")
3131
b.WriteString(".content hr { border: none; border-top: 1px solid #ddd; margin: 15px 0; }\n")
32-
b.WriteString(".footer { margin-top: 24px; padding-top: 12px; font-size: 0.9em; color: #7f8c8d; }\n")
32+
b.WriteString(".footer { margin-top: 16px; padding-top: 8px; font-size: 0.9em; color: #7f8c8d; }\n")
3333
b.WriteString(".footer.with-border { border-top: 1px solid #ddd; }\n")
3434
b.WriteString(".footer a { color: #7f8c8d; text-decoration: underline; margin: 0 8px; }\n")
3535
b.WriteString(".footer a:first-child { margin-left: 0; }\n")
@@ -80,13 +80,9 @@ func (s *Sender) formatNotificationBody(sub *notifier.Subscription, thread *noti
8080
}
8181

8282
// Footer with thread link and manage link
83-
// Only add border if there are multiple posts (orange lines provide separation)
84-
footerClass := "footer"
85-
if len(posts) > 1 {
86-
footerClass = "footer with-border"
87-
}
83+
// Always add grey border to separate footer from content
8884
//nolint:gocritic // %q would add extra quotes in HTML context
89-
b.WriteString(fmt.Sprintf("<div class=\"%s\">\n", footerClass))
85+
b.WriteString("<div class=\"footer with-border\">\n")
9086

9187
// Link to the last page with anchor to latest post (e.g., .../page-12#post-12345)
9288
// This loads the full page context but scrolls to the most recent post

0 commit comments

Comments
 (0)