fix: Responsive issue in activity message (#2090)

This commit is contained in:
Sivin Varghese 2021-04-13 22:58:54 +05:30 committed by GitHub
parent 3e8c25b4a0
commit 997447364c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View file

@ -143,6 +143,10 @@ export default {
return `https://twitter.com/${screenName}`;
},
alignBubble() {
const { message_type: messageType } = this.data;
if (messageType === MESSAGE_TYPE.ACTIVITY) {
return 'center';
}
return !this.data.message_type ? 'left' : 'right';
},
readableTime() {