Skip to content

Commit 1802c28

Browse files
authored
Fetch 200 projects for the top bar project picker instead of 20 (#1839)
fetch 200 projects for the top bar project picker instead of 20
1 parent ce09b54 commit 1802c28

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/components/TopBarPicker.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ const TopBarPicker = (props: TopBarPickerProps) => {
110110
// portal is necessary to avoid the menu popover getting its own after:
111111
// separator thing
112112
<DropdownMenu.Portal>
113-
<DropdownMenu.Content className="mt-2 min-w-[12.8125rem]" align="start">
113+
<DropdownMenu.Content
114+
className="mt-2 max-h-80 min-w-[12.8125rem] overflow-y-auto"
115+
align="start"
116+
>
114117
{props.items.length > 0 ? (
115118
props.items.map(({ label, to }) => {
116119
const isSelected = props.current === label
@@ -232,7 +235,7 @@ const NoProjectLogo = () => (
232235
)
233236

234237
export function ProjectPicker({ project }: { project?: Project }) {
235-
const { data: projects } = useApiQuery('projectList', { query: { limit: 20 } })
238+
const { data: projects } = useApiQuery('projectList', { query: { limit: 200 } })
236239
const items = (projects?.items || []).map(({ name }) => ({
237240
label: name,
238241
to: pb.instances({ project: name }),

0 commit comments

Comments
 (0)