Improved unread split styles, now showing with 2+ unreads
This commit is contained in:
parent
ed48295a33
commit
85c1e95e65
@ -897,7 +897,8 @@ a.im_dialog:hover .im_dialog_date {
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
.im_message_unread_split {
|
.im_message_unread_split {
|
||||||
background: #E9EBED;
|
background: #f4f4f4;
|
||||||
|
color: #777;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 4px 10px;
|
padding: 4px 10px;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
|
@ -805,7 +805,7 @@ angular.module('myApp.services', [])
|
|||||||
var unreadLimit = false;
|
var unreadLimit = false;
|
||||||
if (!limit && !maxID) {
|
if (!limit && !maxID) {
|
||||||
var foundDialog = getDialogByPeerID(peerID);
|
var foundDialog = getDialogByPeerID(peerID);
|
||||||
if (foundDialog && foundDialog[0] && foundDialog[0].unread_count > 0) {
|
if (foundDialog && foundDialog[0] && foundDialog[0].unread_count > 1) {
|
||||||
unreadLimit = foundDialog[0].unread_count;
|
unreadLimit = foundDialog[0].unread_count;
|
||||||
limit = Math.max(20, unreadLimit + 2);
|
limit = Math.max(20, unreadLimit + 2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user