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.

add pre-wrap to email notifications

Steven Tey24ff293b9d86
diff --git a/packages/email/src/templates/new-bounty-available.tsx b/packages/email/src/templates/new-bounty-available.tsx
index 087848af5c..014bbf94e1 100644
--- a/packages/email/src/templates/new-bounty-available.tsx
+++ b/packages/email/src/templates/new-bounty-available.tsx
@@ -77,7 +77,10 @@ export default function NewBountyAvailable({
<Text className="m-0 p-0 text-sm font-semibold text-neutral-900">
Details
</Text>
- <Text className="m-0 mt-2 p-0 text-sm font-medium text-neutral-500">
+ <Text
+ className="m-0 mt-2 p-0 text-sm font-medium text-neutral-500"
+ style={{ whiteSpace: "pre-wrap" }}
+ >
{bounty.description}
</Text>
</Section>
diff --git a/packages/email/src/templates/new-message-from-partner.tsx b/packages/email/src/templates/new-message-from-partner.tsx
index faa99c5ac9..4932916b93 100644
--- a/packages/email/src/templates/new-message-from-partner.tsx
+++ b/packages/email/src/templates/new-message-from-partner.tsx
@@ -84,7 +84,10 @@ export default function NewMessageFromPartner({
/>
</Column>
<Column className="w-full pl-2">
- <Text className="my-0 rounded-lg rounded-bl-none bg-neutral-100 px-4 py-2.5 text-sm leading-5 text-neutral-800">
+ <Text
+ className="my-0 rounded-lg rounded-bl-none bg-neutral-100 px-4 py-2.5 text-sm leading-5 text-neutral-800"
+ style={{ whiteSpace: "pre-wrap" }}
+ >
{message.text}
</Text>
</Column>
diff --git a/packages/email/src/templates/new-message-from-program.tsx b/packages/email/src/templates/new-message-from-program.tsx
index 1cc8f01186..5434b2a657 100644
--- a/packages/email/src/templates/new-message-from-program.tsx
+++ b/packages/email/src/templates/new-message-from-program.tsx
@@ -122,7 +122,10 @@ export default function NewMessageFromProgram({
minute: "numeric",
})}
</Text>
- <Text className="my-0 rounded-lg rounded-bl-none bg-neutral-100 px-4 py-2.5 text-sm leading-5 text-neutral-800">
+ <Text
+ className="my-0 rounded-lg rounded-bl-none bg-neutral-100 px-4 py-2.5 text-sm leading-5 text-neutral-800"
+ style={{ whiteSpace: "pre-wrap" }}
+ >
{message.text}
</Text>
</Column>