From 2037f7998c143141855f382a69dc72165839b93e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 3 Oct 2026 12:33:16 +0200 Subject: [PATCH] Wide math scrolls in its own paragraph or display block instead of widening the page; math that fits shows no scrollbar Co-Authored-By: Claude Opus 5.5 --- site/quartz/styles/custom.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/site/quartz/styles/custom.scss b/site/quartz/styles/custom.scss index 576d784..7fd5702 100644 --- a/site/quartz/styles/custom.scss +++ b/site/quartz/styles/custom.scss @@ -849,6 +849,17 @@ article > h6 { margin-top: 0; } +/* KaTeX does not break inside a formula, so math wider than the column scrolls + in its own paragraph or display block instead of widening the page; math that + fits shows no scrollbar. */ +article p:has(.katex), +article .katex-display { + overflow-x: auto; + overflow-y: hidden; + scrollbar-width: thin; + scrollbar-color: var(--gray) transparent; +} + .page > #quartz-body .center > article .gamecult-outtake { position: relative; box-sizing: border-box;