diff --git a/src/components/chat/bubbles.ts b/src/components/chat/bubbles.ts index a1715386..8a24e79f 100644 --- a/src/components/chat/bubbles.ts +++ b/src/components/chat/bubbles.ts @@ -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; diff --git a/src/components/popups/newMedia.ts b/src/components/popups/newMedia.ts index 94ce779e..c82463c7 100644 --- a/src/components/popups/newMedia.ts +++ b/src/components/popups/newMedia.ts @@ -272,7 +272,8 @@ export default class PopupNewMedia extends PopupElement { url: params.objectURL } } - } as any + } as any, + uploading: true }); const finish = () => { diff --git a/src/scss/partials/_chatBubble.scss b/src/scss/partials/_chatBubble.scss index 00ab8840..a55b50d8 100644 --- a/src/scss/partials/_chatBubble.scss +++ b/src/scss/partials/_chatBubble.scss @@ -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; diff --git a/src/scss/partials/_document.scss b/src/scss/partials/_document.scss index 2a58d959..70b5d864 100644 --- a/src/scss/partials/_document.scss +++ b/src/scss/partials/_document.scss @@ -100,7 +100,7 @@ white-space: nowrap; color: $color-gray; font-size: 14px; - padding-right: 32px; + //padding-right: 32px; line-height: 1.3; } }