From 51e3012dc6710e59b320508e77b6e97a4fbff6ad Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 19 Dec 2018 16:37:25 +0800 Subject: [PATCH] :lipstick: Fix card loading edge when height is specified and small --- components/card/style/index.less | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/components/card/style/index.less b/components/card/style/index.less index 6f75165c2f..effdb88e73 100644 --- a/components/card/style/index.less +++ b/components/card/style/index.less @@ -231,6 +231,21 @@ } } + &-loading { + overflow: hidden; + position: relative; + + &:after { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: @card-padding-base; + background: @component-background; + content: ''; + } + } + &-loading &-body { user-select: none; }