1
0
mirror of https://github.com/minio/docs.git synced 2025-07-28 19:42:10 +03:00

Fix doc menu and search being hidden on mobile (#579)

We might need to enable TOC on all pages to maintain the original mobile
menu design.
This commit is contained in:
Rushan
2022-09-23 23:51:49 +04:00
committed by GitHub
parent 5a6a298132
commit c5a705d746
2 changed files with 7 additions and 1 deletions

View File

@ -107,7 +107,7 @@ window.addEventListener("DOMContentLoaded", (event) => {
tocTargetEl.parentNode.replaceChild(tocOriginalEl, tocTargetEl);
}
else {
tocAsideEL.style.display = "none";
tocAsideEL.classList.add("content__toc--empty");
}
// Treat the TOC as a dropdown in mobile

View File

@ -57,6 +57,12 @@ div.topic {
}
}
.content__toc--empty {
@include breakpoint-min(breakpoints(lg)) {
display: none;
}
}
#table-of-contents {
flex: 1;
position: relative;