mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
Fix loading card padding
This commit is contained in:
parent
ecc18ef3a6
commit
bb7c580e4b
@ -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%;"
|
||||
|
@ -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%' }} />
|
||||
|
@ -54,6 +54,11 @@
|
||||
|
||||
&-loading &-body {
|
||||
user-select: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&-loading-content {
|
||||
padding: @card-padding-base;
|
||||
}
|
||||
|
||||
&-loading-block {
|
||||
|
Loading…
Reference in New Issue
Block a user