Fix topbar avatar
Fix chatlist unread badge empty size
This commit is contained in:
parent
bf0268c480
commit
904cecd370
@ -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');
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -191,6 +191,10 @@
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
|
||||
&-avatar {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
font-size: 14px;
|
||||
//line-height: 18px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user