From b40edbd04fd7c92521a3f563c37a42099d08db7d Mon Sep 17 00:00:00 2001 From: fantasticit Date: Sat, 2 Apr 2022 17:57:20 +0800 Subject: [PATCH] fix: fix style --- .../client/src/tiptap/wrappers/attachment/index.module.scss | 2 +- packages/client/src/tiptap/wrappers/attachment/index.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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} +
); }