Skip to content

Commit

Permalink
DOCS-963: Enable scroll on search modals (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Sep 10, 2023
1 parent 6c41442 commit 64e534f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ docsearch({
protocol: 'https'
}],
apiKey: 'GHQK6od8KfpvTEh4YpA113gUc2dU5fGR'
},
}
});
docsearch({
inputSelector: '.td-sidebar__search .td-search-input',
Expand All @@ -166,5 +166,5 @@ docsearch({
protocol: 'https'
}],
apiKey: 'GHQK6od8KfpvTEh4YpA113gUc2dU5fGR'
},
}
});
20 changes: 19 additions & 1 deletion assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,24 @@ a.ais-Pagination-link:hover {
flex-grow: 1;
}

.ds-dataset-1, .ds-dataset-2, .ds-dataset-3 {
max-height: 500px !important;
}

/* Add margin in front of breadcrumbs on small screens */
@media (max-height: 600px) {
.ds-dataset-1, .ds-dataset-2, .ds-dataset-3 {
max-height: 300px !important;
}
}

/* Add margin in front of breadcrumbs on small screens */
@media (max-height: 400px) {
.ds-dataset-1, .ds-dataset-2, .ds-dataset-3 {
max-height: 200px !important;
}
}

// Search-autocomplete end

// Make videos work without js
Expand All @@ -1310,4 +1328,4 @@ a.ais-Pagination-link:hover {

.row.flex-xl-nowrap {
min-height: 100%;
}
}

0 comments on commit 64e534f

Please sign in to comment.