fix: fix style

This commit is contained in:
fantasticit 2022-04-02 17:57:20 +08:00
parent 28f7c21b54
commit b40edbd04f
2 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,7 @@
&.isPreviewing { &.isPreviewing {
&::after { &::after {
background-color: transparent !important ; background-color: transparent !important;
} }
} }

View File

@ -22,7 +22,7 @@ export const AttachmentWrapper = ({ editor, node, updateAttributes }) => {
const [visible, toggleVisible] = useToggle(false); const [visible, toggleVisible] = useToggle(false);
const selectFile = () => { const selectFile = () => {
if (!isEditable || error || url) return; if (!isEditable || url) return;
isEditable && $upload.current.click(); isEditable && $upload.current.click();
}; };
@ -110,7 +110,9 @@ export const AttachmentWrapper = ({ editor, node, updateAttributes }) => {
if (error !== 'null') { if (error !== 'null') {
return ( return (
<div className={cls(styles.wrap, 'render-wrapper')} onClick={selectFile}> <div className={cls(styles.wrap, 'render-wrapper')} onClick={selectFile}>
<Text>{error}</Text> <Space>
<Text>{error}</Text>
</Space>
</div> </div>
); );
} }