This commit is contained in:
SBD
2023-11-29 16:55:26 +03:00
parent 3a0845fe2a
commit 453d4b7349
3 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ function select_and_scroll_to_ticket (data,old_item_tab_user,el_tab){
let old_insert_tab = document.querySelector(`[data-cur-receiver-item="${old_item_tab_user}"]`)
if (old_insert_tab) {
old_insert_tab.classList.add("select")
old_insert_tab.scrollIntoView({behavior: "smooth"});
old_insert_tab.scrollIntoView({behavior: "smooth",block:'end',inline:'end'});
}
}

View File

@@ -37,6 +37,7 @@ function wsReceiveData (e) {
let msg_cont = document.querySelector(".container-messages")
update_chat_html(data,msg_cont)
// document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'end',inline:'end'});
// update_tickets_w_manager(data,old_item_tab_user)
//

View File

@@ -497,8 +497,7 @@ 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'});
document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'end',inline:'end'});
// 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")