From a4fb80e36c28482640cc37ff7495a1a2eec455c3 Mon Sep 17 00:00:00 2001 From: Dan Loman Date: Tue, 13 Oct 2026 09:07:46 -0700 Subject: [PATCH] Leave the dashboard stylesheet out of the error email The email styles itself with its own inline block and uses none of the dashboard's Tailwind classes, but rendered the whole build into its head: tens of kilobytes per message, and Gmail clips a message past about a hundred. --- CHANGELOG.md | 2 ++ .../solid_errors/error_mailer/error_occurred.html.erb | 1 - test/mailers/solid_errors/error_mailer_test.rb | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58377ce..60d2e46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## [Unreleased] +- Leave the dashboard stylesheet out of the error email ([@namolnad](https://github.com/fractaledmind/solid_errors/pull/110)) + ## [0.8.0] - 2026-10-13 - Add `enabled` to turn off error tracking in an environment, such as test ([@kulturbande](https://github.com/fractaledmind/solid_errors/pull/96)) diff --git a/app/views/solid_errors/error_mailer/error_occurred.html.erb b/app/views/solid_errors/error_mailer/error_occurred.html.erb index 5d2bdf1..5ea5a79 100644 --- a/app/views/solid_errors/error_mailer/error_occurred.html.erb +++ b/app/views/solid_errors/error_mailer/error_occurred.html.erb @@ -1,7 +1,6 @@ Solid Errors | <%= @error.severity_emoji %> <%= @error.exception_class %> - <%= render "layouts/solid_errors/style" %>