From d825447e6bac1986abc8b315aa052fb976b4085b Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Tue, 25 Nov 2025 16:51:07 -0600 Subject: [PATCH] Add defensive styles for non-square avatar images --- app/views/layouts/mailer.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb index f878fba23..51acf3ea0 100644 --- a/app/views/layouts/mailer.html.erb +++ b/app/views/layouts/mailer.html.erb @@ -49,13 +49,15 @@ } .avatar { - border-radius: 50%; + aspect-ratio: 1; + border-radius: 2.5em; color: white; display: block; font-weight: 600; height: 2.5em; line-height: 2.5em; mso-line-height-rule: exactly; + object-fit: cover; overflow: hidden; text-align: center; width: 2.5em;