8000 Refactor table-of-contents view · Issue #6851 · hedgedoc/hedgedoc · GitHub
[go: up one dir, main page]

Skip to content

Refactor table-of-contents view #6851

Open

Description

@ErikMichelson

The table-of-contents (TOC) view currently has the following drawbacks:

  • non-intuitive: Wider screens show it next to the content, smaller screens hide it but show a button at the bottom
  • very basic design: The 1.x version had more aesthetic appeal, we should improve this
  • less features: In 1.x it tracks the scroll position and highlights the section where you are currently, this should be re-added

The floating TOC button at the bottom should be removed. The dynamic TOC display next to the content should be removed.

There should be a new button in the editor-bar that toggles the TOC aside of the content, regardless of the screen size.

Since the read-only-view (/s/:noteId) has no editor-bar, the TOC aside of the content should be shown there always.

Activity

  1. added this to the Version 2.0 milestone on Sep 18, 2026
  2. matozeto commented on Oct 9, 2026

    @matozeto

    Hi @ErikMichelson, I'd like to work on this issue. My plan is to add the editor-bar toggle, highlight the current section while scrolling, and keep the TOC visible in the read-only view, with regression tests for the new behavior.
    Is this available to pick up, or are you already working on it? If available, I expect to submit a PR within 2–3 weeks. Please let me know if you have any architectural or UX preferences I should follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: frontendOnly relevant for the frontend

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0