Skip to content

fix: ToC toggle overlap and sticky title bleed-through - #53

Merged
ds-giusy merged 1 commit into
mainfrom
fix/UCD-180-toc-sidebar-overlap
Aug 6, 2026
Merged

fix: ToC toggle overlap and sticky title bleed-through#53
ds-giusy merged 1 commit into
mainfrom
fix/UCD-180-toc-sidebar-overlap

Conversation

@ds-giusy

@ds-giusy ds-giusy commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Sticky ToC title lost its opaque background, letting scrolled headings show through behind it
  • ToC toggle used window.innerWidth (includes scrollbar) instead of document.documentElement.clientWidth, pushing it into the sidebar
  • .md-grid clearance margin only applied from 76.25em up, but the ToC toggle is offered from 60em, leaving no room at narrower widths
  • .md-content__inner's 70ch min-width ignored the sidebar-shrunk column width, overflowing into the ToC sidebar

Test plan

  • Verified sticky ToC title no longer shows scrolled text through it
  • Verified ToC toggle gap from sidebar scrollbar at 1600px
  • Verified no overlap at 980px, 1100px, 1220px, 1300px, 2560px with long nav/ToC test content

- sticky ToC title lost its opaque background, letting scrolled
  headings show through behind it
- ToC toggle position used window.innerWidth (includes the scrollbar)
  instead of document.documentElement.clientWidth, pushing it into
  the sidebar by the scrollbar's own width
- .md-grid only got its extra clearance margin from 76.25em up, but
  the ToC toggle is offered from 60em, leaving it nowhere to sit at
  narrower widths where the ToC sidebar sat flush against the edge
- .md-content__inner's 70ch min-width ignored the column width the
  sidebars already shrank it to, overflowing into the ToC sidebar
@ds-giusy
ds-giusy merged commit e06934b into main Aug 6, 2026
3 checks passed
@ds-giusy
ds-giusy deleted the fix/UCD-180-toc-sidebar-overlap branch August 6, 2026 12:09
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.

1 participant