Fix topbar avatar

Fix chatlist unread badge empty size
This commit is contained in:
Eduard Kuzmenko 2020-12-14 15:42:23 +02:00
parent bf0268c480
commit 904cecd370
3 changed files with 9 additions and 3 deletions

View File

@ -144,7 +144,7 @@ export default class ChatTopbar {
this.avatarElement = new AvatarElement();
this.avatarElement.setAttribute('dialog', '1');
this.avatarElement.setAttribute('clickable', '');
this.avatarElement.classList.add('avatar-40');
this.avatarElement.classList.add('avatar-40', 'person-avatar');
this.subtitle = document.createElement('div');
this.subtitle.classList.add('info');

View File

@ -1081,9 +1081,11 @@ export class AppDialogsManager {
//dom.unreadMessagesSpan.innerText = '' + (dialog.unread_count ? formatNumber(dialog.unread_count, 1) : ' ');
dom.unreadMessagesSpan.innerText = '' + (dialog.unread_count || ' ');
dom.unreadMessagesSpan.classList.add('unread');
} else if(isPinned) {
} else {
dom.unreadMessagesSpan.classList.remove('unread');
dom.unreadMessagesSpan.classList.add('tgico-pinnedchat');
if(isPinned) {
dom.unreadMessagesSpan.classList.add('tgico-pinnedchat');
}
}
}

View File

@ -191,6 +191,10 @@
align-items: center;
cursor: pointer;
&-avatar {
flex: 0 0 auto;
}
.bottom {
font-size: 14px;
//line-height: 18px;