You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TDLR
Our content div was VERY narrow. Many of us have talked about how it
feels cramped width wise. Widening that up to give a bit more space.
Cleaning up the zone of emptiness that exists on the right in favor of
centering the docs content on smaller resolutions, and centering all
content on wider resolutions to improve UX.
Also centered header to match content width.
Summary
- Widens the content div to create more readable space so its not
- Centers the main content column and improves large-screen layout.
- Anchors the left sidenav and right TOC to the content edges on wide
viewports.
- Adds a minimal, rounded scrollbar to the sidenav.
Motivation
- Improve readability by capping line length and centering.
- Reduce visual noise from the default scrollbar.
Key Changes
- Content
- Centers content on standard screens; caps width at 100ch via
--doc-content-w.
- Large screens (≥ 2057px): content remains centered at 100ch and gains
5rem
horizontal padding for sidenav and TOC
- Navigation
- Large screens: sidenav aligns to content’s left edge; TOC aligns to
content’s
right edge with a 24px gap.
- Standard screens: current behavior preserved.
- Sidenav scrollbar
- Thin 8px, rounded thumb, subtle hover/active contrast; respects theme
colors.
- Firefox: scrollbar-width: thin; WebKit: ::-webkit-scrollbar styles.
- Header
- Centered header to match width of sidebar, content, and TOC
Behavior by Breakpoint
- Standard screens (≤ 2056px)
- Centered content, max width 100ch; default px-6 pt-6.
- Sidenav left, TOC right (existing behavior).
- Large screens (≥ 2057px)
- Centered content at 100ch with 5rem left/right padding.
- Sidenav pinned to content’s left; TOC pinned to content’s right with
~24px gap.
Before -
<img width="4112" height="2570" alt="CleanShot 2025-08-29 at 12 10
43@2x"
src="https://github.com/user-attachments/assets/f686ac5d-d0a2-41eb-989c-49bdedfa96c3"
/>
Before widescreen -
<img width="4112" height="2570" alt="CleanShot 2025-08-29 at 12 12
07@2x"
src="https://github.com/user-attachments/assets/45d92030-3faa-4162-8abd-ed034e9bd88c"
/>
After -
<img width="4112" height="2570" alt="CleanShot 2025-08-29 at 12 11
30@2x"
src="https://github.com/user-attachments/assets/5f58d5bf-ea88-42b9-a731-31c6bcbd6460"
/>
After widescreen -
<img width="4112" height="2570" alt="CleanShot 2025-08-29 at 12 12
39@2x"
src="https://github.com/user-attachments/assets/4116c780-0cb2-415b-9383-0c7447abfd10"
/>
---------
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Co-authored-by: Lazar Nikolov <[email protected]>
0 commit comments