fix: don't show empty items in Space component (#26721)

This commit is contained in:
Knut Olav Bøhmer 2020-09-14 04:53:47 +02:00 committed by GitHub
parent 737bd60f23
commit ab3d0ea8de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
@import '../../style/mixins/index';
@space-prefix-cls: ~'@{ant-prefix}-space';
@space-item-prefix-cls: ~'@{ant-prefix}-space-item';
.@{space-prefix-cls} {
display: inline-flex;
@ -25,4 +26,10 @@
}
}
.@{space-item-prefix-cls} {
&:empty {
display: none;
}
}
@import './rtl';