Skip to content

Commit e591303

Browse files
authored
fix: added shrinking to card children container (#1671)
1 parent 220e8c8 commit e591303

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/ui/card/card.component.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class Card extends React.Component<CardProps> {
152152
component={header}
153153
/>
154154
{header && <Divider />}
155-
<View style={evaStyle.body}>
155+
<View style={[ styles.content, evaStyle.body ]}>
156156
{children}
157157
</View>
158158
{footer && <Divider />}
@@ -172,4 +172,7 @@ const styles = StyleSheet.create({
172172
transparent: {
173173
backgroundColor: 'transparent',
174174
},
175+
content: {
176+
flexShrink: 1,
177+
}
175178
});

0 commit comments

Comments
 (0)