From 64e534f5d3aa1a6050b1fcebd90b228e6ed6e234 Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Sun, 10 Sep 2023 13:20:51 -0400 Subject: [PATCH] DOCS-963: Enable scroll on search modals (#1786) --- assets/js/index.js | 4 ++-- assets/scss/_styles_project.scss | 20 +++++++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/assets/js/index.js b/assets/js/index.js index 86874dcff7..f6de00647e 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -154,7 +154,7 @@ docsearch({ protocol: 'https' }], apiKey: 'GHQK6od8KfpvTEh4YpA113gUc2dU5fGR' - }, + } }); docsearch({ inputSelector: '.td-sidebar__search .td-search-input', @@ -166,5 +166,5 @@ docsearch({ protocol: 'https' }], apiKey: 'GHQK6od8KfpvTEh4YpA113gUc2dU5fGR' - }, + } }); \ No newline at end of file diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index c514a067d4..ff29366baf 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -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 @@ -1310,4 +1328,4 @@ a.ais-Pagination-link:hover { .row.flex-xl-nowrap { min-height: 100%; -} \ No newline at end of file +}