From 3e1a96ad64aa98497c7ec337f90cdd5030bff859 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Tue, 6 Jan 2026 15:35:55 +0800 Subject: [PATCH] expand filled form content as default --- .../chat/chat/answer/human-input-content/content-wrapper.tsx | 4 +++- .../workflow/panel/human-input-filled-form-list.tsx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx b/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx index ab82a1720d..acd154e30a 100644 --- a/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx +++ b/web/app/components/base/chat/chat/answer/human-input-content/content-wrapper.tsx @@ -9,6 +9,7 @@ type ContentWrapperProps = { children: React.ReactNode showExpandIcon?: boolean className?: string + expanded?: boolean } const ContentWrapper = ({ @@ -16,8 +17,9 @@ const ContentWrapper = ({ children, showExpandIcon = false, className, + expanded = false, }: ContentWrapperProps) => { - const [isExpanded, setIsExpanded] = useState(false) + const [isExpanded, setIsExpanded] = useState(expanded) const handleToggleExpand = useCallback(() => { setIsExpanded(!isExpanded) diff --git a/web/app/components/workflow/panel/human-input-filled-form-list.tsx b/web/app/components/workflow/panel/human-input-filled-form-list.tsx index 02a03ce2aa..94ce49b962 100644 --- a/web/app/components/workflow/panel/human-input-filled-form-list.tsx +++ b/web/app/components/workflow/panel/human-input-filled-form-list.tsx @@ -32,6 +32,7 @@ const HumanInputFilledFormList = ({ nodeTitle={getHumanInputNodeTitle(formData.node_id)} showExpandIcon className="bg-components-panel-bg" + expanded >