diff --git a/doc/_static/style.css b/doc/_static/style.css index 11a27b72c92..25446d35659 100644 --- a/doc/_static/style.css +++ b/doc/_static/style.css @@ -353,3 +353,11 @@ div.sphx-glr-animation video { max-width: 100%; height: auto; } + +/* fix sidebar scrollbars */ +.sidebar-primary-items__end { + margin-bottom: 0 !important; + margin-top: 0 !important; + margin-left: 0 !important; + margin-right: 0 !important; +} diff --git a/doc/conf.py b/doc/conf.py index 3433a666782..ad4a158c1f9 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -757,6 +757,7 @@ def append_attr_meth_examples(app, what, name, obj, options, lines): "version-switcher", "navbar-icon-links", ], + "navbar_align": "left", "navbar_persistent": ["search-button"], "footer_start": ["copyright"], "secondary_sidebar_items": ["page-toc", "edit-this-page"],