You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Merge pull request #1784 from matrix-org/luke/fix-group-avatar-default-colour
Fix varying default group avatar colour for given group
This commit is contained in:
@@ -154,7 +154,13 @@ export default React.createClass({
|
|||||||
</div> : <div />;
|
</div> : <div />;
|
||||||
return <AccessibleButton className={className} onClick={this.onClick}>
|
return <AccessibleButton className={className} onClick={this.onClick}>
|
||||||
<div className="mx_TagTile_avatar" onMouseOver={this.onMouseOver} onMouseOut={this.onMouseOut}>
|
<div className="mx_TagTile_avatar" onMouseOver={this.onMouseOver} onMouseOut={this.onMouseOut}>
|
||||||
<BaseAvatar name={name} url={httpUrl} width={avatarHeight} height={avatarHeight} />
|
<BaseAvatar
|
||||||
|
name={name}
|
||||||
|
idName={this.props.tag}
|
||||||
|
url={httpUrl}
|
||||||
|
width={avatarHeight}
|
||||||
|
height={avatarHeight}
|
||||||
|
/>
|
||||||
{ tip }
|
{ tip }
|
||||||
{ contextButton }
|
{ contextButton }
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -99,13 +99,23 @@ const GroupTile = React.createClass({
|
|||||||
{...provided.dragHandleProps}
|
{...provided.dragHandleProps}
|
||||||
>
|
>
|
||||||
<div className="mx_GroupTile_avatar">
|
<div className="mx_GroupTile_avatar">
|
||||||
<BaseAvatar name={name} url={httpUrl} width={avatarHeight} height={avatarHeight} />
|
<BaseAvatar
|
||||||
|
name={name}
|
||||||
|
idName={this.props.groupId}
|
||||||
|
url={httpUrl}
|
||||||
|
width={avatarHeight}
|
||||||
|
height={avatarHeight} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{ /* Instead of a blank placeholder, use a copy of the avatar itself. */ }
|
{ /* Instead of a blank placeholder, use a copy of the avatar itself. */ }
|
||||||
{ provided.placeholder ?
|
{ provided.placeholder ?
|
||||||
<div className="mx_GroupTile_avatar">
|
<div className="mx_GroupTile_avatar">
|
||||||
<BaseAvatar name={name} url={httpUrl} width={avatarHeight} height={avatarHeight} />
|
<BaseAvatar
|
||||||
|
name={name}
|
||||||
|
idName={this.props.groupId}
|
||||||
|
url={httpUrl}
|
||||||
|
width={avatarHeight}
|
||||||
|
height={avatarHeight} />
|
||||||
</div> :
|
</div> :
|
||||||
<div />
|
<div />
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user