diff --git a/src/browser/index.jsx b/src/browser/index.jsx index ce266237..9d4408d9 100644 --- a/src/browser/index.jsx +++ b/src/browser/index.jsx @@ -165,6 +165,33 @@ var TabBar = React.createClass({ var thisObj = this; var tabs = this.props.teams.map(function(team, index) { var unreadCount = 0; + var badgeStyle = { + unread: { + background: '#383838', + float: 'right', + color: 'white', + textAlign: 'center', + marginTop: '5px', + width: '10px', + height: '10px', + marginLeft: '5px', + borderRadius: '50%', + }, + + mention: { + background: '#f1342c', + float: 'right', + color: 'white', + minWidth: '19px', + fontSize: '12px', + textAlign: 'center', + lineHeight: '20px', + height: '19px', + marginLeft: '5px', + borderRadius: '50%', + } + }; + if (thisObj.props.unreadCounts[index] > 0) { unreadCount = thisObj.props.unreadCounts[index]; } @@ -182,13 +209,11 @@ var TabBar = React.createClass({ var badge; if (mentionCount != 0) { - badge = ( + badge = (
{ mentionCount } - ); +
); } else if (unreadCount > 0) { - badge = ( - • - ); + badge = (
); } var id = 'teamTabItem' + index; return (