Skip to content

fix(css): add spacing between sidebar on-page headings#3101

Open
leno23 wants to merge 1 commit into
rust-lang:masterfrom
leno23:fix/sidebar-header-spacing-3085
Open

fix(css): add spacing between sidebar on-page headings#3101
leno23 wants to merge 1 commit into
rust-lang:masterfrom
leno23:fix/sidebar-header-spacing-3085

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

Adds vertical spacing between heading entries in the sidebar “on this page” navigation so adjacent headings are easier to distinguish.

.on-this-page li.header-item {
    margin-block-end: 0.5em;
    line-height: 1.5em;
}

Fixes #3085.

Test plan

  • Visual change only (CSS); scoped to .on-this-page li.header-item so chapter list spacing is unchanged
  • CI (including GUI heading-nav tests)

Made with Cursor

Improve readability of the "on this page" heading list by adding
margin and a tighter line height between header items.

Fixes rust-lang#3085.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: waiting on a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subheadings in sidebar are too close together

2 participants