Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: allow horizontal scroll for large math nodes

thecodrrf15d39597868
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,