Skip to content

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

editor: improve table cell styling (#8960)

01zulfi82685314f7ec
diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css
index 1362eb640..85e398942 100644
--- a/packages/editor/styles/styles.css
+++ b/packages/editor/styles/styles.css
@@ -316,6 +316,31 @@ img.ProseMirror-separator {
.ProseMirror table p {
margin: 0;
}
+
+.ProseMirror td > h1:first-child,
+.ProseMirror td > h2:first-child,
+.ProseMirror td > h3:first-child,
+.ProseMirror td > h4:first-child,
+.ProseMirror td > h5:first-child,
+.ProseMirror td > h6:first-child {
+ margin-top: 0;
+}
+
+.ProseMirror td > ol,
+.ProseMirror td > ul {
+ padding-left: 20px;
+ margin-top: 0;
+}
+
+.ProseMirror td > blockquote {
+ margin-left: 0;
+ margin-top: 0;
+}
+
+.ProseMirror td > blockquote > :first-child {
+ margin-top: 0;
+}
+
/*
.resize-cursor {