Skip to content

Commit

Permalink
Merge pull request #637 from contember/fix/restrict-field-container-l…
Browse files Browse the repository at this point in the history
…abel-min-height

fix(ui): Restrict setting style to positions on left and right
  • Loading branch information
matej21 authored Oct 19, 2023
2 parents afac540 + 204a8a5 commit a94fe71
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,12 @@ export const FieldContainer = memo(
colorSchemeClassName(useColorScheme()),
classNameProp,
])}
style={useMemo(() => ({
'--cui-field-container--body-content-height': px(height),
...style,
}), [height, style])}
style={useMemo(() => labelPosition === 'left' || labelPosition === 'right'
? ({
'--cui-field-container--body-content-height': px(height),
...style,
})
: style, [height, labelPosition, style])}
>
{(label || labelDescription) && (
<span className={className('header')}>
Expand Down

0 comments on commit a94fe71

Please sign in to comment.