The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix PartnerLinkCard max-width
Steven Teydd85ceb08d4f
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/links/partner-link-card.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/links/partner-link-card.tsxindex 82ca1abdc9..c227f78b7e 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/links/partner-link-card.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/links/partner-link-card.tsx@@ -144,13 +144,15 @@ export function PartnerLinkCard({ link }: { link: PartnerProfileLinkProps }) {</span>{link.comments && <CommentsBadge comments={link.comments} />}</div>- <div className="group/desturl flex w-fit items-center gap-1 py-0 pl-1 pr-1.5 transition-colors duration-150 hover:rounded-lg hover:bg-neutral-100">+ {/* The max width implementation here is a bit hacky, we should improve in the future */}+ <div className="group/desturl flex max-w-[100px] items-center gap-1 py-0 pl-1 pr-1.5 transition-colors duration-150 hover:rounded-lg hover:bg-neutral-100 sm:w-fit sm:max-w-[400px]"><ArrowTurnRight2 className="h-3 w-3 shrink-0 text-neutral-400" /><ahref={link.url}target="_blank"rel="noopener noreferrer"className="truncate text-sm text-neutral-500 transition-colors hover:text-neutral-700"+ title={getPrettyUrl(link.url)}>{getPrettyUrl(link.url)}</a>