mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-23 19:32:14 +00:00
fix: Moved to using gap
css instead of hacking
Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
parent
caa646b6d2
commit
2d8076e774
@ -4,7 +4,6 @@
|
||||
max-width 100%
|
||||
flex-basis 0
|
||||
flex-grow 1
|
||||
padding $gapSize 0 0 $gapSize
|
||||
|
||||
&.nogrow
|
||||
max-width initial
|
||||
|
@ -3,7 +3,8 @@
|
||||
.row
|
||||
display flex
|
||||
flex-wrap wrap
|
||||
margin (0 - $gapSize) 0 0 (0 - $gapSize)
|
||||
&:not(.nogap)
|
||||
gap $gapSize
|
||||
|
||||
.nowrap
|
||||
flex-wrap nowrap
|
||||
|
@ -12,6 +12,7 @@ interface Props {
|
||||
nowrap?: boolean
|
||||
nogrow?: boolean
|
||||
className?: string
|
||||
nogap?: boolean
|
||||
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.nowrap, this.props.nowrap],
|
||||
[css.nogrow, this.props.nogrow],
|
||||
[css.nogap, this.props.nogap],
|
||||
this.props.className
|
||||
)}
|
||||
onClick={this.props.onClick}
|
||||
|
Loading…
x
Reference in New Issue
Block a user