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