Skip to content

Commit

Permalink
Fix "More" links in mobile sidebar (#1604)
Browse files Browse the repository at this point in the history
Fix #1603
  • Loading branch information
gabalafou committed Jan 2, 2024
1 parent fcde006 commit 7d01e01
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 7d01e01

Please sign in to comment.