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
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;
@@ -44,4 +43,14 @@
.layui-avatar-list .layui-avatar {
margin-left: -10px;
display: inline-block;
}
}
.layui-avatar {
& > img {
width: 100%;
height: 100%;
background: #ccc;
display: block;
object-fit: cover;
}
}