From bc40a0074ab3469fc302dd27423c2b3fe8e21079 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 25 Jan 2022 20:02:03 -0800 Subject: [PATCH] fix: Paragraph spacing --- app/editor/components/Styles.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/editor/components/Styles.ts b/app/editor/components/Styles.ts index 9c4d89e59..89b2104d8 100644 --- a/app/editor/components/Styles.ts +++ b/app/editor/components/Styles.ts @@ -39,7 +39,13 @@ const EditorStyles = styled.div<{ display: none; } - & > :first-child { + & > * { + margin-top: .5em; + margin-bottom: .5em; + } + + & > :first-child, + & > button:first-child + * { margin-top: 0; } @@ -101,7 +107,6 @@ const EditorStyles = styled.div<{ } .image { - margin: .5em 0; text-align: center; max-width: 100%; clear: both; @@ -490,7 +495,7 @@ const EditorStyles = styled.div<{ } p { - margin: 0.5em 0; + margin: 0; span:first-child + br:last-child { display: none;