Преглед на файлове

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(),
     ],