From 4384eb1eb5e98bc10321a71f1a3a2f90ff80f885 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Tue, 23 Aug 2022 11:00:05 +0800 Subject: [PATCH] tiptap: fix style in table --- packages/client/src/tiptap/core/styles/table.scss | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/client/src/tiptap/core/styles/table.scss b/packages/client/src/tiptap/core/styles/table.scss index b8b4ff18..52ae460c 100644 --- a/packages/client/src/tiptap/core/styles/table.scss +++ b/packages/client/src/tiptap/core/styles/table.scss @@ -73,12 +73,10 @@ border: 1px solid rgb(232 235 237); border-color: var(--semi-color-fill-2); - > * { - margin-bottom: 0; - } - - > p { - margin-top: 0; + :not(a) { + &:first-of-type { + margin-top: 0; + } } }