Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: prompt editor insert cursor position (#5415)

zxhlyh940c2faea1bc
diff --git a/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx b/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx
index 1e089592019..2500f72e8bc 100644
--- a/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx
+++ b/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(),
],