Skip to content

Commit 5f0c927

Browse files
authored
[elsa] fix(JadeObservableOutput): conditionally render description column to avoid empty space (#142)
1 parent 02fea81 commit 5f0c927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/elsa/fit-elsa-react/src/components/common/JadeObservableOutput.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export const TreeNode = ({
369369
/>
370370
</Form.Item>
371371
</Col>
372-
<Col flex={'0 0 100 px'} style={{alignSelf: 'normal'}}>
372+
{showDescription && <Col flex={'0 0 100 px'} style={{alignSelf: 'normal'}}>
373373
<Form.Item
374374
name={`description-${shape.id}-${key}`}
375375
id={`description-${node.id}-${key}`}
@@ -378,7 +378,7 @@ export const TreeNode = ({
378378
>
379379
{getDescription(level)}
380380
</Form.Item>
381-
</Col>
381+
</Col>}
382382
<Col flex='0 0 30px' style={{display: 'flex', justifyContent: 'center', alignItems: 'center'}}>
383383
<Button disabled={disabled || !(isObjectType(type))}
384384
type='text'

0 commit comments

Comments
 (0)