mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-19 23:19:15 +08:00
fix(workflow): Fix the expand/collapse animation effect (#19398)
This commit is contained in:
parent
cbc8ebd8f5
commit
135b8bd4f5
@ -109,8 +109,10 @@ const IterationResultPanel: FC<Props> = ({
|
|||||||
className="h-px grow bg-divider-subtle"
|
className="h-px grow bg-divider-subtle"
|
||||||
></div>}
|
></div>}
|
||||||
<div className={cn(
|
<div className={cn(
|
||||||
'overflow-hidden transition-all duration-200',
|
'transition-all duration-200',
|
||||||
expandedIterations[index] ? 'max-h-[1000px] opacity-100' : 'max-h-0 opacity-0',
|
expandedIterations[index]
|
||||||
|
? 'opacity-100'
|
||||||
|
: 'max-h-0 opacity-0 overflow-hidden',
|
||||||
)}>
|
)}>
|
||||||
<TracingPanel
|
<TracingPanel
|
||||||
list={iteration}
|
list={iteration}
|
||||||
|
@ -115,8 +115,10 @@ const LoopResultPanel: FC<Props> = ({
|
|||||||
className="h-px grow bg-divider-subtle"
|
className="h-px grow bg-divider-subtle"
|
||||||
></div>}
|
></div>}
|
||||||
<div className={cn(
|
<div className={cn(
|
||||||
'overflow-hidden transition-all duration-200',
|
'transition-all duration-200',
|
||||||
expandedLoops[index] ? 'max-h-[1000px] opacity-100' : 'max-h-0 opacity-0',
|
expandedLoops[index]
|
||||||
|
? 'opacity-100'
|
||||||
|
: 'max-h-0 opacity-0 overflow-hidden',
|
||||||
)}>
|
)}>
|
||||||
{
|
{
|
||||||
loopVariableMap?.[index] && (
|
loopVariableMap?.[index] && (
|
||||||
|
@ -82,8 +82,10 @@ const LoopResultPanel: FC<Props> = ({
|
|||||||
className="h-px grow bg-divider-subtle"
|
className="h-px grow bg-divider-subtle"
|
||||||
></div>}
|
></div>}
|
||||||
<div className={cn(
|
<div className={cn(
|
||||||
'overflow-hidden transition-all duration-200',
|
'transition-all duration-200',
|
||||||
expandedLoops[index] ? 'max-h-[1000px] opacity-100' : 'max-h-0 opacity-0',
|
expandedLoops[index]
|
||||||
|
? 'opacity-100'
|
||||||
|
: 'max-h-0 opacity-0 overflow-hidden',
|
||||||
)}>
|
)}>
|
||||||
<TracingPanel
|
<TracingPanel
|
||||||
list={loop}
|
list={loop}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user