The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix: prevent horizontal overflow on long URLs in messages
Cursor Agent37353a67b6c5
diff --git a/apps/web/ui/messages/message-markdown.tsx b/apps/web/ui/messages/message-markdown.tsxindex c8cfe9237e..b17c47cf1d 100644--- a/apps/web/ui/messages/message-markdown.tsx+++ b/apps/web/ui/messages/message-markdown.tsx@@ -17,7 +17,7 @@ export function MessageMarkdown({return (<ReactMarkdownclassName={cn(- "prose prose-sm prose-neutral max-w-none transition-all",+ "prose prose-sm prose-neutral max-w-none break-words transition-all [overflow-wrap:anywhere]","prose-headings:font-semibold prose-headings:border-b prose-headings:pb-2","prose-h1:text-2xl prose-h1:font-bold prose-h1:mt-8 prose-h1:mb-4","prose-h2:text-xl prose-h2:font-semibold prose-h2:mt-6 prose-h2:mb-3",diff --git a/apps/web/ui/messages/messages-panel.tsx b/apps/web/ui/messages/messages-panel.tsxindex 5eb3b19c4a..71cd328949 100644--- a/apps/web/ui/messages/messages-panel.tsx+++ b/apps/web/ui/messages/messages-panel.tsx@@ -250,7 +250,7 @@ export function MessagesPanel({{message.text && (<divclassName={cn(- "max-w-[min(100%,512px)] rounded-xl px-4 py-2.5 text-sm",+ "min-w-0 max-w-[min(100%,512px)] rounded-xl px-4 py-2.5 text-sm",isMySide? "rounded-br bg-neutral-700": "rounded-bl bg-neutral-100",@@ -493,7 +493,7 @@ function CampaignMessage({<divclassName={cn(- "max-w-[min(100%,512px)] rounded-xl text-sm",+ "min-w-0 max-w-[min(100%,512px)] rounded-xl text-sm",isMySide? "text-content-inverted rounded-br bg-neutral-700": "text-content-default rounded-bl bg-neutral-100",