diff --git a/web/app/components/workflow/nodes/human-input/components/form-content.tsx b/web/app/components/workflow/nodes/human-input/components/form-content.tsx index 203e8693a7..01239b32e1 100644 --- a/web/app/components/workflow/nodes/human-input/components/form-content.tsx +++ b/web/app/components/workflow/nodes/human-input/components/form-content.tsx @@ -24,6 +24,7 @@ type Props = { onFormInputItemRename: (payload: FormInputItem, oldName: string) => void onFormInputItemRemove: (varName: string) => void editorKey: number + isExpand: boolean } const Key: FC<{ children: React.ReactNode, className?: string }> = ({ children, className }) => { @@ -44,6 +45,7 @@ const FormContent: FC = ({ onFormInputItemRename, onFormInputItemRemove, editorKey, + isExpand, }) => { const { t } = useTranslation() const filterVar = () => true @@ -90,12 +92,13 @@ const FormContent: FC = ({ }] = useBoolean(false) return ( -
+
= ({ }]} /> {isFocus && ( -
+
> = ({ }, }) + const [isExpandFormContent, { + toggle: toggleExpandFormContent, + }] = useBoolean(true) + const panelWidth = useStore(state => state.panelWidth) + return (
{/* delivery methods */} @@ -61,14 +76,32 @@ const Panel: FC> = ({
{/* form content */} -
-
+
+
{t(`${i18nPrefix}.formContent.title`)}
+
+ +
+
+
{ + copy(inputs.form_content) + Toast.notify({ type: 'success', message: t('common.actionMsg.copySuccessfully') }) + }}> + +
+
+ {isExpandFormContent ? : } +
+
+
> = ({ onFormInputsChange={handleFormInputsChange} onFormInputItemRename={handleFormInputItemRename} onFormInputItemRemove={handleFormInputItemRemove} + isExpand={isExpandFormContent} />
{/* user actions */}