Skip to content

Sidebar table of contents scrolls with the page in long books #475

Description

@gfiguero

When a book has long pages, the table of contents in the sidebar can't be scrolled on its own. The only way to reach the entries near the bottom is to scroll the whole page — and as soon as you do that to keep reading, the navigation slides up and out of view along with the text.

It gets worse the longer the book. I'm reading a 170-page manual, and on a normal screen the sidebar ends up over 20,000 pixels tall, so the list is effectively unusable while reading.

What you'd expect is for the sidebar to stay put and scroll its own list, independently of the page.

The cause is that the sidebar is sized against the page rather than the window, so it's never shorter than its contents and its own scrollbar never appears.

Happy to send a PR — I have a small CSS fix working locally, with system tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions