mirror of
https://github.com/langgenius/dify.git
synced 2026-02-11 05:24:39 +08:00
expand filled form content as default
This commit is contained in:
parent
d500a631f0
commit
3e1a96ad64
@ -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)
|
||||
|
||||
@ -32,6 +32,7 @@ const HumanInputFilledFormList = ({
|
||||
nodeTitle={getHumanInputNodeTitle(formData.node_id)}
|
||||
showExpandIcon
|
||||
className="bg-components-panel-bg"
|
||||
expanded
|
||||
>
|
||||
<SubmittedHumanInputContent
|
||||
key={formData.node_id}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user