From c65a5199450a3013dbdabe905ab41d8af62da0ea Mon Sep 17 00:00:00 2001 From: fantasticit Date: Wed, 27 Apr 2022 14:35:28 +0800 Subject: [PATCH] tiptap: fix node width --- packages/client/src/tiptap/styles/node.scss | 10 +++++++++- packages/client/src/tiptap/styles/selection.scss | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/client/src/tiptap/styles/node.scss b/packages/client/src/tiptap/styles/node.scss index 75a1128..90e30d5 100644 --- a/packages/client/src/tiptap/styles/node.scss +++ b/packages/client/src/tiptap/styles/node.scss @@ -37,7 +37,15 @@ } .node-attachment, - .node-banner, + .node-countdown, + .node-iframe, + .node-codeBlock, + .node-documentChildren, + .node-documentReference { + width: 100%; + } + + .node-attachment, .node-countdown, .node-iframe, .node-katex, diff --git a/packages/client/src/tiptap/styles/selection.scss b/packages/client/src/tiptap/styles/selection.scss index b5bb29b..9d59669 100644 --- a/packages/client/src/tiptap/styles/selection.scss +++ b/packages/client/src/tiptap/styles/selection.scss @@ -22,7 +22,6 @@ } .node-attachment, - .node-banner, .node-countdown, .node-iframe, .node-katex,