mobile === false

This commit is contained in:
SBD
2023-12-29 19:45:43 +05:00
parent f80e2844bf
commit b31241872f
2 changed files with 26 additions and 11 deletions

View File

@@ -533,14 +533,17 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){
document.querySelector(".info_profile").innerHTML = data.html;
document.querySelector(".enter-message-inp").focus()
document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'end',inline:'end'});
if (getInfoAboutUser() === 'mobile' || getInfoAboutUser() === 'laptop'){
window.scrollTo({
top: 0,
left: 0
// behavior: "smooth",
});
}
// document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'center',inline: 'start'});
let top = document.querySelector(".tab_user_messanger.select").offsetTop
document.querySelector(".menu_buttons.curtain.left.open").scrollTo({top:top})
// if (getInfoAboutUser() === 'mobile' || getInfoAboutUser() === 'laptop'){
// window.scrollTo({
// top: 0,
// left: 0
// // behavior: "smooth",
// });
// }
// if (window.location.host.includes('support') && user_type !== 'mobile' && user_type !== 'laptop'){
// let menu = document.querySelector(".menu_buttons.curtain.left")
// let container_user_messenger = document.querySelector(".container-messenger")