From 7d3da34e2226a25a6b8e04ed450ad32c17bd9f36 Mon Sep 17 00:00:00 2001 From: SBD Date: Sat, 2 Dec 2023 15:55:47 +0300 Subject: [PATCH] 0.8.450 --- static/css/styles.css | 1 + static/js/user_profile_2.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/css/styles.css b/static/css/styles.css index 45474cb..452fd8e 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -145,6 +145,7 @@ html, body{ max-width: 1280px; position: relative; min-height: 695px; + max-height: 100%; } .wrapper_content.m_h_0{ diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 094249e..5898ba1 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -36,6 +36,7 @@ function select_tab_profile (el,url,owner_type=null) { // enctype: 'json', data: JSON.stringify(data), success: function(data){ + let scroll_top = window.scrollY document.querySelector(".info_profile").innerHTML = data.html; let list_div = document.querySelectorAll('.menu_profile div'); list_div.forEach(el=>{ el.classList.remove('selected'); }); @@ -61,7 +62,10 @@ function select_tab_profile (el,url,owner_type=null) { // block: "end", // inline:'nearest' // }) - document.querySelector("body").scrollTop = 0 + window.scrollTo({ + top: 0, + behavior: "smooth", + }); middleWareJS() let user_type = getInfoAboutUser() if (user_type === 'mobile') {