Improve chat responsiveness

This commit is contained in:
Peter Maquiran
2021-05-21 11:57:16 +01:00
parent a5282ec416
commit fee5aada1a
3 changed files with 5 additions and 19 deletions
+3 -14
View File
@@ -327,17 +327,11 @@ sendMsg() {
async openMessagesModal(roomId:any){ async openMessagesModal(roomId:any){
this.closeAllDesktopComponents(); this.closeAllDesktopComponents();
let classs;
if( window.innerWidth <= 1024){
classs = 'modal'
} else {
classs = 'chat-mobile-modal-to-Desktop'
}
console.log(roomId); console.log(roomId);
const modal = await this.modalController.create({ const modal = await this.modalController.create({
component: MessagesPage, component: MessagesPage,
cssClass: classs, cssClass: 'modal modal-desktop',
componentProps: { componentProps: {
roomId: roomId, roomId: roomId,
}, },
@@ -347,17 +341,12 @@ sendMsg() {
} }
async openGroupMessagesModal(roomId:any){ async openGroupMessagesModal(roomId:any){
let classs;
if( window.innerWidth <= 1024){
classs = 'modal'
} else {
classs = 'chat-mobile-modal-to-Desktop'
}
console.log(roomId); console.log(roomId);
const modal = await this.modalController.create({ const modal = await this.modalController.create({
component: GroupMessagesPage, component: GroupMessagesPage,
cssClass: classs, cssClass: 'modal modal-desktop',
componentProps: { componentProps: {
roomId: roomId, roomId: roomId,
}, },
@@ -16,8 +16,6 @@
transform: translate3d(0, 1px, 0); transform: translate3d(0, 1px, 0);
.header-top{ .header-top{
width: 360px;
margin: 0px auto;
overflow: auto; overflow: auto;
padding: 0 !important; padding: 0 !important;
background: #fff; background: #fff;
@@ -36,7 +34,7 @@
} }
} }
.header-bottom{ .header-bottom{
width: 310px; padding-left: 10px;
overflow: auto; overflow: auto;
margin: 0 auto; margin: 0 auto;
@@ -12,8 +12,7 @@
//transform: translate3d(0, 1px, 0); //transform: translate3d(0, 1px, 0);
.header-top{ .header-top{
//width: 360px; width: 100%;
margin: 0px auto;
overflow: auto; overflow: auto;
padding: 0 !important; padding: 0 !important;
background: #fff; background: #fff;