fix(web): 不太优雅地修复循环节点初始化高度的问题

This commit is contained in:
2025-07-14 23:34:58 +08:00
parent fa06207af8
commit 0efb041c71
2 changed files with 8 additions and 13 deletions

View File

@@ -11,16 +11,11 @@ const LoopNode = (props: NodeProps) => {
className={classnames('w-full', 'h-full', nodeClassName('loop'))}
style={{
minWidth: '350px',
minHeight: '200px'
minHeight: '290px'
}}
nodeProps={props}
extraNodeDescription={
<div
className="nodrag relative h-full w-full"
style={{
minHeight: '8rem',
}}
>
<div className="nodrag relative w-full h-full" style={{minHeight: '211px'}}>
<Background
id={`loop-background-${props.id}`}
className="rounded-xl"
@@ -33,7 +28,7 @@ const LoopNode = (props: NodeProps) => {
color={flowDotColor}
bgColor={flowBackgroundColor}
/>
<AddNodeButton className="mt-2 ml-2" parentId={props.id}/>
<AddNodeButton className="mt-2 ml-2" parent={props.id}/>
</div>
}
handler={<NormalNodeHandler/>}