From c8a0343cf58c6c4d4d5bcd1f1918793904c69b95 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 23 Apr 2024 19:48:09 -0400 Subject: [PATCH] fix: Margin jumping on empty paragraph below heading --- shared/editor/components/Styles.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index f5499bd1c..2231cc05a 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -339,7 +339,9 @@ width: 100%; font-weight: 600; cursor: text; - & + p { + & + p, + // accounts for block insert trigger and other widgets between heading and paragraph + & + .ProseMirror-widget + p { margin-top: 0.25em; }