Skip to content

Commit

Permalink
enhance(search): show 2 explorer results
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Apr 9, 2024
1 parent 37806f4 commit 6ace3db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions site/search/Search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,10 @@
width: 100%;
}

// On the "All" tab, limit to the first 4 pages, 4 charts, and 1 explorer view
// On the "All" tab, limit to the first 4 pages, 4 charts, and 2 explorer views
.search-results__page-hit:nth-child(n + 5),
.search-results__chart-hit:nth-child(n + 5),
.search-results__explorer-hit:nth-child(n + 2) {
.search-results__explorer-hit:nth-child(n + 3) {
display: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion site/search/SearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ const SearchResults = (props: SearchResultsProps) => {
</h2>
<ShowMore
category={SearchIndexName.ExplorerViews}
cutoffNumber={1}
cutoffNumber={2}
activeCategoryFilter={activeCategoryFilter}
handleCategoryFilterClick={
handleCategoryFilterClick
Expand Down

0 comments on commit 6ace3db

Please sign in to comment.