diff --git a/web/packages/ui/src/styles/base.css b/web/packages/ui/src/styles/base.css index d29e084459..5b8644f4ad 100644 --- a/web/packages/ui/src/styles/base.css +++ b/web/packages/ui/src/styles/base.css @@ -196,6 +196,13 @@ video { font-size: inherit; } +/* Long inline code (identifiers, URLs) must break inside the column rather + than push the page sideways at phone width. Scoped away from `pre`, so + fenced blocks keep their own horizontal scroll (#4609). */ +.prose :not(pre) > code { + overflow-wrap: anywhere; +} + .prose ul, .prose ol { padding-left: var(--space-5);