From 48cd6e516f422735edb5e2d97e2b4589acb4aa96 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Wed, 16 Jul 2025 10:43:50 +0200 Subject: [PATCH 1/3] fix(style): add padding on top for breadcrumbs FIX: to remove the scrollbar in primary sidebar --- src/ansys_sphinx_theme/assets/styles/breadcrumbs.scss | 4 +++- .../assets/styles/pydata-sphinx-theme-custom.scss | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ansys_sphinx_theme/assets/styles/breadcrumbs.scss b/src/ansys_sphinx_theme/assets/styles/breadcrumbs.scss index 3d8190180..21ec08c66 100644 --- a/src/ansys_sphinx_theme/assets/styles/breadcrumbs.scss +++ b/src/ansys_sphinx_theme/assets/styles/breadcrumbs.scss @@ -107,6 +107,8 @@ ul.bd-breadcrumbs { } } +/* Sidebar primary padding */ +/* This is to match the padding of the primary sidebar top with the breadcrumbs */ .bd-sidebar-primary { - padding: 0.5rem; + padding-top: 0.5rem; } diff --git a/src/ansys_sphinx_theme/assets/styles/pydata-sphinx-theme-custom.scss b/src/ansys_sphinx_theme/assets/styles/pydata-sphinx-theme-custom.scss index e0f52aada..2dceaf312 100644 --- a/src/ansys_sphinx_theme/assets/styles/pydata-sphinx-theme-custom.scss +++ b/src/ansys_sphinx_theme/assets/styles/pydata-sphinx-theme-custom.scss @@ -11,7 +11,7 @@ max-height: calc(100vh - var(--pst-header-height) - 1vh); line-height: var(--ast-global-line-height); border: none; - overflow: auto; + // overflow: auto; } .bd-sidebar-primary .sidebar-primary-items__end { From de73759dc40f1f6023965a067e17755b474cba27 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Wed, 16 Jul 2025 10:44:10 +0200 Subject: [PATCH 2/3] fix: revert the chnages --- .../assets/styles/pydata-sphinx-theme-custom.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys_sphinx_theme/assets/styles/pydata-sphinx-theme-custom.scss b/src/ansys_sphinx_theme/assets/styles/pydata-sphinx-theme-custom.scss index 2dceaf312..e0f52aada 100644 --- a/src/ansys_sphinx_theme/assets/styles/pydata-sphinx-theme-custom.scss +++ b/src/ansys_sphinx_theme/assets/styles/pydata-sphinx-theme-custom.scss @@ -11,7 +11,7 @@ max-height: calc(100vh - var(--pst-header-height) - 1vh); line-height: var(--ast-global-line-height); border: none; - // overflow: auto; + overflow: auto; } .bd-sidebar-primary .sidebar-primary-items__end { From b6c297e642e467c4156e0eaaa0d3fccad8585b17 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Wed, 16 Jul 2025 08:46:20 +0000 Subject: [PATCH 3/3] chore: adding changelog file 752.fixed.md [dependabot-skip] --- doc/changelog.d/752.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/752.fixed.md diff --git a/doc/changelog.d/752.fixed.md b/doc/changelog.d/752.fixed.md new file mode 100644 index 000000000..e0b03cb9e --- /dev/null +++ b/doc/changelog.d/752.fixed.md @@ -0,0 +1 @@ +Add padding on top for breadcrumbs \ No newline at end of file