diff --git a/static/js/chat_socket_functions/update_tickets_operations_manager.js b/static/js/chat_socket_functions/update_tickets_operations_manager.js index b30cdd1..93e18e2 100644 --- a/static/js/chat_socket_functions/update_tickets_operations_manager.js +++ b/static/js/chat_socket_functions/update_tickets_operations_manager.js @@ -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'}); } } diff --git a/static/js/chat_sockets.js b/static/js/chat_sockets.js index 6fbeaa8..e495418 100644 --- a/static/js/chat_sockets.js +++ b/static/js/chat_sockets.js @@ -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) // diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index c173137..29e457a 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -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")