Fix loading card padding

This commit is contained in:
afc163 2017-08-02 21:11:20 +08:00
parent ecc18ef3a6
commit bb7c580e4b
3 changed files with 9 additions and 2 deletions

View File

@ -233,7 +233,9 @@ exports[`renders ./components/card/demo/loading.md correctly 1`] = `
<div
class="ant-card-body"
>
<div>
<div
class="ant-card-loading-content"
>
<p
class="ant-card-loading-block"
style="width:94%;"

View File

@ -84,7 +84,7 @@ export default class Card extends Component<CardProps> {
if (loading) {
children = (
<div>
<div className={`${prefixCls}-loading-content`}>
<p className={`${prefixCls}-loading-block`} style={{ width: '94%' }} />
<p>
<span className={`${prefixCls}-loading-block`} style={{ width: '28%' }} />

View File

@ -54,6 +54,11 @@
&-loading &-body {
user-select: none;
padding: 0;
}
&-loading-content {
padding: @card-padding-base;
}
&-loading-block {