Skip to content

Commit

Permalink
fix: Margin jumping on empty paragraph below heading
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Apr 23, 2024
1 parent d550054 commit c8a0343
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/editor/components/Styles.ts
Expand Up @@ -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;
}
Expand Down

0 comments on commit c8a0343

Please sign in to comment.