From 85dd54db3d89a098d2d8aa5bb27a32890b62834e Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 12 Nov 2020 21:51:20 -0800 Subject: [PATCH] fix: Consistent spacing when first item in document is a header --- app/components/Editor.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/components/Editor.js b/app/components/Editor.js index 4c3cb476..22c5b949 100644 --- a/app/components/Editor.js +++ b/app/components/Editor.js @@ -114,6 +114,15 @@ const StyledEditor = styled(RichMarkdownEditor)` margin-top: 72px !important; } + .heading-name:first-child { + & + h1, + & + h2, + & + h3, + & + h4 { + margin-top: 0; + } + } + p { a { color: ${(props) => props.theme.text};