From b606466206cf870655657438d040e0ca72a8bc74 Mon Sep 17 00:00:00 2001 From: Revathy Venugopal <104772255+Revathyvenugopal162@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:11:10 +0200 Subject: [PATCH] fix: the scrollbar on sidebar (#474) Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> --- doc/changelog.d/474.fixed.md | 1 + .../static/css/pydata-sphinx-theme-custom.css | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 doc/changelog.d/474.fixed.md diff --git a/doc/changelog.d/474.fixed.md b/doc/changelog.d/474.fixed.md new file mode 100644 index 00000000..ebbad512 --- /dev/null +++ b/doc/changelog.d/474.fixed.md @@ -0,0 +1 @@ +fix: the scrollbar on sidebar \ No newline at end of file diff --git a/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/pydata-sphinx-theme-custom.css b/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/pydata-sphinx-theme-custom.css index f966e2ab..3d0ae086 100644 --- a/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/pydata-sphinx-theme-custom.css +++ b/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/pydata-sphinx-theme-custom.css @@ -14,7 +14,12 @@ max-height: calc(100vh - var(--pst-header-height) - 1vh); line-height: var(--ast-global-line-height); border: none; - overflow: hidden; + overflow: auto; +} + +.bd-sidebar-primary .sidebar-primary-items__end { + margin-bottom: unset; + margin-top: unset; } .sidebar-secondary-item {