[PR #998] [MERGED] Fixing bad width in 2FA email template #2713

Closed
opened 2025-11-07 07:52:58 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/998
Author: @frdescam
Created: 5/18/2020
Status: Merged
Merged: 5/23/2020
Merged by: @dani-garcia

Base: masterHead: fix_email_templates


📝 Commits (2)

  • 8f4a1f4 fixing bad width in 2FA email template
  • afaebc6 fixing hard coded width email templates

📊 Changes

13 files changed (+16 additions, -16 deletions)

View changed files

📝 src/static/templates/email/change_email.html.hbs (+1 -1)
📝 src/static/templates/email/delete_account.html.hbs (+1 -1)
📝 src/static/templates/email/invite_accepted.html.hbs (+1 -1)
📝 src/static/templates/email/invite_confirmed.html.hbs (+1 -1)
📝 src/static/templates/email/new_device_logged_in.html.hbs (+1 -1)
📝 src/static/templates/email/pw_hint_none.html.hbs (+1 -1)
📝 src/static/templates/email/pw_hint_some.html.hbs (+1 -1)
📝 src/static/templates/email/send_org_invite.html.hbs (+1 -1)
📝 src/static/templates/email/smtp_test.html.hbs (+1 -1)
📝 src/static/templates/email/twofactor_email.html.hbs (+4 -4)
📝 src/static/templates/email/verify_email.html.hbs (+1 -1)
📝 src/static/templates/email/welcome.html.hbs (+1 -1)
📝 src/static/templates/email/welcome_must_verify.html.hbs (+1 -1)

📄 Description

On mobile apps (tested with protonmail and K-9 mail) the 2FA email was shifted to the left because of some width style of 600px that was good for other emails but not for this one, this one needed a width of 410px :
before :
Screenshot_20200518-134242_ProtonMail
after :
Screenshot_20200518-134215_ProtonMail
before :
Screenshot_20200518-134319_Mail
after :
Screenshot_20200518-134309_Mail

Nothing has changed for webmails but of course I haven't tested every mailclient


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/998 **Author:** [@frdescam](https://github.com/frdescam) **Created:** 5/18/2020 **Status:** ✅ Merged **Merged:** 5/23/2020 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `master` ← **Head:** `fix_email_templates` --- ### 📝 Commits (2) - [`8f4a1f4`](https://github.com/dani-garcia/vaultwarden/commit/8f4a1f4fc2c205c4942ea9ecf13890bf4f48f209) fixing bad width in 2FA email template - [`afaebc6`](https://github.com/dani-garcia/vaultwarden/commit/afaebc6cf359fb77c65bdf80ec07bfa4573709d4) fixing hard coded width email templates ### 📊 Changes **13 files changed** (+16 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `src/static/templates/email/change_email.html.hbs` (+1 -1) 📝 `src/static/templates/email/delete_account.html.hbs` (+1 -1) 📝 `src/static/templates/email/invite_accepted.html.hbs` (+1 -1) 📝 `src/static/templates/email/invite_confirmed.html.hbs` (+1 -1) 📝 `src/static/templates/email/new_device_logged_in.html.hbs` (+1 -1) 📝 `src/static/templates/email/pw_hint_none.html.hbs` (+1 -1) 📝 `src/static/templates/email/pw_hint_some.html.hbs` (+1 -1) 📝 `src/static/templates/email/send_org_invite.html.hbs` (+1 -1) 📝 `src/static/templates/email/smtp_test.html.hbs` (+1 -1) 📝 `src/static/templates/email/twofactor_email.html.hbs` (+4 -4) 📝 `src/static/templates/email/verify_email.html.hbs` (+1 -1) 📝 `src/static/templates/email/welcome.html.hbs` (+1 -1) 📝 `src/static/templates/email/welcome_must_verify.html.hbs` (+1 -1) </details> ### 📄 Description On mobile apps (tested with protonmail and K-9 mail) the 2FA email was shifted to the left because of some width style of 600px that was good for other emails but not for this one, this one needed a width of 410px : before : ![Screenshot_20200518-134242_ProtonMail](https://user-images.githubusercontent.com/58341994/82210108-b7c5b200-990e-11ea-971a-2e013971c666.png) after : ![Screenshot_20200518-134215_ProtonMail](https://user-images.githubusercontent.com/58341994/82210149-c7dd9180-990e-11ea-8ac2-f10caa0023d9.png) before : ![Screenshot_20200518-134319_Mail](https://user-images.githubusercontent.com/58341994/82210189-d9bf3480-990e-11ea-9765-3ce33a56aac2.png) after : ![Screenshot_20200518-134309_Mail](https://user-images.githubusercontent.com/58341994/82210216-e6438d00-990e-11ea-8e43-32fa3a8d74dd.png) Nothing has changed for webmails but of course I haven't tested every mailclient --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-07 07:52:58 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#2713