mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-18 12:22:56 +03:00
Browser tooltip being used instead of the HTML styled one.
This commit is contained in:
parent
6984a55b11
commit
e4dd6c8dbe
1 changed files with 4 additions and 2 deletions
|
@ -120,15 +120,17 @@ module.exports = React.createClass({
|
||||||
let nameHTML = emojifyText(name);
|
let nameHTML = emojifyText(name);
|
||||||
if (this.props.selected) {
|
if (this.props.selected) {
|
||||||
name = <span dangerouslySetInnerHTML={nameHTML}></span>;
|
name = <span dangerouslySetInnerHTML={nameHTML}></span>;
|
||||||
label = <div onMouseEnter={this.badgeOnMouseEnter} onMouseLeave={this.badgeOnMouseLeave} className={ className }>{ name }</div>;
|
label = <div title={ name } onMouseEnter={this.badgeOnMouseEnter} onMouseLeave={this.badgeOnMouseLeave} className={ className }>{ name }</div>;
|
||||||
} else {
|
} else {
|
||||||
label = <div onMouseEnter={this.badgeOnMouseEnter} onMouseLeave={this.badgeOnMouseLeave} className={ className } dangerouslySetInnerHTML={nameHTML}></div>;
|
label = <div title={ name } onMouseEnter={this.badgeOnMouseEnter} onMouseLeave={this.badgeOnMouseLeave} className={ className } dangerouslySetInnerHTML={nameHTML}></div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (this.state.hover) {
|
if (this.state.hover) {
|
||||||
var RoomTooltip = sdk.getComponent("rooms.RoomTooltip");
|
var RoomTooltip = sdk.getComponent("rooms.RoomTooltip");
|
||||||
tooltip = <RoomTooltip room={this.props.room}/>;
|
tooltip = <RoomTooltip room={this.props.room}/>;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
else if (this.state.hover) {
|
else if (this.state.hover) {
|
||||||
var RoomTooltip = sdk.getComponent("rooms.RoomTooltip");
|
var RoomTooltip = sdk.getComponent("rooms.RoomTooltip");
|
||||||
|
|
Loading…
Reference in a new issue