Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Improve rendered email line heights

Tim Wilson5f0eb0ec4b6c
diff --git a/apps/web/lib/api/workflows/render-campaign-email-html.ts b/apps/web/lib/api/workflows/render-campaign-email-html.ts
index cee5ebbe9f..860104ff0f 100644
--- a/apps/web/lib/api/workflows/render-campaign-email-html.ts
+++ b/apps/web/lib/api/workflows/render-campaign-email-html.ts
@@ -63,7 +63,7 @@ export function renderCampaignEmailHTML({
)
.replace(
/<li([^>]*)>/g,
- '<li$1 style="margin-left: 0; padding-left: 4px; margin-top: 0px; margin-bottom: 0px; line-height:1;">',
+ '<li$1 style="margin-left: 0; padding-left: 4px; margin-top: 0px; margin-bottom: 0px;">',
);
return interpolateEmailTemplate({
diff --git a/packages/email/src/templates/campaign-email.tsx b/packages/email/src/templates/campaign-email.tsx
index 741ab5ab3f..e45068494c 100644
--- a/packages/email/src/templates/campaign-email.tsx
+++ b/packages/email/src/templates/campaign-email.tsx
@@ -76,7 +76,7 @@ export default function CampaignEmail({
<Section>
<div
- style={{ fontSize: "14px" }}
+ style={{ fontSize: "14px", lineHeight: 1.7142857 }}
dangerouslySetInnerHTML={{ __html: styledHtml }}
/>
</Section>