From 82685314f7ec438b393f2fc672d0832bbdd602c2 Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Mon, 24 Nov 2025 14:18:13 +0500 Subject: [PATCH] editor: improve table cell styling (#8960) Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> --- packages/editor/styles/styles.css | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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 {