Repository navigation
Leave the dashboard stylesheet out of the error email - #110
Merged
fractaledmind merged 1 commit intoOct 16, 2026
Merged
Conversation
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.
namolnad
force-pushed
the
mail-without-console-stylesheet
branch
from
October 13, 2026 16:08
54a09ae to
a4fb80e
Compare
namolnad
marked this pull request as ready for review
October 13, 2026 16:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The error email renders
layouts/solid_errors/style, the dashboard's full Tailwind build, into its<head>. The email doesn't use it: since #94 it styles itself with its own inline<style>block, and none of its classes (email-header,error-message,backtrace,context-table, …) are in the Tailwind build.The stylesheet is about 21KB in every error email. Gmail clips a message past about 102KB, so with a long backtrace and context it pushes the part people actually need (the backtrace, at the bottom) behind "View entire message".
This drops the one line and adds a mailer test that the HTML part doesn't include the stylesheet.
The only thing the build still did in the email was Tailwind's preflight reset of bare elements. The email's own block sets what it relies on, and we've sent it this way in production since early October without a visible difference.