make selected room more skinnable

pull/21833/head
Matthew Hodgson 2016-04-14 21:11:10 +01:00
parent 0741e8a5c1
commit 2d71d4422e
1 changed files with 4 additions and 1 deletions

View File

@ -104,7 +104,10 @@ module.exports = React.createClass({
var label;
if (!this.props.collapsed) {
var className = 'mx_RoomTile_name' + (this.props.isInvite ? ' mx_RoomTile_invite' : '');
label = <div className={ className }>{name}</div>;
if (this.props.selected) {
name = <span>{ name }</span>;
}
label = <div className={ className }>{ name }</div>;
}
else if (this.state.hover) {
var RoomTooltip = sdk.getComponent("rooms.RoomTooltip");