mirror of
https://github.com/dzeiocom/components.git
synced 2025-06-18 05:29:20 +00:00
fix: Moved to using gap
css instead of hacking
Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
@ -4,7 +4,6 @@
|
|||||||
max-width 100%
|
max-width 100%
|
||||||
flex-basis 0
|
flex-basis 0
|
||||||
flex-grow 1
|
flex-grow 1
|
||||||
padding $gapSize 0 0 $gapSize
|
|
||||||
|
|
||||||
&.nogrow
|
&.nogrow
|
||||||
max-width initial
|
max-width initial
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
.row
|
.row
|
||||||
display flex
|
display flex
|
||||||
flex-wrap wrap
|
flex-wrap wrap
|
||||||
margin (0 - $gapSize) 0 0 (0 - $gapSize)
|
&:not(.nogap)
|
||||||
|
gap $gapSize
|
||||||
|
|
||||||
.nowrap
|
.nowrap
|
||||||
flex-wrap nowrap
|
flex-wrap nowrap
|
||||||
|
@ -12,6 +12,7 @@ interface Props {
|
|||||||
nowrap?: boolean
|
nowrap?: boolean
|
||||||
nogrow?: boolean
|
nogrow?: boolean
|
||||||
className?: string
|
className?: string
|
||||||
|
nogap?: boolean
|
||||||
onClick?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>) => void
|
onClick?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,6 +28,7 @@ export default class Row extends React.Component<Props> {
|
|||||||
[css[`align-${this.props.align}`], this.props.align],
|
[css[`align-${this.props.align}`], this.props.align],
|
||||||
[css.nowrap, this.props.nowrap],
|
[css.nowrap, this.props.nowrap],
|
||||||
[css.nogrow, this.props.nogrow],
|
[css.nogrow, this.props.nogrow],
|
||||||
|
[css.nogap, this.props.nogap],
|
||||||
this.props.className
|
this.props.className
|
||||||
)}
|
)}
|
||||||
onClick={this.props.onClick}
|
onClick={this.props.onClick}
|
||||||
|
Reference in New Issue
Block a user