fix: katex width auto scroll (#1047)

This commit is contained in:
Ziven
2025-10-09 21:29:17 +08:00
committed by GitHub
parent e43cc5536d
commit e4eb15caec
+1 -1
View File
@@ -28,7 +28,7 @@ function createRenderer(display: boolean, inlineStyle: string, blockStyle: strin
// svg.style = `max-width: 300vw !important; display: initial; flex-shrink: 0;`
svg.style.display = `initial`
svg.style.maxWidth = `300vw`
svg.style.setProperty(`max-width`, `300vw`, `important`)
svg.style.flexShrink = `0`
svg.style.width = width