Skip to content

Improve spacing in sidebar section headings#3122

Merged
ehuss merged 1 commit into
rust-lang:masterfrom
ehuss:sidebar-heading-spacing
May 19, 2026
Merged

Improve spacing in sidebar section headings#3122
ehuss merged 1 commit into
rust-lang:masterfrom
ehuss:sidebar-heading-spacing

Conversation

@ehuss
Copy link
Copy Markdown
Contributor

@ehuss ehuss commented May 19, 2026

This tries to improve the spacing between section headings in the sidebar so that they don't blend together. This is particularly a problem with long headings that word wrap. This just tightens up the spacing when it wraps, and increases the spacing between the sections.

I still don't 100% like how the distinction between sections can be difficult to see. My original prototype had other indicators like bullets, but those ended up not working too well. This might still need some work in the future.

Fixes #3085

This tries to improve the spacing between section headings in the
sidebar so that they don't blend together. This is particularly a
problem with long headings that word wrap. This just tightens up the
spacing when it wraps, and increases the spacing between the sections.

I still don't 100% like how the distinction between sections can be
difficult to see. My original prototype had other indicators like
bullets, but those ended up not working too well. This might still need
some work in the future.

Fixes rust-lang#3085
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label May 19, 2026
@ehuss ehuss enabled auto-merge May 19, 2026 22:20
@ehuss ehuss added this pull request to the merge queue May 19, 2026
Merged via the queue into rust-lang:master with commit c79580a May 19, 2026
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: waiting on a review label May 19, 2026
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.

Subheadings in sidebar are too close together

2 participants