Skip to content

Commit

Permalink
Email templates – Fallback to sans-serif, reduce horizontal padding (#…
Browse files Browse the repository at this point in the history
…3292)

* Use sans-serif fallback for email templates

* Reduce horizontal padding, update import for test script
  • Loading branch information
lmcnulty authored Dec 18, 2024
1 parent d751272 commit ef1846d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions site/gatsby-site/server/emails/templates/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const insertContent= (content: string, variables: any): string => {
AI INCIDENT DATABASE
</div>
</div>
<div style="padding: 32px;">
<div style="padding: 32px 8px;">
${content}
</div>
</div>
Expand All @@ -47,7 +47,7 @@ const insertContent= (content: string, variables: any): string => {
// These styles will be used across multiple email templates,
// so they get defined outside the getTemplate function.
const bodyStyle: string = ignoreWhitespace(`
font-family: karla;
font-family: karla, sans-serif;
padding: 16px;
`);

Expand Down
2 changes: 1 addition & 1 deletion site/gatsby-site/src/scripts/sendEmailTest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sendEmail } from '../../server/fields/common.ts';
import { sendEmail } from '../../server/emails';

// from site/gatsby-site, run with
// TEST_EMAIL_TO_ADDRESS=<address> dotenv run <path to>/npx ts-node src/scripts/sendEmailTest.js
Expand Down

0 comments on commit ef1846d

Please sign in to comment.