From 85a306296f274f59232c6f4f5867a000d6b3b4b8 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sun, 30 Aug 2026 02:20:54 +0000 Subject: [PATCH] Never break inline code spans (nowrap) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit word-break: keep-all does not suppress breaks at hard hyphens (an explicit UAX #14 break opportunity), so `--arg` could split after the dashes. Inline code is short — nowrap is the safe fix. --- frontend/src/assets/pagerite.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/assets/pagerite.css b/frontend/src/assets/pagerite.css index 0ac6bea..ec1d1e9 100644 --- a/frontend/src/assets/pagerite.css +++ b/frontend/src/assets/pagerite.css @@ -1174,7 +1174,11 @@ code { inherited value), shifting it 30% toward --muted. */ code:not(pre code) { padding-inline: 0.2em; - word-break: keep-all; + /* Never break inside a code span. word-break: keep-all would not + suffice: a hard hyphen is an explicit break opportunity (UAX #14), + which keep-all does not suppress — `--arg` could still split after + the dashes. Inline code is short, so nowrap is safe here. */ + white-space: nowrap; color: color-mix(currentColor 70%, var(--muted)); }