diff --git a/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js b/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js index 993aff244..f7f444c1d 100644 --- a/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js +++ b/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js @@ -562,6 +562,16 @@ if (hasVersionsJSON && (hasSwitcherMenu || wantsWarningBanner)) { } } +/** + * Fix bug #1603 + */ +function fixMoreLinksInMobileSidebar() { + const dropdown = document.querySelector( + ".bd-sidebar-primary [id^=pst-nav-more-links]" + ); + dropdown.classList.add("show"); +} + /******************************************************************************* * Call functions after document loading. */ @@ -571,3 +581,4 @@ documentReady(scrollToActive); documentReady(addTOCInteractivity); documentReady(setupSearchButtons); documentReady(initRTDObserver); +documentReady(fixMoreLinksInMobileSidebar);