Merge pull request #8 from wangdabaoqq/avatar

🐛(component): 修复avatar组件样式错乱
This commit is contained in:
就眠儀式 2022-09-28 19:03:54 +08:00 committed by GitHub
commit c86913eec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
} }