Browse Source

fix(style): keep Spin's container height the same as son element (#42163)

pull/42242/head
cheapCoder 2 years ago
committed by GitHub
parent
commit
0371a933bf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/spin/style/index.less

2
components/spin/style/index.less

@ -10,6 +10,7 @@
position: absolute; position: absolute;
display: none; display: none;
color: @primary-color; color: @primary-color;
font-size: 0;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
opacity: 0; opacity: 0;
@ -43,6 +44,7 @@
top: 50%; top: 50%;
width: 100%; width: 100%;
padding-top: ((@spin-dot-size - @font-size-base) / 2) + 2px; padding-top: ((@spin-dot-size - @font-size-base) / 2) + 2px;
font-size: @font-size-base;
text-shadow: 0 1px 2px @shadow-color-inverse; text-shadow: 0 1px 2px @shadow-color-inverse;
} }
&.@{spin-prefix-cls}-show-text .@{spin-prefix-cls}-dot { &.@{spin-prefix-cls}-show-text .@{spin-prefix-cls}-dot {

Loading…
Cancel
Save