From 6e65cceb4453428a55f4ecb09e423c9ea8202541 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Wed, 13 Apr 2016 22:39:36 +0500 Subject: [PATCH] Updating notification styles Pretifying changes --- src/browser/index.jsx | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/src/browser/index.jsx b/src/browser/index.jsx index 5f8d7bb4..afe545c3 100644 --- a/src/browser/index.jsx +++ b/src/browser/index.jsx @@ -164,6 +164,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]; } @@ -181,13 +208,11 @@ var TabBar = React.createClass({ var badge; if (mentionCount != 0) { - badge = ( + badge = (
{ mentionCount } - ); +
); } else if (unreadCount > 0) { - badge = ( - • - ); + badge = (
); } return ( { team.name }