executablebooks / sphinx-panels

A sphinx extension for creating panels in a grid layout
https://sphinx-panels.readthedocs.io
MIT License
83 stars 20 forks source link

Compatibility between sphinx-panels and sphinx-book-theme #57

Open seisman opened 3 years ago

seisman commented 3 years ago

Describe the bug

The left-side TOC scroll with the main content when the sphinx-panels extension is used in the sphinx-book-theme.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://seismo-learn.org/sitepreview/seismo-learn/seismology101/sphinx-book-theme/computer/fedora-setup/ (the content is in Chinese)
  2. Scroll the main content
  3. you will see

image

Expected behavior

The left-side TOC is fixed when scrolling the main content.

image

The link to our documentation repository (current in the sphinx-book-theme branch): https://github.com/seismo-learn/seismology101/tree/sphinx-book-theme

Environment

welcome[bot] commented 3 years ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

seisman commented 2 years ago

The bug seems to be fixed when I comment out the position: relative style from the panels-bootstrap.css file (see the screenshot below) and I don't see side effects.

image

SilverRainZ commented 2 years ago

Kindly ping~ I suffer the same issue, any progress?

SilverRainZ commented 2 years ago

FYI: sphinx_design is successor of this project and it works well with sphinx_book_theme, see https://github.com/executablebooks/sphinx-panels/issues/67