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

Show the table of contents (TOC) in narrow windows #1136

Open
colbygogan opened this issue Mar 23, 2024 · 1 comment
Open

Show the table of contents (TOC) in narrow windows #1136

colbygogan opened this issue Mar 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@colbygogan
Copy link

Currently when the viewport is resized to a smaller width, the TOC will disappear. It would be helpful to still be able to see the TOC when the viewport is shrunk and/or implement a toggle to show the TOC - similar to the image attached.

Capture d’écran 2024-03-23 à 16 56 43

@colbygogan colbygogan added the enhancement New feature or request label Mar 23, 2024
@mbostock mbostock changed the title Adding a feature to toggle the TOC when viewport is small (i.e. mobile view) Show the table of contents (TOC) in narrow windows May 9, 2024
@mbostock
Copy link
Member

mbostock commented May 9, 2024

Yes, I’d like this. VitePress does this well by inserting a position-fixed header and then using a popover for the contents.

Screenshot 2024-05-08 at 5 54 02 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants