diff --git a/package/component/src/component/avatar/index.less b/package/component/src/component/avatar/index.less index 63eaa67b..cbeb3cd8 100644 --- a/package/component/src/component/avatar/index.less +++ b/package/component/src/component/avatar/index.less @@ -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; -} \ No newline at end of file +} + +.layui-avatar { + & > img { + width: 100%; + height: 100%; + background: #ccc; + display: block; + object-fit: cover; + } +} diff --git a/package/document-component/src/components/LayContributor.vue b/package/document-component/src/components/LayContributor.vue index c350d1f7..29abe370 100644 --- a/package/document-component/src/components/LayContributor.vue +++ b/package/document-component/src/components/LayContributor.vue @@ -95,7 +95,7 @@ fetchContributors(); display: inline-block; } -.contributor img { +.contributor span { margin: 5px; }