Skip to content

Commit 1231580

Browse files
committed
Showing more search results - 10, and adding styling as suggested by the community
1 parent adb19b5 commit 1231580

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/theme/SearchBar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function DocSearch({ contextualSearch, externalUrlRegex, ...props }) {
132132
...props.searchParameters,
133133
facetFilters,
134134
clickAnalytics: true,
135-
hitsPerPage: 3,
135+
hitsPerPage: 10,
136136
};
137137
const { isAskAIOpen, currentMode } = useAskAI();
138138
const history = useHistory();

src/theme/SearchBar/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@
6161
.DocSearch-Logo {
6262
display: none !important;
6363
}
64+
65+
.DocSearch-Dropdown {
66+
max-height: calc(min(90vh) - 180px) !important;
67+
}

0 commit comments

Comments
 (0)