From 192275ee7c30f2bc80760dfac58e1e5a6875b426 Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Fri, 11 Sep 2026 18:08:49 +0900 Subject: [PATCH] Hide SVG icons in HTML email notifications to avoid a large blank space before pre blocks. --- 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 249e29af8..607bc6b29 100644 --- a/app/views/layouts/mailer.html.erb +++ b/app/views/layouts/mailer.html.erb @@ -13,6 +13,9 @@ h2, h3 { font-size: 1.1em; } a, a:link, a:visited { color: #1864ab; /* oc-blue-9 */ } a:hover, a:active { color: #c92a2a; /* oc-red-9 */ } a.wiki-anchor { display: none; } +/* Hide SVG sprite icons: mail clients cannot render them, and those + that keep would lay them out as 300x150px blank boxes */ +svg { display: none; } fieldset.attachments { border-width: 1px 0 0 0; border-style: solid; @@ -86,7 +89,6 @@ table, td, th { margin: 1em 0; } .markdown-alert-title { font-weight: bold;} -.markdown-alert-title svg { display: none; } .markdown-alert-tip { border-color: #37b24d; /* oc-green-7 */} .markdown-alert-tip .markdown-alert-title { color: #2b8a3e; /* oc-green-9 */ } -- 2.55.0