switch avatar initial layout to work with Open Sans
This commit is contained in:
parent
59d9b83099
commit
c67005c306
2 changed files with 4 additions and 4 deletions
|
@ -92,9 +92,9 @@ module.exports = React.createClass({
|
||||||
return (
|
return (
|
||||||
<span className="mx_MemberAvatar" {...this.props}>
|
<span className="mx_MemberAvatar" {...this.props}>
|
||||||
<span className="mx_MemberAvatar_initial" aria-hidden="true"
|
<span className="mx_MemberAvatar_initial" aria-hidden="true"
|
||||||
style={{ fontSize: (this.props.width * 0.75) + "px",
|
style={{ fontSize: (this.props.width * 0.65) + "px",
|
||||||
width: this.props.width + "px",
|
width: this.props.width + "px",
|
||||||
lineHeight: this.props.height*1.2 + "px" }}>{ initial }</span>
|
lineHeight: this.props.height + "px" }}>{ initial }</span>
|
||||||
<img className="mx_MemberAvatar_image" src={this.state.imageUrl} title={this.props.member.name}
|
<img className="mx_MemberAvatar_image" src={this.state.imageUrl} title={this.props.member.name}
|
||||||
onError={this.onError} width={this.props.width} height={this.props.height} />
|
onError={this.onError} width={this.props.width} height={this.props.height} />
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -155,9 +155,9 @@ module.exports = React.createClass({
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
<span className="mx_RoomAvatar_initial" aria-hidden="true"
|
<span className="mx_RoomAvatar_initial" aria-hidden="true"
|
||||||
style={{ fontSize: (this.props.width * 0.75) + "px",
|
style={{ fontSize: (this.props.width * 0.65) + "px",
|
||||||
width: this.props.width + "px",
|
width: this.props.width + "px",
|
||||||
lineHeight: this.props.height*1.2 + "px" }}>{ initial }</span>
|
lineHeight: this.props.height + "px" }}>{ initial }</span>
|
||||||
<img className="mx_RoomAvatar" src={this.state.imageUrl}
|
<img className="mx_RoomAvatar" src={this.state.imageUrl}
|
||||||
onError={this.onError} style={style} />
|
onError={this.onError} style={style} />
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in a new issue