Updated tooltip styling to be better inline with the design

This commit is contained in:
wmwragg 2016-09-03 13:57:49 +01:00
parent ab9f48cd47
commit d1dd4bd3d8
3 changed files with 22 additions and 6 deletions
src/components
structures
views/rooms

View file

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

View file

@ -103,8 +103,8 @@ module.exports = React.createClass({
var tooltip = (
<div className="mx_RoomTooltip" style={style} >
<img className="mx_RoomTooltip_chevron" src="img/chevron-left.png" width="9" height="16"/>
{ label }
<div className="mx_RoomTooltip_chevron"></div>
{ label }
</div>
);