fix(theme): allow injected CSS to style Monaco view containers (#8385)

`@scope`'s `to` bound excludes the boundary elements themselves, so rules
targeting `.view-lines` never matched. Move the bound to its children
with `> *`: the container becomes styleable, its internals stay excluded.
This commit is contained in:
nrenvo
2026-10-27 15:13:58 +00:00
committed by GitHub
parent 02e5e0e4a6
commit cbd5ed73a5
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ const wrapCssInjectionWithScope = (css?: string) => {
return null
}
const scopeRoot = CSS_INJECTION_SCOPE_ROOT
const scopeLimit = CSS_INJECTION_SCOPE_LIMIT
const scopeLimit = `${CSS_INJECTION_SCOPE_LIMIT} > *`
const scopedBlock = `@scope (${scopeRoot}) to (${scopeLimit}) {
${css}
}`