Closed adamgayoso closed 10 months ago
Adding to this - the fix seems simple enough.
The problem seems to come from the bd-content
container not having its flex-direction
set. The default is row
so the footer is positioned to the right of the page content rather than beneath it
(eg https://jupyterbook.org/en/stable/content/citations.html )
If you instead manually set flex-direction: column
then the page is laid out as expected:
It seems like this is a pydata-sphinx-theme
problem though, specifically the column mode would need to go here: https://github.com/pydata/pydata-sphinx-theme/blob/bc82874fe6b966cc8700f32fb38d2f6a536d22ae/src/pydata_sphinx_theme/assets/styles/sections/_article.scss#L10
But I don't know enough about this theme, that theme, and how they interact to know if that would be something that should go there or here.
The PR seems trivial, just one changed CSS value, so I can make that either here or there depending on what maintainers think would be better, but ya would be nice to fix bc i'm just doing this downstream atm
@sneakers-the-rat nope, what you see is #742. The next/prev footer isn’t supposed to be a direct child of .bd-content
The actual problem is this hack:
Describe the bug
When there is no header for a right sidebar, the width of the main content collapses
https://docs.scvi-tools.org/en/latest/api/index.html
Reproduce the bug
Have a simple page with only a top-level heading.
List your environment
No response