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:
@ -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
|
||||
|
@ -57,6 +57,12 @@ div.topic {
|
||||
}
|
||||
}
|
||||
|
||||
.content__toc--empty {
|
||||
@include breakpoint-min(breakpoints(lg)) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#table-of-contents {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
|
Reference in New Issue
Block a user