mirror of https://github.com/fantasticit/think.git
fix: fix style
This commit is contained in:
parent
28f7c21b54
commit
b40edbd04f
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
&.isPreviewing {
|
&.isPreviewing {
|
||||||
&::after {
|
&::after {
|
||||||
background-color: transparent !important ;
|
background-color: transparent !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue