From db80b75e3de453c25de8c30bdc60122c17369280 Mon Sep 17 00:00:00 2001 From: vickydotbat Date: Wed, 22 Jul 2026 20:16:41 +0200 Subject: [PATCH] fix(wiki): stop justifying text in tables, quotes, and code Justified alignment stretched bulleted list items inside table cells into ugly rivers of whitespace (e.g. spell lists). Limit justify to real reading prose (p, li) and reset alignment to start inside tables, blockquotes, and pre blocks. Co-Authored-By: Claude Opus 4.8 (1M context) --- scss/westgate/_wiki-prose.scss | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scss/westgate/_wiki-prose.scss b/scss/westgate/_wiki-prose.scss index 954f192..2da3935 100644 --- a/scss/westgate/_wiki-prose.scss +++ b/scss/westgate/_wiki-prose.scss @@ -227,11 +227,20 @@ margin-inline: auto; } -.westgate-wiki .wiki-article-prose :where(p, li, blockquote) { +.westgate-wiki .wiki-article-prose :where(p, li) { hyphens: auto; text-align: justify; } +/* Justify only reading prose. Table cells (bulleted lists get stretched into + ugly rivers), quote blocks, and code should read left/inherited, not + justified. */ +.westgate-wiki .wiki-article-prose :where(table, blockquote, pre) :where(p, li), +.westgate-wiki .wiki-article-prose :where(blockquote, pre) { + hyphens: none; + text-align: start; +} + /* The namespace index / section listing card reuses .wiki-article-prose for its card chrome, but its body is a directory listing, not reading prose. Opt it out of the centered reading measure: the wiki plugin caps prose -- 2.54.0