Skip to content

Commit 05d6055

Browse files
authored
fix(web): branch picker keeps space below the last branch (pingdotgg#21159)
1 parent 06ce02f commit 05d6055

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ export function BranchPicker({
190190
/>
191191
<div className="flex min-h-0 flex-1 flex-col overflow-hidden">
192192
<ComboboxEmpty>No refs found.</ComboboxEmpty>
193-
<div className="relative min-h-0 w-full max-h-56 flex-1 overflow-hidden">
194-
<ComboboxListVirtualized className="size-full min-w-0">
193+
<div className="relative flex min-h-0 w-full max-h-56 flex-1 flex-col overflow-hidden">
194+
<ComboboxListVirtualized className="flex size-full min-h-0 min-w-0 flex-col">
195195
<LegendList<string>
196196
ref={branchListRef}
197197
data={filteredItems}
@@ -210,7 +210,7 @@ export function BranchPicker({
210210
maybeFetchNextBranchPage();
211211
}}
212212
className={cn(
213-
"max-h-56 scrollbar-gutter-stable overflow-x-hidden overscroll-y-contain ps-1 pe-0 pt-2 pb-1",
213+
"min-h-0 max-h-56 scrollbar-gutter-stable overflow-x-hidden overscroll-y-contain ps-1 pe-0 py-2",
214214
getVirtualizedScrollFadeClassName({
215215
top: showTopBranchScrollFade,
216216
bottom: showBottomBranchScrollFade,

0 commit comments

Comments
 (0)