Merge pull request #2440 from MaratheHarshad/fix/collapsible-menus-on-reload

Fix collapsed menu issue on page reload
This commit is contained in:
Anthony Stirling 2024-12-12 11:48:54 +00:00 committed by GitHub
commit 50c5efac87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -65,6 +65,7 @@
overflow: hidden; overflow: hidden;
margin: -20px; margin: -20px;
padding: 20px; padding: 20px;
box-sizing:content-box;
} }
.feature-group-container.animated-group { .feature-group-container.animated-group {

View File

@ -268,7 +268,7 @@ document.addEventListener("DOMContentLoaded", function () {
const parent = header.parentNode; const parent = header.parentNode;
const container = header.parentNode.querySelector(".feature-group-container"); const container = header.parentNode.querySelector(".feature-group-container");
if (parent.id !== "groupFavorites") { if (parent.id !== "groupFavorites") {
container.style.maxHeight = container.clientHeight + "px"; container.style.maxHeight = container.scrollHeight + "px";
} }
header.onclick = () => { header.onclick = () => {
expandCollapseToggle(parent); expandCollapseToggle(parent);