fix: incorrect invitation email style (#4269)
This commit is contained in:
@@ -46,7 +46,7 @@ export class MailService {
|
|||||||
const buttonUrl = `${this.config.origin}/invite/${inviteId}`;
|
const buttonUrl = `${this.config.origin}/invite/${inviteId}`;
|
||||||
const workspaceAvatar = invitationInfo.workspace.avatar;
|
const workspaceAvatar = invitationInfo.workspace.avatar;
|
||||||
|
|
||||||
const content = `${
|
const content = `<p style="margin:0">${
|
||||||
invitationInfo.user.avatar
|
invitationInfo.user.avatar
|
||||||
? `<img
|
? `<img
|
||||||
src="${invitationInfo.user.avatar}"
|
src="${invitationInfo.user.avatar}"
|
||||||
@@ -57,7 +57,7 @@ export class MailService {
|
|||||||
/>`
|
/>`
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
<span style="font-weight:500;margin-left:4px;margin-right: 10px;">${
|
<span style="font-weight:500;margin-right: 4px;">${
|
||||||
invitationInfo.user.name
|
invitationInfo.user.name
|
||||||
}</span>
|
}</span>
|
||||||
<span>invited you to join</span>
|
<span>invited you to join</span>
|
||||||
@@ -66,11 +66,11 @@ export class MailService {
|
|||||||
alt=""
|
alt=""
|
||||||
width="24px"
|
width="24px"
|
||||||
height="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"
|
||||||
/>
|
/>
|
||||||
<span style="font-weight:500;margin-left:4px;margin-right: 10px;">${
|
<span style="font-weight:500;margin-right: 4px;">${
|
||||||
invitationInfo.workspace.name
|
invitationInfo.workspace.name
|
||||||
}</span>`;
|
}</span></p><p style="margin-top:8px;margin-bottom:0;">Click button to join this workspace</p>`;
|
||||||
|
|
||||||
const subContent =
|
const subContent =
|
||||||
'Currently, AFFiNE Cloud is in the early access stage. Only Early Access Sponsors can register and log in to AFFiNE Cloud. <a href="https://community.affine.pro/c/insider-general/" style="color: #1e67af" >Please click here for more information.</a>';
|
'Currently, AFFiNE Cloud is in the early access stage. Only Early Access Sponsors can register and log in to AFFiNE Cloud. <a href="https://community.affine.pro/c/insider-general/" style="color: #1e67af" >Please click here for more information.</a>';
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export const emailTemplate = ({
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 8px 18px;
|
padding: 8px 18px;
|
||||||
border: 1px solid #1e96eb;
|
border: 1px solid rgba(0,0,0,.1);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user