Fix collapsed menu after reload on state closed

This commit is contained in:
Harshad Marathe 2024-12-12 16:49:24 +05:30
parent 549824c91f
commit 44be2b99d2
2 changed files with 2 additions and 1 deletions

View File

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

View File

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