mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Fix scrolling
This commit is contained in:
		@@ -18,14 +18,11 @@
 | 
				
			|||||||
	flex-direction: column;
 | 
						flex-direction: column;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.big-box-conversation .box-body .slimScrollDiv {
 | 
					 | 
				
			||||||
	flex: 1;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.big-box-conversation .direct-chat-messages {
 | 
					.big-box-conversation .direct-chat-messages {
 | 
				
			||||||
	flex: 1 1 auto;
 | 
						flex: 1 1 auto;
 | 
				
			||||||
	height: 0px;
 | 
						height: 0px;
 | 
				
			||||||
	overflow: auto;
 | 
						overflow: auto;
 | 
				
			||||||
 | 
						scroll-behavior: smooth;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.big-box-conversation .direct-chat-info span {
 | 
					.big-box-conversation .direct-chat-info span {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -330,7 +330,7 @@ const ConversationPageConvPart = {
 | 
				
			|||||||
		//Set a timeout to make scroll properly work (for newest messages)
 | 
							//Set a timeout to make scroll properly work (for newest messages)
 | 
				
			||||||
		if(toLatestMessages){
 | 
							if(toLatestMessages){
 | 
				
			||||||
			setTimeout(function(){
 | 
								setTimeout(function(){
 | 
				
			||||||
				messageContainer.scrollIntoView(false)
 | 
									messageContainer.parentNode.scrollTop = messageContainer.parentNode.scrollHeight
 | 
				
			||||||
			}, 100);
 | 
								}, 100);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user