Skip to content

Commit

Permalink
Fix #1603
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou committed Dec 20, 2023
1 parent 3de3059 commit 62e4f6f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -571,3 +581,4 @@ documentReady(scrollToActive);
documentReady(addTOCInteractivity);
documentReady(setupSearchButtons);
documentReady(initRTDObserver);
documentReady(fixMoreLinksInMobileSidebar);

0 comments on commit 62e4f6f

Please sign in to comment.