Refactor so that the tooltip positional tweaks can be done in CSS rather than passed in as parameters

This commit is contained in:
wmwragg 2016-09-09 06:56:54 +01:00
parent 38ac520e1e
commit 7cb48e0d2d
5 changed files with 20 additions and 18 deletions

View file

@ -79,7 +79,7 @@ module.exports = React.createClass({
getLabel: function(label, show) {
if (show) {
var RoomTooltip = sdk.getComponent("rooms.RoomTooltip");
return <RoomTooltip label={label} left={6} top={this.props.collapsed ? 3 : null} />;
return <RoomTooltip className="mx_BottomLeftMenu_tooltip" label={label} />;
}
},