Skip to content

Commit 9dac7e7

Browse files
fix: prevent navigation buttons from wrapping on smaller screens (#9721)
Co-authored-by: Roo Code <[email protected]>
1 parent ad28e12 commit 9dac7e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/web-roo-code/src/components/chromes/nav-bar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,21 +93,21 @@ export function NavBar({ stars, downloads }: NavBarProps) {
9393
</div>
9494
</nav>
9595

96-
<div className="hidden md:flex md:items-center md:space-x-4">
97-
<div className="flex flex-row space-x-2">
96+
<div className="hidden md:flex md:items-center md:space-x-4 flex-shrink-0">
97+
<div className="flex flex-row space-x-2 flex-shrink-0">
9898
<ThemeToggle />
9999
<Link
100100
href={EXTERNAL_LINKS.GITHUB}
101101
target="_blank"
102-
className="hidden items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground md:flex">
102+
className="hidden items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground md:flex whitespace-nowrap">
103103
<RxGithubLogo className="h-4 w-4" />
104104
{stars !== null && <span>{stars}</span>}
105105
</Link>
106106
</div>
107107
<Link
108108
href={EXTERNAL_LINKS.MARKETPLACE}
109109
target="_blank"
110-
className="hidden items-center gap-1.5 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-all duration-200 hover:shadow-lg hover:scale-105 md:flex">
110+
className="hidden items-center gap-1.5 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-all duration-200 hover:shadow-lg hover:scale-105 md:flex whitespace-nowrap">
111111
<VscVscode className="-mr-[2px] mt-[1px] h-4 w-4" />
112112
<span>
113113
Install <span className="font-black max-lg:text-xs">&middot;</span>
@@ -118,7 +118,7 @@ export function NavBar({ stars, downloads }: NavBarProps) {
118118
href={EXTERNAL_LINKS.CLOUD_APP_LOGIN}
119119
target="_blank"
120120
rel="noopener noreferrer"
121-
className="hidden items-center gap-1.5 rounded-md py-2 text-sm border border-primary-background px-4 font-medium text-primary-background transition-all duration-200 hover:shadow-lg hover:scale-105 md:flex">
121+
className="hidden items-center gap-1.5 rounded-md py-2 text-sm border border-primary-background px-4 font-medium text-primary-background transition-all duration-200 hover:shadow-lg hover:scale-105 md:flex whitespace-nowrap">
122122
<Cloud className="inline h-4 w-4" />
123123
Log in
124124
</a>

0 commit comments

Comments
 (0)