소스 검색

avatar-image fix

Marco Volo 5 년 전
부모
커밋
2bb5a31fa4
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      client/components/cards/cardDetails.styl
  2. 2 0
      client/components/users/userAvatar.styl

+ 2 - 0
client/components/cards/cardDetails.styl

@@ -37,6 +37,8 @@ avatar-radius = 50%
       position: absolute
 
     &.avatar-image
+      object-fit: cover;
+      object-position: center;
       height: 100%
       width: @height
 

+ 2 - 0
client/components/users/userAvatar.styl

@@ -29,6 +29,8 @@ avatar-radius = 50%
       position: absolute
 
     &.avatar-image
+      object-fit: cover;
+      object-position: center;
       height: 100%
       width: @height