fix(web): keep project picker popup inside the sidebar (#8627)

This commit is contained in:
Dara Adedeji authored and GitHub committed 2026-08-28 23:06:52 -07:00
1 parent 5e63aea2df
commit 074bcd6dc8
3 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -617,7 +617,7 @@ export default function DiffPanel({
</ComboboxTrigger>
<ComboboxPopup
align="start"
className="w-72 min-w-0 max-w-[calc(100vw-1rem)] overflow-hidden [&>[data-slot=combobox-popup]]:min-w-0 [&>[data-slot=combobox-popup]]:overflow-hidden"
className="w-72 min-w-0 max-w-[calc(100vw-1rem)] overflow-hidden"
>
<div className="min-w-0 shrink-0 px-3 pt-2.5">
<div className="relative -translate-y-px border-b border-border/70 pb-1.5 transition-colors focus-within:border-ring">
+4 -1
View File
@@ -3586,7 +3586,10 @@ export default function Sidebar() {
</span>
<ChevronDownIcon className="-mr-px size-4 shrink-0" />
</ComboboxTrigger>
<ComboboxPopup align="start" className="w-(--anchor-width)">
<ComboboxPopup
align="start"
className="w-(--anchor-width) min-w-0 overflow-hidden"
>
<div className="shrink-0 px-3 pt-2.5">
<div className="relative -translate-y-px border-b border-border/70 pb-1.5 transition-colors focus-within:border-ring">
<SearchIcon
+1 -1
View File
@@ -175,7 +175,7 @@ function ComboboxPopup({
)}
>
<ComboboxPrimitive.Popup
className="flex max-h-[min(var(--available-height),23rem)] flex-1 flex-col text-foreground"
className="flex min-w-0 max-h-[min(var(--available-height),23rem)] flex-1 flex-col overflow-hidden text-foreground"
data-slot="combobox-popup"
{...props}
>