Skip to content

Commit efc89eb

Browse files
fix(web): Fix search bar not taking full width in TopBar
The right section of the TopBar had flex-1 unconditionally, splitting the bar into two equal halves. The SearchBar could only fill the left 50%, leaving a large empty gap. Now the right section uses shrink-0 when no centerContent is present, letting the SearchBar fill the remaining width. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4b4fe1b commit efc89eb

File tree

1 file changed

+2
-1
lines changed
  • packages/web/src/app/[domain]/components

1 file changed

+2
-1
lines changed

packages/web/src/app/[domain]/components/topBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { LogIn } from "lucide-react";
1212
import { useRouter } from "next/navigation";
1313
import { AppearanceDropdownMenu } from "./appearanceDropdownMenu";
1414
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
15+
import { cn } from "@/lib/utils";
1516

1617
interface TopBarProps {
1718
domain: string;
@@ -58,7 +59,7 @@ export const TopBar = ({
5859
{centerContent}
5960
</div>
6061
)}
61-
<div className="flex-1 flex flex-row justify-end items-center gap-2">
62+
<div className={cn("flex flex-row justify-end items-center gap-2", centerContent ? "flex-1" : "shrink-0")}>
6263
{actions}
6364
{session ? (
6465
<MeControlDropdownMenu

0 commit comments

Comments
 (0)