tiptap: fix mind wrap style

pull/31/head
fantasticit 2022-05-01 13:12:29 +08:00
parent dc77d730f2
commit ca41b31eea
2 changed files with 1 additions and 14 deletions

View File

@ -12,17 +12,4 @@
background-color: transparent !important;
}
}
.toolbarWrap {
position: absolute;
top: 50%;
left: 0;
opacity: 0;
}
&:hover {
.toolbarWrap {
opacity: 1;
}
}
}

View File

@ -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<HTMLDivElement>();