Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No secondary-toggle or bd-sidebar-secondary toc when screen is between 1200 px and 990 px #835

Open
72757373656c6c opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@72757373656c6c
Copy link

72757373656c6c commented May 2, 2024

Describe the bug

context
When the screen size is between 1200 px and 990 px, both secondary-toggle and bd-sidebar-secondary are not visable, so there is no TOC.

expectation
I expected either secondary-toggle or bd-sidebar-secondary to be visible.

bug
But instead, neither were visible when the screen size was between 1200 px and 990 px.

This is the secondary-toggle, whereas issue #721 is the primary toggle.

I came across this issue when trying to find a way to always show the secondary-toggle and allow bd-sidebar-secondary to toggle regardless of screen size. This is a very useful feature for large screens too. I would also like pst-back-to-top to be visible for large screens. Please consider making these configurable options in conf.py.

Reproduce the bug

To isolate the environment, I created a new Sphinx-MyST project and added one document.

conf.py changes:

extensions = ["myst_parser",]
myst_enable_extensions = ["colon_fence", "deflist",]
source_suffix = { ".md": "markdown" }
html_theme = 'sphinx_book_theme'

Ran make clean; make html.

While viewing the html output in Firefox and Chrome browsers, I grabbed the right-side of the browser window and pulled it left. As I pulled the window left, bd-sidebar-secondary disappeared but the secondary-toggle did not appear. This range was 1200px to 990px.

I took snapshots of the browser window and ruler at the various points:

secondary-toggle_bd-sidebar-secondary

List your environment

Sphinx 7.2.6
Sphinx Book Theme 1.1.2
Linux Arch/Manjaro

@72757373656c6c 72757373656c6c added the bug Something isn't working label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant