This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
src/components/views/avatars Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -145,16 +145,20 @@ module.exports = React.createClass({
145
145
146
146
if ( imageUrl === this . state . defaultImageUrl ) {
147
147
const initialLetter = this . _getInitialLetter ( name ) ;
148
- const textNode = < EmojiText className = "mx_BaseAvatar_initial" aria-hidden = "true"
149
- style = { { fontSize : ( width * 0.65 ) + "px" ,
150
- width : width + "px" ,
151
- lineHeight : height + "px" } }
152
- >
153
- { initialLetter }
154
- </ EmojiText > ;
155
- const imgNode = < img className = "mx_BaseAvatar_image" src = { imageUrl }
148
+ const textNode = (
149
+ < EmojiText className = "mx_BaseAvatar_initial" aria-hidden = "true"
150
+ style = { { fontSize : ( width * 0.65 ) + "px" ,
151
+ width : width + "px" ,
152
+ lineHeight : height + "px" } }
153
+ >
154
+ { initialLetter }
155
+ </ EmojiText >
156
+ ) ;
157
+ const imgNode = (
158
+ < img className = "mx_BaseAvatar_image" src = { imageUrl }
156
159
alt = "" title = { title } onError = { this . onError }
157
- width = { width } height = { height } /> ;
160
+ width = { width } height = { height } />
161
+ ) ;
158
162
if ( onClick != null ) {
159
163
return (
160
164
< AccessibleButton element = 'span' className = "mx_BaseAvatar"
You can’t perform that action at this time.
0 commit comments