1
0
mirror of https://github.com/bitwarden/server synced 2026-02-18 10:23:27 +00:00

[PM-27882] Revert row bulletin changes for confirmation templates. (#7018)

This commit is contained in:
Jimmy Vo
2026-02-17 11:33:15 -05:00
committed by GitHub
parent 67f704d5d1
commit 072f6c57a8
6 changed files with 114 additions and 26 deletions

View File

@@ -87,12 +87,6 @@
.mj-bw-ac-icon-row-text-column {
width: 100% !important;
}
.mj-bw-ac-icon-row-bullet {
display: block !important;
}
.mj-bw-ac-icon-row-text-inline {
display: none !important;
}
}
</style>
@@ -356,8 +350,7 @@
<tr>
<td align="left" class="mj-bw-ac-icon-row-text" style="font-size:0px;padding:0px 0px 0px 0px;word-break:break-word;">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:left;color:#1B2029;"><ul class="mj-bw-ac-icon-row-bullet" style="display: none; margin: 0; padding-left: 24px;"><li>Your account is owned by {{OrganizationName}} and is subject to their security and management policies.</li></ul>
<span class="mj-bw-ac-icon-row-text-inline">Your account is owned by {{OrganizationName}} and is subject to their security and management policies.</span></div>
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:left;color:#1B2029;">Your account is owned by {{OrganizationName}} and is subject to their security and management policies.</div>
</td>
</tr>
@@ -431,8 +424,7 @@
<tr>
<td align="left" class="mj-bw-ac-icon-row-text" style="font-size:0px;padding:0px 0px 0px 0px;word-break:break-word;">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:left;color:#1B2029;"><ul class="mj-bw-ac-icon-row-bullet" style="display: none; margin: 0; padding-left: 24px;"><li>You can easily access and share passwords with your team.</li></ul>
<span class="mj-bw-ac-icon-row-text-inline">You can easily access and share passwords with your team.</span></div>
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:left;color:#1B2029;">You can easily access and share passwords with your team.</div>
</td>
</tr>

View File

@@ -91,12 +91,6 @@
.mj-bw-ac-icon-row-text-column {
width: 100% !important;
}
.mj-bw-ac-icon-row-bullet {
display: block !important;
}
.mj-bw-ac-icon-row-text-inline {
display: none !important;
}
}
</style>
@@ -364,8 +358,7 @@
<tr>
<td align="left" class="mj-bw-ac-icon-row-text" style="font-size:0px;padding:0px 0px 0px 0px;word-break:break-word;">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:left;color:#1B2029;"><ul class="mj-bw-ac-icon-row-bullet" style="display: none; margin: 0; padding-left: 24px;"><li>You can access passwords {{OrganizationName}} has shared with you.</li></ul>
<span class="mj-bw-ac-icon-row-text-inline">You can access passwords {{OrganizationName}} has shared with you.</span></div>
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:left;color:#1B2029;">You can access passwords {{OrganizationName}} has shared with you.</div>
</td>
</tr>
@@ -439,8 +432,7 @@
<tr>
<td align="left" class="mj-bw-ac-icon-row-text" style="font-size:0px;padding:0px 0px 0px 0px;word-break:break-word;">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:left;color:#1B2029;"><ul class="mj-bw-ac-icon-row-bullet" style="display: none; margin: 0; padding-left: 24px;"><li>You can easily share passwords with friends, family, or coworkers.</li></ul>
<span class="mj-bw-ac-icon-row-text-inline">You can easily share passwords with friends, family, or coworkers.</span></div>
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:left;color:#1B2029;">You can easily share passwords with friends, family, or coworkers.</div>
</td>
</tr>

View File

@@ -7,6 +7,7 @@
"emails/AdminConsole/components/mj-bw-inviter-info",
"emails/AdminConsole/components/mj-bw-ac-hero",
"emails/AdminConsole/components/mj-bw-ac-icon-row",
"emails/AdminConsole/components/mj-bw-ac-icon-row-without-bulletins",
"emails/AdminConsole/components/mj-bw-ac-learn-more-footer"
]
}

View File

@@ -26,12 +26,12 @@
</mj-text>
</mj-column>
</mj-section>
<mj-bw-ac-icon-row
<mj-bw-ac-icon-row-without-bulletins
icon-src="https://assets.bitwarden.com/email/v1/icon-enterprise.png"
icon-alt="Organization Icon"
text="Your account is owned by {{OrganizationName}} and is subject to their security and management policies."
/>
<mj-bw-ac-icon-row
<mj-bw-ac-icon-row-without-bulletins
icon-src="https://assets.bitwarden.com/email/v1/icon-account-switching-new.png"
icon-alt="Share Icon"
text="You can easily access and share passwords with your team."

View File

@@ -26,18 +26,18 @@
</mj-text>
</mj-column>
</mj-section>
<mj-bw-ac-icon-row
<mj-bw-ac-icon-row-without-bulletins
icon-src="https://assets.bitwarden.com/email/v1/icon-item-type.png"
icon-alt="Group Users Icon"
text="You can access passwords {{OrganizationName}} has shared with you.">
</mj-bw-ac-icon-row>
<mj-bw-ac-icon-row
</mj-bw-ac-icon-row-without-bulletins>
<mj-bw-ac-icon-row-without-bulletins
icon-src="https://assets.bitwarden.com/email/v1/icon-account-switching-new.png"
icon-alt="Share Icon"
text="You can easily share passwords with friends, family, or coworkers."
foot-url-text="Share passwords in Bitwarden"
foot-url="https://bitwarden.com/help/sharing">
</mj-bw-ac-icon-row>
</mj-bw-ac-icon-row-without-bulletins>
</mj-wrapper>
<!-- Download Mobile Apps Section -->

View File

@@ -0,0 +1,103 @@
const { BodyComponent } = require("mjml-core");
const BODY_TEXT_STYLES = `
font-family="'Helvetica Neue', Helvetica, Arial, sans-serif"
font-size="16px"
font-weight="400"
line-height="24px"
`;
class MjBwAcIconRowWithoutBulletins extends BodyComponent {
static dependencies = {
"mj-column": ["mj-bw-ac-icon-row-without-bulletins"],
"mj-wrapper": ["mj-bw-ac-icon-row-without-bulletins"],
"mj-bw-ac-icon-row-without-bulletins": [],
};
static allowedAttributes = {
"icon-src": "string",
"icon-alt": "string",
"head-url-text": "string",
"head-url": "string",
text: "string",
"foot-url-text": "string",
"foot-url": "string",
};
static defaultAttributes = {};
headStyle = (breakpoint) => {
return `
@media only screen and (max-width:${breakpoint}) {
.mj-bw-ac-icon-row-text {
padding-left: 15px !important;
padding-right: 15px !important;
line-height: 20px;
}
.mj-bw-ac-icon-row-icon {
display: none !important;
width: 0 !important;
max-width: 0 !important;
}
.mj-bw-ac-icon-row-text-column {
width: 100% !important;
}
}
`;
};
render() {
const headAnchorElement =
this.getAttribute("head-url-text") && this.getAttribute("head-url")
? `
<mj-text css-class="mj-bw-ac-icon-row-text" padding="5px 10px 0px 10px" ${BODY_TEXT_STYLES}>
<a href="${this.getAttribute("head-url")}" class="link">
${this.getAttribute("head-url-text")}
<span style="text-decoration: none">
<img src="https://assets.bitwarden.com/email/v1/bwi-external-link-16px.png"
alt="External Link Icon"
width="16px"
style="vertical-align: middle;"
/>
</span>
</a>
</mj-text>`
: "";
const footAnchorElement =
this.getAttribute("foot-url-text") && this.getAttribute("foot-url")
? `<mj-text css-class="mj-bw-ac-icon-row-text" padding="0px" ${BODY_TEXT_STYLES}>
<a href="${this.getAttribute("foot-url")}" class="link">
${this.getAttribute("foot-url-text")}
</a>
</mj-text>`
: "";
return this.renderMJML(
`
<mj-section background-color="#fff" padding="0px 10px 24px 10px">
<mj-group css-class="mj-bw-ac-icon-row">
<mj-column width="15%" vertical-align="middle" css-class="mj-bw-ac-icon-row-icon">
<mj-image
src="${this.getAttribute("icon-src")}"
alt="${this.getAttribute("icon-alt")}"
width="48px"
padding="0px 10px 0px 5px"
border-radius="8px"
/>
</mj-column>
<mj-column width="85%" vertical-align="middle" css-class="mj-bw-ac-icon-row-text-column">
${headAnchorElement}
<mj-text css-class="mj-bw-ac-icon-row-text" padding="0px 0px 0px 0px" ${BODY_TEXT_STYLES}>
${this.getAttribute("text")}
</mj-text>
${footAnchorElement}
</mj-column>
</mj-group>
</mj-section>
`,
);
}
}
module.exports = MjBwAcIconRowWithoutBulletins;