mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 02:52:07 +08:00
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:
@@ -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}
|
||||
}`
|
||||
|
||||
Reference in New Issue
Block a user