瀏覽代碼

fix: prompt editor insert cursor position (#5415)

zxhlyh 10 月之前
父節點
當前提交
940c2faea1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx

+ 1 - 1
web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx

@@ -57,7 +57,7 @@ const ComponentPicker = ({
   const { refs, floatingStyles, elements } = useFloating({
     placement: 'bottom-start',
     middleware: [
-      offset(16), // fix hide cursor
+      offset(0), // fix hide cursor
       shift(),
       flip(),
     ],