diff --git a/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx b/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx index 343c934600..fb6f173e67 100644 --- a/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx +++ b/web/app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx @@ -86,27 +86,31 @@ const CodeEditor: FC = ({ isFocus={isFocus} minHeight={200} > - {/* https://www.npmjs.com/package/@monaco-editor/react */} - { - // return
{num}
- // } - }} - onMount={handleEditorDidMount} - /> + <> + {/* https://www.npmjs.com/package/@monaco-editor/react */} + { + // return
{num}
+ // } + }} + onMount={handleEditorDidMount} + /> + {/* mask to disable focus but left space to scroll and resize panel */} + {readOnly &&
} + ) diff --git a/web/app/components/workflow/nodes/question-classifier/panel.tsx b/web/app/components/workflow/nodes/question-classifier/panel.tsx index d4a8cde489..e953fbd2d8 100644 --- a/web/app/components/workflow/nodes/question-classifier/panel.tsx +++ b/web/app/components/workflow/nodes/question-classifier/panel.tsx @@ -63,6 +63,7 @@ const Panel: FC> = ({ >