expand filled form content as default

This commit is contained in:
JzoNg 2026-01-06 15:35:55 +08:00
parent d500a631f0
commit 3e1a96ad64
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -32,6 +32,7 @@ const HumanInputFilledFormList = ({
nodeTitle={getHumanInputNodeTitle(formData.node_id)}
showExpandIcon
className="bg-components-panel-bg"
expanded
>
<SubmittedHumanInputContent
key={formData.node_id}