| author | |
| committer | |
| log | d67157a09c28883d7856d03d2b1d3aecdbf1b890 |
| tree | 3341f6f35fcb0282d8ddeeaa7d34f52a1cf8c63a |
| parent | ea2983afbbcd5ad6ee2e7db80c2a9270ff4964a9 |
| signature | Signed by PGP key B5690EEEBB952194 |
2 files changed, 5 insertions(+), 3 deletions(-)
apps/web/src/components/BranchToolbarBranchSelector.tsx+3-1| ... | ... | @@ -774,7 +774,9 @@ export function BranchToolbarBranchSelector({ |
| 774 | 774 | > |
| 775 | 775 | <ComboboxTrigger |
| 776 | 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" | |
| 778 | 780 | disabled={isInitialBranchesLoadPending || isBranchActionPending} |
| 779 | 781 | > |
| 780 | 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 | 175 | side?: ComboboxPrimitive.Positioner.Props["side"]; |
| 176 | 176 | anchor?: ComboboxPrimitive.Positioner.Props["anchor"]; |
| 177 | 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 | 180 | |
| 181 | 181 | return ( |
| 182 | 182 | <ComboboxPrimitive.Portal> |