Skip to content

fix(ui): ToC hirachie#993

Merged
perber merged 1 commit into
mainfrom
feature/ui-toc-hirachie
May 14, 2026
Merged

fix(ui): ToC hirachie#993
perber merged 1 commit into
mainfrom
feature/ui-toc-hirachie

Conversation

@perber

@perber perber commented May 14, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 14, 2026 12:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the TOC dropdown button styling so heading levels are visually distinguished by a small helper, and simplifies the trigger button's class list.

Changes:

  • Adds getTocEntryClassName(level) to map heading level to padding/typography classes (levels 1, 2, 3, and 4+).
  • Applies the helper to both clickable and non-clickable DropdownMenuItem branches.
  • Simplifies the DropdownMenuTrigger button by removing custom className overrides.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@perber
perber merged commit 92c50a8 into main May 14, 2026
7 checks passed
@perber
perber deleted the feature/ui-toc-hirachie branch May 14, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants