@devries-cameron20 / t3code-1 / commits / d67157a09c
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): keep ref picker steady when opening (#9472)

Adamulek123 committed Sep 8, 2026 at 01:52 UTC d67157a09c28883d7856d03d2b1d3aecdbf1b890
2 files changed +5 -3
apps/web/src/components/BranchToolbarBranchSelector.tsx
+3 -1
@@ -774,7 +774,9 @@ export function BranchToolbarBranchSelector({
774 >
775 <ComboboxTrigger
776 render={<Button variant="ghost" size="xs" />}
777 - className="min-w-0 max-w-full font-normal text-muted-foreground/70 text-xs! hover:text-foreground/80"
777 + // No press-scale: the popup aligns live to this trigger, so a
778 + // momentary 0.97 shrink would drag the open popup ~3px sideways.
779 + className="min-w-0 max-w-full font-normal text-muted-foreground/70 text-xs! hover:text-foreground/80 active:scale-100"
780 disabled={isInitialBranchesLoadPending || isBranchActionPending}
781 >
782 <GitBranchIcon className="size-3 shrink-0 opacity-70" />
apps/web/src/components/ui/combobox.tsx
+2 -2
@@ -175,8 +175,8 @@ function ComboboxPopup({
175 side?: ComboboxPrimitive.Positioner.Props["side"];
176 anchor?: ComboboxPrimitive.Positioner.Props["anchor"];
177 }) {
178 - const { chipsRef } = React.use(ComboboxContext);
179 - const anchor = anchorProp ?? chipsRef;
178 + const { chipsRef, multiple } = React.use(ComboboxContext);
179 + const anchor = anchorProp ?? (multiple ? chipsRef : undefined);
180
181 return (
182 <ComboboxPrimitive.Portal>