Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
add scrollability to search results in dialog
Ben Fornefeld7feb06a33728
diff --git a/apps/web/src/components/Search.tsx b/apps/web/src/components/Search.tsxindex e819127bf..ab20cfac3 100644--- a/apps/web/src/components/Search.tsx+++ b/apps/web/src/components/Search.tsx@@ -114,7 +114,7 @@ function useAutocomplete({ close }: { close: () => void }) {{sourceId: 'documentation',getItems() {- const results = search(query, { limit: 5 })+ const results = search(query, { limit: 20 })return results.sort((a, b) => {if (a.badge === 'Legacy' && b.badge !== 'Legacy') return 1if (a.badge !== 'Legacy' && b.badge === 'Legacy') return -1@@ -325,7 +325,10 @@ function SearchResults({}return (- <ul {...autocomplete.getListProps()}>+ <ul+ className="max-h-[80dvh] sm:max-h-[50dvh] overflow-y-auto"+ {...autocomplete.getListProps()}+ >{collection.items.map((result, resultIndex) => (<SearchResultkey={result.url}