Skip to content

Commit 074bcd6

Browse files
authored
fix(web): keep project picker popup inside the sidebar (pingdotgg#8627)
1 parent 5e63aea commit 074bcd6

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ export default function DiffPanel({
617617
</ComboboxTrigger>
618618
<ComboboxPopup
619619
align="start"
620-
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"
620+
className="w-72 min-w-0 max-w-[calc(100vw-1rem)] overflow-hidden"
621621
>
622622
<div className="min-w-0 shrink-0 px-3 pt-2.5">
623623
<div className="relative -translate-y-px border-b border-border/70 pb-1.5 transition-colors focus-within:border-ring">

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3586,7 +3586,10 @@ export default function Sidebar() {
35863586
</span>
35873587
<ChevronDownIcon className="-mr-px size-4 shrink-0" />
35883588
</ComboboxTrigger>
3589-
<ComboboxPopup align="start" className="w-(--anchor-width)">
3589+
<ComboboxPopup
3590+
align="start"
3591+
className="w-(--anchor-width) min-w-0 overflow-hidden"
3592+
>
35903593
<div className="shrink-0 px-3 pt-2.5">
35913594
<div className="relative -translate-y-px border-b border-border/70 pb-1.5 transition-colors focus-within:border-ring">
35923595
<SearchIcon

‎apps/web/src/components/ui/combobox.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function ComboboxPopup({
175175
)}
176176
>
177177
<ComboboxPrimitive.Popup
178-
className="flex max-h-[min(var(--available-height),23rem)] flex-1 flex-col text-foreground"
178+
className="flex min-w-0 max-h-[min(var(--available-height),23rem)] flex-1 flex-col overflow-hidden text-foreground"
179179
data-slot="combobox-popup"
180180
{...props}
181181
>

0 commit comments

Comments
 (0)