From 9eff8715fb8845db49bf579740d5fb28a91dde56 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 27 Mar 2024 13:38:14 +0800 Subject: [PATCH 1/2] fix: model params in question classify --- web/app/components/workflow/nodes/question-classifier/panel.tsx | 1 + 1 file changed, 1 insertion(+) 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> = ({ > Date: Wed, 27 Mar 2024 13:49:22 +0800 Subject: [PATCH 2/2] fix: code editor readonly can get focus --- .../components/editor/code-editor/index.tsx | 46 ++++++++++--------- 1 file changed, 25 insertions(+), 21 deletions(-) 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 &&
} + )