优化消息loading

This commit is contained in:
kuaifan 2023-03-03 23:19:37 +08:00
parent 1b693d782b
commit 947e5ed130

View File

@ -953,6 +953,7 @@
&.loading { &.loading {
height: 20px; height: 20px;
box-sizing: content-box;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
@ -1468,21 +1469,25 @@
} }
.dialog-wrapper-loading { .dialog-wrapper-loading {
width: 14px; width: 10px;
height: 8px; height: 10px;
display: inline-block; border-radius: 50%;
display: block;
margin: 0 auto;
position: relative; position: relative;
border-radius: 4px; background: #e3e3e3;
background: rgba($primary-text-color, 0.2); box-sizing: border-box;
animation: dialog-loading-animation 0.6s 0.3s ease infinite alternate; animation: dialog-loading-animation 0.5s linear infinite alternate;
} }
@keyframes dialog-loading-animation { @keyframes dialog-loading-animation {
0% { 0% {
width: 14px; box-shadow: 0 0, 0 0;
color: rgba(#e3e3e3, 0.2);
} }
100% { 100% {
width: 24px; box-shadow: -12px 0, 12px 0;
color: rgba(#e3e3e3, 0.8);
} }
} }