From c8f51dd6dbc7a86efc694fd3cc789d13ce8ac85c Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 21 Mar 2024 16:56:49 +0800 Subject: [PATCH] chore: edit code support line wrap --- .../workflow/nodes/_base/components/editor/code-editor/index.tsx | 1 + 1 file changed, 1 insertion(+) 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 1073ce536a..343c934600 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 @@ -100,6 +100,7 @@ const CodeEditor: FC = ({ quickSuggestions: false, minimap: { enabled: false }, lineNumbersMinChars: 1, // would change line num width + wordWrap: 'on', // auto line wrap // lineNumbers: (num) => { // return
{num}
// }