diff --git a/packages/client/src/tiptap/wrappers/attachment/index.module.scss b/packages/client/src/tiptap/wrappers/attachment/index.module.scss index 076a440a..aff231f8 100644 --- a/packages/client/src/tiptap/wrappers/attachment/index.module.scss +++ b/packages/client/src/tiptap/wrappers/attachment/index.module.scss @@ -4,7 +4,7 @@ &.isPreviewing { &::after { - background-color: transparent !important ; + background-color: transparent !important; } } diff --git a/packages/client/src/tiptap/wrappers/attachment/index.tsx b/packages/client/src/tiptap/wrappers/attachment/index.tsx index 83d25e7b..00e557db 100644 --- a/packages/client/src/tiptap/wrappers/attachment/index.tsx +++ b/packages/client/src/tiptap/wrappers/attachment/index.tsx @@ -22,7 +22,7 @@ export const AttachmentWrapper = ({ editor, node, updateAttributes }) => { const [visible, toggleVisible] = useToggle(false); const selectFile = () => { - if (!isEditable || error || url) return; + if (!isEditable || url) return; isEditable && $upload.current.click(); }; @@ -110,7 +110,9 @@ export const AttachmentWrapper = ({ editor, node, updateAttributes }) => { if (error !== 'null') { return (
- {error} + + {error} +
); }