fix: Grid rows overlapping when using vertical gutter (#21518)

The clearfix was not enough when having columns of different heights because we have negative margin-top and margin-bottom on the grid rows when using vertical gutter. Instead of setting `clear: both` just for the `::after` pseudo-element, we should also set it for the `::before` one when we are dealing with an ant-row that was immediately preceded by another ant-row.
This commit is contained in:
Felipe Lima
2020-02-28 07:06:47 -03:00
committed by GitHub
parent 9ee1a903a3
commit 92b7902f4b

View File

@@ -10,6 +10,10 @@
box-sizing: border-box;
}
.@{ant-prefix}-row + .@{ant-prefix}-row::before {
clear: both;
}
.@{ant-prefix}-row-flex {
display: flex;
flex-flow: row wrap;