From f15d395978685571dfd40ad3b3376d1fc3acccd2 Mon Sep 17 00:00:00 2001 From: thecodrr Date: Wed, 27 Jul 2022 16:08:26 +0500 Subject: [PATCH] fix: allow horizontal scroll for large math nodes --- packages/editor/src/styles.css | 5 +++++ packages/editor/styles/styles.css | 5 +++++ 2 files changed, 10 insertions(+) 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,