Skip to content

Commit 7ecb443

Browse files
t3dotggclaude
andcommitted
fix(web): let StaticChip callers extend its class list
Co-Authored-By: Claude Fable 5.1 <[email protected]>
1 parent cae2363 commit 7ecb443

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/web/src/components/BranchToolbarEnvironmentSelector.tsx‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { ServerUpdateAction, useServerUpdateTrigger } from "./ServerUpdateAction
88
import { useComposerMenuProps } from "./chat/composerEventScope";
99
import type { ServerUpdateAvailability } from "./serverUpdateAvailability";
1010
import { Tooltip, TooltipPopup, TooltipTrigger } from "./ui/tooltip";
11+
import { cn } from "~/lib/utils";
1112
import {
1213
Select,
1314
SelectGroup,
@@ -74,11 +75,14 @@ interface BranchToolbarEnvironmentSelectorProps {
7475
* a fixed strip height, so a shorter label would drag the seam out of line
7576
* whenever this label is the only thing in the strip.
7677
*/
77-
function StaticChip(props: ComponentProps<"span">) {
78+
function StaticChip({ className, ...props }: ComponentProps<"span">) {
7879
return (
7980
<span
8081
{...props}
81-
className="inline-flex h-7 min-w-0 max-w-full items-center gap-1 border border-transparent px-[calc(--spacing(2)-1px)] font-normal text-muted-foreground/70 text-xs sm:h-6"
82+
className={cn(
83+
"inline-flex h-7 min-w-0 max-w-full items-center gap-1 border border-transparent px-[calc(--spacing(2)-1px)] font-normal text-muted-foreground/70 text-xs sm:h-6",
84+
className,
85+
)}
8286
/>
8387
);
8488
}

0 commit comments

Comments
 (0)