Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: fix callout margins

Ammar Ahmed505d71f1c773
diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css
index da170f8f4..3972a349f 100644
--- a/packages/editor/styles/styles.css
+++ b/packages/editor/styles/styles.css
@@ -659,8 +659,14 @@ p > *::selection {
padding: 15px;
border-radius: 10px;
background-color: rgba(var(--callout-color), 0.1);
+ margin-top: 1em;
}
+.ProseMirror div.callout:not(div.callout > p[data-spacing="single"]){
+ margin-bottom: 1em;
+}
+
+
.ProseMirror div.callout > :first-child {
margin: 0px;
color: rgb(var(--callout-color));