Merge pull request #1431 from matrix-org/luke/feature-flair-tooltip

Give flair avatars a tooltip = the group ID
pull/21833/head
David Baker 2017-09-27 14:44:25 +01:00 committed by GitHub
commit 2d8bc783b0
1 changed files with 6 additions and 1 deletions

View File

@ -157,7 +157,12 @@ class FlairAvatar extends React.Component {
render() {
const httpUrl = this.context.matrixClient.mxcUrlToHttp(
this.props.groupProfile.avatarUrl, 14, 14, 'scale', false);
return <img src={httpUrl} width="14px" height="14px" onClick={this.onClick}/>;
return <img
src={httpUrl}
width="14px"
height="14px"
onClick={this.onClick}
title={this.props.groupProfile.groupId} />;
}
}