Fix wiki prose drifting right on pages without a ToC #41

Merged
archvillainette merged 1 commits from fix/wiki-prose-reading-width into main 2026-07-23 19:23:59 +00:00
1 Commits
Author SHA1 Message Date
archvillainetteandClaude Opus 4.8 784d62f6cc fix(wiki): cap reading column so prose doesn't drift right on ToC-less pages
The reading-layout rule caps each prose block at --wiki-prose-measure (54rem)
and centers it with margin-inline:auto. That centering only looks right when
the content column is ~58rem, which the theme sets up only while a ToC drawer
is open. Pages without a ToC (most feats, short articles) run the card full
page width, so the capped paragraph centers inside it with big side gutters
that read as a broken left indent — while the full-width callout and fact
table make the paragraph look inset. text-align:justify is the sibling rule
in the same block, not the cause.

Cap the reading column itself (and the compose editing surface, which shares
the .westgate-wiki scope) to 58rem so the card hugs the text on every article
page, matching the ToC layout. Section/namespace-index listings opt out and
keep running full-width.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 21:22:11 +02:00