File tree Expand file tree Collapse file tree
packages/builder-web-core/widgets-native/flex Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,13 +124,15 @@ export class Flex extends MultiChildWidget implements CssMinHeightMixin {
124124 ...css . justifyContent ( this . mainAxisAlignment ) ,
125125 "flex-direction" : direction ( this . direction ) ,
126126 "align-items" : flex_align_items ( this . crossAxisAlignment ) ,
127- flex : this . flex ,
127+ flex : this . flex > 0 ? this . flex : undefined ,
128128 "flex-wrap" : this . flexWrap ,
129129 gap :
130130 // if justify-content is set to space-between, do not set the gap.
131131 this . mainAxisAlignment == MainAxisAlignment . spaceBetween
132132 ? undefined
133- : this . itemSpacing && css . px ( this . itemSpacing ) ,
133+ : this . itemSpacing > 0
134+ ? css . px ( this . itemSpacing )
135+ : undefined ,
134136 "box-shadow" : css . boxshadow ( ...( this . boxShadow ?? [ ] ) ) ,
135137 ...css . border ( this . border ) ,
136138 ...css . borderRadius ( this . borderRadius ) ,
You can’t perform that action at this time.
0 commit comments