diff --git a/web/packages/ui/src/styles/starlight-theme.css b/web/packages/ui/src/styles/starlight-theme.css index e5523da008..8215dc9f4a 100644 --- a/web/packages/ui/src/styles/starlight-theme.css +++ b/web/packages/ui/src/styles/starlight-theme.css @@ -72,6 +72,13 @@ .sl-markdown-content pre { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); + /* + * Raw
containment (#4616): the API generator emits examples as raw + *(renderExtended(), generate-api-docs.mjs), so Expressive Code + * never wraps them and ec.css — the only pre containment here — never loads; + * base.css only covers `.prose pre`. (#4620, literal \n, is a separate bug.) + */ + overflow-x: auto; } /* ── Sidebar (Phase 3 Slice 1) ────────────────────────────────────