Skip to content

🎥 Make videos programmatically with React

Elements: Keep sidebar visible near catalog footer

Igor Samokhovetsa27e053bc27d
diff --git a/packages/docs/src/css/custom.css b/packages/docs/src/css/custom.css
index 9d2a76e0ba..ea227a131b 100644
--- a/packages/docs/src/css/custom.css
+++ b/packages/docs/src/css/custom.css
@@ -122,6 +122,16 @@ html:has(.studio-caption-picker),
}
@media (min-width: 997px) {
+ /* Keep empty sidebar space from pushing the category links above the viewport
+ when the catalog footer comes into view. */
+ .plugin-id-elements .theme-doc-sidebar-container > div {
+ height: auto;
+ }
+
+ .plugin-id-elements .theme-doc-sidebar-container .menu {
+ max-height: calc(100vh - var(--ifm-navbar-height));
+ }
+
.studio-elements-embed {
--ifm-navbar-height: 0px;
}