Skip to content

fix: account for page-toc width in docs content centering#110

Merged
jpr5 merged 1 commit intomainfrom
fix/docs-cr-fixes
Apr 14, 2026
Merged

fix: account for page-toc width in docs content centering#110
jpr5 merged 1 commit intomainfrom
fix/docs-cr-fixes

Conversation

@jpr5
Copy link
Copy Markdown
Contributor

@jpr5 jpr5 commented Apr 14, 2026

Summary

  • Content was centered between sidebar and viewport edge, ignoring the 220px TOC
  • At larger font sizes, content overflowed rightward into the TOC
  • Subtracts TOC width from centering calc for both .docs-content and .docs-footer
  • Media query restores original calc when TOC is hidden below 1200px

Follow-up to #109 — this fix was in the redone commits but the PR was merged before the force-push landed.

Test plan

  • Visual check at default and enlarged font sizes
  • Content bounded by both sidebar and TOC
  • Layout correct when TOC hidden (< 1200px viewport)

Content was centered between sidebar and viewport edge, ignoring the
220px TOC. At larger font sizes, content overflowed rightward into the
TOC. Now subtracts TOC width from centering calc, with a media query
to restore original calc when TOC is hidden below 1200px.
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 14, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@copilotkit/aimock@110

commit: 954308b

@jpr5 jpr5 merged commit 687a493 into main Apr 14, 2026
11 checks passed
@jpr5 jpr5 deleted the fix/docs-cr-fixes branch April 14, 2026 22:55
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