mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
use skeleton avatar
This commit is contained in:
parent
7bb4e34c23
commit
0a77fd5ea8
@ -49,7 +49,7 @@ export default (props) => {
|
||||
|
||||
if (!userData) {
|
||||
return <div className="userPreview">
|
||||
<Skeleton active />
|
||||
<Skeleton.Avatar active />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
@ -13,16 +13,27 @@
|
||||
}
|
||||
|
||||
.avatar {
|
||||
display: flex;
|
||||
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
margin-right: 10px;
|
||||
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
|
||||
margin-right: 10px;
|
||||
.lazy-load-image-background {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
img {
|
||||
object-fit: cover;
|
||||
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user