소스 검색

fix: set an avatar icon size relative to the container

master
Bettenbuk Zoltan 6 년 전
부모
커밋
8eb93086bd
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      react/features/base/avatar/components/web/StatelessAvatar.js

+ 3
- 1
react/features/base/avatar/components/web/StatelessAvatar.js 파일 보기

43
                     className = { this._getAvatarClassName() }
43
                     className = { this._getAvatarClassName() }
44
                     id = { this.props.id }
44
                     id = { this.props.id }
45
                     style = { this._getAvatarStyle(this.props.color) }>
45
                     style = { this._getAvatarStyle(this.props.color) }>
46
-                    <Icon src = { url } />
46
+                    <Icon
47
+                        size = '50%'
48
+                        src = { url } />
47
                 </div>
49
                 </div>
48
             );
50
             );
49
         }
51
         }

Loading…
취소
저장