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.

truncate twitter og image preview title

Steven Teyc25cc2a98cd4
diff --git a/apps/web/ui/modals/add-edit-link-modal/preview.tsx b/apps/web/ui/modals/add-edit-link-modal/preview.tsx
index a9a58f30d0..9780a8b678 100644
--- a/apps/web/ui/modals/add-edit-link-modal/preview.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/preview.tsx
@@ -85,7 +85,9 @@ export default function Preview({
{previewImage}
{title && (
<div className="absolute bottom-2 left-2 rounded-md bg-[#414142] py-px px-1.5">
- <h3 className="truncate text-sm text-white">{title}</h3>
+ <h3 className="max-w-sm truncate text-sm text-white">
+ {title}
+ </h3>
</div>
)}
</div>