diff --git a/apps/server/src/modules/auth/mailer/mail.service.ts b/apps/server/src/modules/auth/mailer/mail.service.ts index c1b4acd37c..a2b84a5990 100644 --- a/apps/server/src/modules/auth/mailer/mail.service.ts +++ b/apps/server/src/modules/auth/mailer/mail.service.ts @@ -46,7 +46,7 @@ export class MailService { const buttonUrl = `${this.config.origin}/invite/${inviteId}`; const workspaceAvatar = invitationInfo.workspace.avatar; - const content = `${ + const content = `
${ invitationInfo.user.avatar ? `` : '' } - ${ + ${ invitationInfo.user.name } invited you to join @@ -66,11 +66,11 @@ export class MailService { alt="" width="24px" height="24px" - style="width:24px; height:24px; margin-left:10px;border-radius: 12px;object-fit: cover;vertical-align: middle" + style="width:24px; height:24px; margin-left:4px;border-radius: 12px;object-fit: cover;vertical-align: middle" /> - ${ + ${ invitationInfo.workspace.name - }`; + }
Click button to join this workspace
`; const subContent = 'Currently, AFFiNE Cloud is in the early access stage. Only Early Access Sponsors can register and log in to AFFiNE Cloud. Please click here for more information.'; diff --git a/apps/server/src/modules/auth/mailer/template.ts b/apps/server/src/modules/auth/mailer/template.ts index e911f88bd4..4f68364560 100644 --- a/apps/server/src/modules/auth/mailer/template.ts +++ b/apps/server/src/modules/auth/mailer/template.ts @@ -80,7 +80,7 @@ export const emailTemplate = ({ text-decoration: none; border-radius: 8px; padding: 8px 18px; - border: 1px solid #1e96eb; + border: 1px solid rgba(0,0,0,.1); display: inline-block; font-weight: bold; "