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;
white-space: nowrap;
text-align: center;
background: #ccc;
width: 32px;
height: 32px;
line-height: 32px;
@ -45,3 +44,13 @@
margin-left: -10px;
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;
}
.contributor img {
.contributor span {
margin: 5px;
}