Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Truncate hero announcement text to one line (#3131)

Luke Vella4c014bd284b5
diff --git a/apps/landing/src/components/home/hero.tsx b/apps/landing/src/components/home/hero.tsx
index f54562e9c..d25d5470f 100644
--- a/apps/landing/src/components/home/hero.tsx
+++ b/apps/landing/src/components/home/hero.tsx
@@ -16,14 +16,14 @@ export function HeroAnnouncement({
<Link
href={href}
prefetch={false}
- className="group -ml-1 inline-flex items-center gap-x-2 rounded-full bg-gray-200/50 p-1 pr-3 text-sm transition-all hover:bg-gray-200"
+ className="group -ml-1 inline-flex max-w-full items-center gap-x-2 rounded-full bg-gray-200/50 p-1 pr-3 text-sm transition-all hover:bg-gray-200"
>
- <Badge variant="primary" className="rounded-full">
+ <Badge variant="primary" className="shrink-0 rounded-full">
{badge}
</Badge>
- <span className="flex items-center gap-x-1">{children}</span>
+ <span className="min-w-0 truncate">{children}</span>
<ArrowRightIcon
- className="size-3 text-gray-500 transition-transform group-hover:translate-x-0.5 group-active:translate-x-0.5"
+ className="size-3 shrink-0 text-gray-500 transition-transform group-hover:translate-x-0.5 group-active:translate-x-0.5"
aria-hidden="true"
/>
</Link>