Skip to content

Commit 143ea40

Browse files
committed
fix(landing): fit account links in narrow mobile menus
Size the account pill segments around their labels and reduce minimum horizontal padding so Start building stays inside its segment on narrow screens.
1 parent a372f33 commit 143ea40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/app/(landing)/components/navbar/components/navbar-auth-pill/navbar-auth-pill.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function NavbarAuthPill({ size = 'compact', className, onNavigate }: Navb
2929
href={LOGIN_HREF}
3030
prefetch={false}
3131
onClick={onNavigate}
32-
className={cn(SEGMENT_CLASSES, 'rounded-l-full', compact ? 'px-3' : 'flex-1 px-4')}
32+
className={cn(SEGMENT_CLASSES, 'rounded-l-full', compact ? 'px-3' : 'flex-auto px-2')}
3333
>
3434
Log in
3535
</Link>
@@ -41,7 +41,7 @@ export function NavbarAuthPill({ size = 'compact', className, onNavigate }: Navb
4141
href={SIGNUP_HREF}
4242
prefetch={false}
4343
onClick={onNavigate}
44-
className={cn(SEGMENT_CLASSES, 'rounded-r-full', compact ? 'px-3' : 'flex-1 px-4')}
44+
className={cn(SEGMENT_CLASSES, 'rounded-r-full', compact ? 'px-3' : 'flex-auto px-2')}
4545
>
4646
Start building
4747
</Link>

0 commit comments

Comments
 (0)