From ca41b31eeae21f71f49fea10e303fce8698a6f93 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Sun, 1 May 2022 13:12:29 +0800 Subject: [PATCH] tiptap: fix mind wrap style --- .../src/tiptap/wrappers/mind/index.module.scss | 13 ------------- packages/client/src/tiptap/wrappers/mind/index.tsx | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/client/src/tiptap/wrappers/mind/index.module.scss b/packages/client/src/tiptap/wrappers/mind/index.module.scss index a0de798d..f62e7e52 100644 --- a/packages/client/src/tiptap/wrappers/mind/index.module.scss +++ b/packages/client/src/tiptap/wrappers/mind/index.module.scss @@ -12,17 +12,4 @@ background-color: transparent !important; } } - - .toolbarWrap { - position: absolute; - top: 50%; - left: 0; - opacity: 0; - } - - &:hover { - .toolbarWrap { - opacity: 1; - } - } } diff --git a/packages/client/src/tiptap/wrappers/mind/index.tsx b/packages/client/src/tiptap/wrappers/mind/index.tsx index 16df2e67..b771cf8b 100644 --- a/packages/client/src/tiptap/wrappers/mind/index.tsx +++ b/packages/client/src/tiptap/wrappers/mind/index.tsx @@ -10,7 +10,7 @@ import styles from './index.module.scss'; const { Text } = Typography; -const INHERIT_SIZE_STYLE = { width: '100%', height: '100%' }; +const INHERIT_SIZE_STYLE = { width: '100%', height: '100%', maxWidth: '100%' }; export const MindWrapper = ({ editor, node, updateAttributes }) => { const $container = useRef();