From 4d4c8b21acb097f0326ad7528b53f9f825138855 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 29 Aug 2025 14:35:37 +0800 Subject: [PATCH] chore: some tiny ui fix --- web/app/components/workflow/nodes/human-input/panel.tsx | 6 +++--- web/i18n/en-US/workflow.ts | 1 + web/i18n/zh-Hans/workflow.ts | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/web/app/components/workflow/nodes/human-input/panel.tsx b/web/app/components/workflow/nodes/human-input/panel.tsx index 516deec09b..fa046e9b81 100644 --- a/web/app/components/workflow/nodes/human-input/panel.tsx +++ b/web/app/components/workflow/nodes/human-input/panel.tsx @@ -60,7 +60,7 @@ const Panel: FC> = ({ const [isExpandFormContent, { toggle: toggleExpandFormContent, - }] = useBoolean(true) + }] = useBoolean(false) const panelWidth = useStore(state => state.panelWidth) return ( @@ -87,9 +87,9 @@ const Panel: FC> = ({
-
+
{ copy(inputs.form_content) diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index eb03ba3dbb..1a44d09302 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -965,6 +965,7 @@ const translation = { title: 'Form Content', tooltip: 'What users will see after opening the form. Supports Markdown formatting.', hotkeyTip: 'Press to insert variable, to insert input field', + preview: 'Preview', }, userActions: { title: 'User Actions', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index c5e697febb..7b4afda7a0 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -965,6 +965,7 @@ const translation = { title: '表单内容', tooltip: '用户打开表单后看到的内容。支持 Markdown 格式。', hotkeyTip: '按 插入变量,按 插入输入字段', + preview: '预览', }, userActions: { title: '用户操作',