From 2d1c9c1a93fbfaf55fa3bbec5cd39fd4ead0c2cf Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 31 Jan 2022 23:11:10 -0800 Subject: [PATCH] fix: Regression in header spacing --- app/editor/components/Styles.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/editor/components/Styles.ts b/app/editor/components/Styles.ts index 651e786b0..114fa6ce2 100644 --- a/app/editor/components/Styles.ts +++ b/app/editor/components/Styles.ts @@ -49,6 +49,19 @@ const EditorStyles = styled.div<{ margin-top: 0; } + h2, + h3, + h4, + h5, + h6 { + margin-top: 1em; + } + + h1 { + margin-top: .75em; + margin-bottom: 0.25em; + } + .ProseMirror-yjs-cursor { position: relative; margin-left: -1px; @@ -202,7 +215,6 @@ const EditorStyles = styled.div<{ h4, h5, h6 { - margin: 1em 0 0.5em; font-weight: 500; cursor: text;