diff --git a/css/style.scss b/css/style.scss index 2bee9f4a8..e3058b7a5 100644 --- a/css/style.scss +++ b/css/style.scss @@ -96,11 +96,24 @@ height: 32px; } -#app-navigation .app-navigation-entry-utils-counter span { - padding: 2px 5px; - border-radius: 10px; - background-color: $color-primary; - color: $color-primary-text; +#app-navigation .app-navigation-entry-utils-counter { + overflow: hidden; + text-align: right; + font-size: 9pt; + line-height: 44px; + padding: 0 12px; /* Same padding as all li > a in the app-navigation */ + + &.highlighted { + padding-right: 0; + text-align: center; + + span { + padding: 2px 5px; + border-radius: 10px; + background-color: $color-primary; + color: $color-primary-text; + } + } } .public-room { diff --git a/js/views/roomlistview.js b/js/views/roomlistview.js index 2e900e1e5..f3bef5877 100644 --- a/js/views/roomlistview.js +++ b/js/views/roomlistview.js @@ -37,7 +37,7 @@ var ITEM_TEMPLATE = ' {{displayName}}'+ '
'+ @@ -103,7 +103,8 @@ templateContext: function() { return { isDeletable: (this.model.get('participantType') === 1 || this.model.get('participantType') === 2) && - (Object.keys(this.model.get('participants')).length > 1 || this.model.get('numGuests') > 0) + (Object.keys(this.model.get('participants')).length > 1 || this.model.get('numGuests') > 0), + numUnreadMessages: this.model.get('unreadMessages') > 99 ? '99+' : this.model.get('unreadMessages') }; }, onRender: function() {