ResearchEquals.com icon indicating copy to clipboard operation
ResearchEquals.com copied to clipboard

Fix the Postmark template for the sign-up/verification emails

Open nsunami opened this issue 2 years ago • 3 comments

Currently, the layout of the sign-up/verification emails is overflowing horizontally, as shown in the screenshots below.

This issue happened in viewing the email in:

  1. Apple Mail Version 16.0 (3696.120.41.1.1)
  2. Proton mail online app (mail.proton.me)

A fix would be to update the template of the Postmark. But, I'm not sure the best place to store it (Would it be best to store a template in this repo? If so, can we use that template in the Postmark API?)

Screenshots

Sign-up

image

Change email

image

Forgot password

image

Originally posted by @nsunami in https://github.com/libscie/ResearchEquals.com/pull/643#pullrequestreview-1087082545

nsunami avatar Aug 26 '22 14:08 nsunami

The problem is that in the "action_url" stretches out because it does not have a breaking character.

Currently:

HTML:

      <p class="sub">If you’re having trouble with the button above, copy and paste the URL below into your web browser.</p>
      <p class="sub">{{action_url}}</p>

CSS:

    p.sub {
      font-size: 13px;
    }

We may need to do two things:

  1. Use overflow-wrap: break-word; to the tag that's wrapping the action_url
  2. Fix the width of the element

Perhaps something like:

<p style="width: 384px; overflow-wrap: break-word;">{{action_url}}</p>

nsunami avatar Sep 06 '22 14:09 nsunami

@chartgerink Assigning you here since I don't have access to Postmark 🙏

nsunami avatar Sep 21 '22 15:09 nsunami

This issue is stale because it has been open 60 days with no activity.

github-actions[bot] avatar Nov 21 '22 00:11 github-actions[bot]

Seems to work!

image

Closing as this is now fixed. Also fixed this in password reset.

chartgerink avatar Dec 20 '22 14:12 chartgerink