UI to set Room Avatars
This commit is contained in:
parent
d66427ddde
commit
e844b7aa21
3 changed files with 39 additions and 4 deletions
|
@ -43,9 +43,13 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
render: function() {
|
||||
var style = {
|
||||
'max-width': this.props.width,
|
||||
'max-height': this.props.height,
|
||||
};
|
||||
return (
|
||||
<img className="mx_RoomAvatar" src={this.state.imageUrl} onError={this.onError}
|
||||
width={this.props.width} height={this.props.height}
|
||||
style={style}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue