Fix time with last document in bubble
This commit is contained in:
parent
1b67588fc0
commit
016417cca6
@ -1749,6 +1749,9 @@ export default class ChatBubbles {
|
||||
if(newNameContainer) {
|
||||
nameContainer = newNameContainer;
|
||||
}
|
||||
|
||||
const lastContainer = messageDiv.lastElementChild.querySelector('.document-size');
|
||||
lastContainer && lastContainer.append(timeSpan.cloneNode(true));
|
||||
|
||||
if(pending.type == 'voice') {
|
||||
bubble.classList.add('bubble-audio');
|
||||
@ -2000,6 +2003,9 @@ export default class ChatBubbles {
|
||||
nameContainer = newNameContainer;
|
||||
}
|
||||
|
||||
const lastContainer = messageDiv.lastElementChild.querySelector('.document-size');
|
||||
lastContainer && lastContainer.append(timeSpan.cloneNode(true));
|
||||
|
||||
bubble.classList.remove('is-message-empty');
|
||||
messageDiv.classList.add((doc.type != 'photo' ? doc.type || 'document' : 'document') + '-message');
|
||||
processingWebPage = true;
|
||||
|
@ -272,7 +272,8 @@ export default class PopupNewMedia extends PopupElement {
|
||||
url: params.objectURL
|
||||
}
|
||||
}
|
||||
} as any
|
||||
} as any,
|
||||
uploading: true
|
||||
});
|
||||
|
||||
const finish = () => {
|
||||
|
@ -1064,6 +1064,12 @@ $bubble-margin: .25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.document-container .time.tgico {
|
||||
position: relative !important;
|
||||
height: 0px !important;
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
&.is-multiple-documents {
|
||||
/* .bubble__container {
|
||||
position: unset;
|
||||
|
@ -100,7 +100,7 @@
|
||||
white-space: nowrap;
|
||||
color: $color-gray;
|
||||
font-size: 14px;
|
||||
padding-right: 32px;
|
||||
//padding-right: 32px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user