The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Refactor webhook card and header components for improved URL display
Kiran K62ac3765ae00
diff --git a/apps/web/ui/webhooks/webhook-card.tsx b/apps/web/ui/webhooks/webhook-card.tsxindex 3f41e7a4a8..3e5798494e 100644--- a/apps/web/ui/webhooks/webhook-card.tsx+++ b/apps/web/ui/webhooks/webhook-card.tsx@@ -13,17 +13,15 @@ export default function WebhookCard(webhook: WebhookProps) {className="hover:drop-shadow-card-hover relative rounded-xl border border-gray-200 bg-white px-5 py-4 transition-[filter]"><div className="flex items-center gap-x-3">- <div className="rounded-md border border-gray-200 bg-gradient-to-t from-gray-100 p-2.5">+ <div className="flex-shrink-0 rounded-md border border-gray-200 bg-gradient-to-t from-gray-100 p-2.5"><TokenAvatar id={webhook.name} className="size-6" /></div>- <div>+ <div className="overflow-hidden"><div className="flex items-center gap-1"><span className="font-semibold text-gray-700">{webhook.name}</span><WebhookStatus webhook={webhook} /></div>- <div className="flex items-center gap-1 text-sm text-gray-500">- {webhook.url}- </div>+ <div className="truncate text-sm text-gray-500">{webhook.url}</div></div></div></Link>diff --git a/apps/web/ui/webhooks/webhook-header.tsx b/apps/web/ui/webhooks/webhook-header.tsxindex ead8a24267..42140e023a 100644--- a/apps/web/ui/webhooks/webhook-header.tsx+++ b/apps/web/ui/webhooks/webhook-header.tsx@@ -115,12 +115,12 @@ export default function WebhookHeader({ webhookId }: { webhookId: string }) {<WebhookStatus webhook={webhook} /></div><a- href={webhook.url}- target="_blank"- className="text-pretty text-sm text-gray-500 underline-offset-4 hover:text-gray-700 hover:underline"- >- {webhook.url}- </a>+ href={webhook.url}+ target="_blank"+ className="text-pretty text-sm text-gray-500 underline-offset-4 hover:text-gray-700 hover:underline break-all"+ >+ {webhook.url}+ </a></div></div>)}