diff --git a/static/css/mobile_styles.css b/static/css/mobile_styles.css index 7e2394b..8a5332b 100644 --- a/static/css/mobile_styles.css +++ b/static/css/mobile_styles.css @@ -601,7 +601,7 @@ float: unset; } - .dectop_var_f_btns_temp{ + .desctop_var_f_btns_temp{ display: none; } diff --git a/static/js/global_js.js b/static/js/global_js.js index 8f6369b..8489506 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -61,7 +61,7 @@ function getInfoAboutUser (){ if (screen.width <= 700){ user_type = 'mobile' } else if (screen.width > 1024) { - user_type = 'dectop' + user_type = 'desctop' } else if (screen.width > 700 && screen.width < 1024) { user_type = 'laptop' } diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 0bec393..a14d1b8 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -677,6 +677,7 @@ function open_curtain_w_btn_profile () { last_open_curtain = curtain set_curtain_z_index(curtain) close_first_curt(curtain) + delete_margin_in_mobile() } function open_curtain_w_contacts () { @@ -693,6 +694,7 @@ function open_curtain_w_contacts () { set_curtain_z_index(curtain) last_open_curtain = curtain close_first_curt(curtain) + delete_margin_in_mobile() } function open_overlay (curtain) { @@ -722,6 +724,12 @@ function open_overlay (curtain) { } +function delete_margin_in_mobile () { + if (getInfoAboutUser() !== 'desctop'){ + let left_curtain = document.querySelector(".curtain.left") + left_curtain.classList.remove('margin') + } +} function toggle_cut_width_curtain (el) { let parent = el.parentNode @@ -796,7 +804,7 @@ function close_open_curtain () { function reAdressClickOnbackrground (event,el) { // let overlay = document.querySelector(".block_overlay") - if (!window.location.href.includes("profile") || getInfoAboutUser() === 'dectop'){ + if (!window.location.href.includes("profile") || getInfoAboutUser() === 'desctop'){ let element_click = document.elementFromPoint(event.pageX, event.pageY) if (!element_click || element_click === el){ element_click = document.querySelector(".block_overlay") diff --git a/templates/blocks/b_user_profile.html b/templates/blocks/b_user_profile.html index 1ee45da..2bd6127 100644 --- a/templates/blocks/b_user_profile.html +++ b/templates/blocks/b_user_profile.html @@ -11,7 +11,7 @@ {#
#} {# #} {# #} -{#