From 4abb407b5c0988abb908ceb82a0a4a6c008708a4 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Tue, 29 Aug 2023 23:27:20 +0800 Subject: [PATCH] fix: adjust email template font-family (#4015) --- apps/server/src/modules/auth/mailer/template.ts | 10 +++++----- apps/server/src/modules/auth/next-auth-options.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/server/src/modules/auth/mailer/template.ts b/apps/server/src/modules/auth/mailer/template.ts index 115ac2ff70..3d79c96ade 100644 --- a/apps/server/src/modules/auth/mailer/template.ts +++ b/apps/server/src/modules/auth/mailer/template.ts @@ -39,7 +39,7 @@ export const emailTemplate = ({ font-size: 20px; font-weight: 600; line-height: 28px; - font-family: Inter; + font-family: inter, Arial, Helvetica, sans-serif; color: #444; padding-top: 0; " @@ -51,7 +51,7 @@ export const emailTemplate = ({ font-size: 15px; font-weight: 400; line-height: 24px; - font-family: Inter; + font-family: inter, Arial, Helvetica, sans-serif; color: #444; padding-top: 0; " @@ -67,7 +67,7 @@ export const emailTemplate = ({ target="_blank" style=" font-size: 15px; - font-family: Inter; + font-family: inter, Arial, Helvetica, sans-serif; font-weight: 600; line-height: 24px; color: #fff; @@ -163,7 +163,7 @@ export const emailTemplate = ({ font-size: 12px; font-weight: 400; line-height: 20px; - font-family: Inter; + font-family: inter, Arial, Helvetica, sans-serif; color: #8e8d91; padding-top: 8px; " @@ -177,7 +177,7 @@ export const emailTemplate = ({ font-size: 12px; font-weight: 400; line-height: 20px; - font-family: Inter; + font-family: inter, Arial, Helvetica, sans-serif; color: #8e8d91; padding-top: 8px; " diff --git a/apps/server/src/modules/auth/next-auth-options.ts b/apps/server/src/modules/auth/next-auth-options.ts index 2729aa2cff..07c03d3d47 100644 --- a/apps/server/src/modules/auth/next-auth-options.ts +++ b/apps/server/src/modules/auth/next-auth-options.ts @@ -335,7 +335,7 @@ function html(params: { url: string; host: string }) { font-size: 20px; font-weight: 600; line-height: 28px; - font-family: Inter; + font-family: inter, Arial, Helvetica, sans-serif; color: #444; padding-top: 0; " @@ -349,7 +349,7 @@ function html(params: { url: string; host: string }) { font-size: 15px; font-weight: 400; line-height: 24px; - font-family: Inter; + font-family: inter, Arial, Helvetica, sans-serif; color: #444; padding-top: 0; " @@ -369,7 +369,7 @@ function html(params: { url: string; host: string }) { target="_blank" style=" font-size: 15px; - font-family: Inter; + font-family: inter, Arial, Helvetica, sans-serif; font-weight: 600; line-height: 24px; color: #fff; @@ -463,7 +463,7 @@ function html(params: { url: string; host: string }) { font-size: 12px; font-weight: 400; line-height: 20px; - font-family: Inter; + font-family: inter, Arial, Helvetica, sans-serif; color: #8e8d91; padding-top: 8px; " @@ -477,7 +477,7 @@ function html(params: { url: string; host: string }) { font-size: 12px; font-weight: 400; line-height: 20px; - font-family: Inter; + font-family: inter, Arial, Helvetica, sans-serif; color: #8e8d91; padding-top: 8px; "