Prechádzať zdrojové kódy

fix: prompt editor insert cursor position (#5415)

zxhlyh 10 mesiacov pred
rodič
commit
940c2faea1

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