diff --git a/packages/editor/src/styles.css b/packages/editor/src/styles.css index 05db976cc..a7dec52a1 100644 --- a/packages/editor/src/styles.css +++ b/packages/editor/src/styles.css @@ -384,6 +384,11 @@ span:focus .fake-cursor { margin: 0; } +.math-block .katex { + max-width: 100vw; + overflow-x: auto; +} + /* -- Selection Plugin ---------------------------------- */ /* p::selection, diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css index 05db976cc..a7dec52a1 100644 --- a/packages/editor/styles/styles.css +++ b/packages/editor/styles/styles.css @@ -384,6 +384,11 @@ span:focus .fake-cursor { margin: 0; } +.math-block .katex { + max-width: 100vw; + overflow-x: auto; +} + /* -- Selection Plugin ---------------------------------- */ /* p::selection,