🐛(component): 修复avatar组件样式错乱

This commit is contained in:
宝宝宝 2022-09-26 04:56:00 +00:00
parent 9f3b3ad625
commit 404097e9fa
2 changed files with 12 additions and 3 deletions

View File

@ -15,7 +15,6 @@
color: #fff; color: #fff;
white-space: nowrap; white-space: nowrap;
text-align: center; text-align: center;
background: #ccc;
width: 32px; width: 32px;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
@ -44,4 +43,14 @@
.layui-avatar-list .layui-avatar { .layui-avatar-list .layui-avatar {
margin-left: -10px; margin-left: -10px;
display: inline-block; display: inline-block;
} }
.layui-avatar {
& > img {
width: 100%;
height: 100%;
background: #ccc;
display: block;
object-fit: cover;
}
}

View File

@ -95,7 +95,7 @@ fetchContributors();
display: inline-block; display: inline-block;
} }
.contributor img { .contributor span {
margin: 5px; margin: 5px;
} }