Commit 687a493
authored
fix: account for page-toc width in docs content centering (#110)
## 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
- [x] Visual check at default and enlarged font sizes
- [x] Content bounded by both sidebar and TOC
- [x] Layout correct when TOC hidden (< 1200px viewport)1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | 200 | | |
202 | 201 | | |
203 | 202 | | |
| 203 | + | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
| |||
500 | 503 | | |
501 | 504 | | |
502 | 505 | | |
503 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
504 | 509 | | |
505 | 510 | | |
506 | 511 | | |
| |||
600 | 605 | | |
601 | 606 | | |
602 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
603 | 614 | | |
604 | 615 | | |
605 | 616 | | |
| |||
0 commit comments