From 465ff7838a86b827e1ffee5a49a527fa0f05df38 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 7 Aug 2025 17:25:15 +0800 Subject: [PATCH] fix: move style --- .../plugins/draggable-plugin/index.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx b/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx index d30dc2161e..692d3f76eb 100644 --- a/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx +++ b/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx @@ -32,7 +32,7 @@ export default function DraggableBlockPlugin({ const [draggableElement, setDraggableElement] = useState( null, ) -const [editor] = useLexicalComposerContext() + const [editor] = useLexicalComposerContext() const [isSupportDrag, setIsSupportDrag] = useState(false) @@ -55,12 +55,20 @@ const [editor] = useLexicalComposerContext() menuRef={menuRef as any} targetLineRef={targetLineRef as any} menuComponent={ - isSupportDrag ?
+ isSupportDrag ?
: null } targetLineComponent={ -
+
+
+
} isOnMenu={isOnMenu} onElementChanged={setDraggableElement}