authorgravatar for adam.bogucki2018@gmail.comAdamulek123 <adam.bogucki2018@gmail.com> 2026-09-08 01:52:16+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-07 20:52:16-03:00
logd67157a09c28883d7856d03d2b1d3aecdbf1b890
tree3341f6f35fcb0282d8ddeeaa7d34f52a1cf8c63a
parentea2983afbbcd5ad6ee2e7db80c2a9270ff4964a9
signature Signed by PGP key B5690EEEBB952194

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


2 files changed, 5 insertions(+), 3 deletions(-)

apps/web/src/components/BranchToolbarBranchSelector.tsx+3-1
......@@ -774,7 +774,9 @@ export function BranchToolbarBranchSelector({
774774 >
775775 <ComboboxTrigger
776776 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"
778780 disabled={isInitialBranchesLoadPending || isBranchActionPending}
779781 >
780782 <GitBranchIcon className="size-3 shrink-0 opacity-70" />
apps/web/src/components/ui/combobox.tsx+2-2
......@@ -175,8 +175,8 @@ function ComboboxPopup({
175175 side?: ComboboxPrimitive.Positioner.Props["side"];
176176 anchor?: ComboboxPrimitive.Positioner.Props["anchor"];
177177}) {
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);
180180
181181 return (
182182 <ComboboxPrimitive.Portal>