From dd2cc62d01a5775024ae7af80d3649944899827c Mon Sep 17 00:00:00 2001 From: borissedw Date: Fri, 10 Nov 2023 16:21:08 +0300 Subject: [PATCH] 0.0.340 --- static/css/mobile_styles.css | 8 ++++---- static/js/user_profile_2.js | 17 ++++++++++------- templates/blocks/profile/b_profile.html | 2 +- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/static/css/mobile_styles.css b/static/css/mobile_styles.css index db87c21..1d93519 100644 --- a/static/css/mobile_styles.css +++ b/static/css/mobile_styles.css @@ -553,9 +553,9 @@ display: block; } - /* .block_overlay.show{*/ - /* display: block;*/ - /*}*/ + .block_overlay.show{ + display: block; + } /*этот стиль перекрывал блок диалога в сообщения блюром*/ .text_f_curtain{ @@ -581,7 +581,7 @@ /*background: rgba(39, 53, 62, 0.7);*/ backdrop-filter: blur(6px); z-index: 100; - position: absolute; + position: fixed; top: -55px; right: 0; } diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 3c79c3d..c0044e7 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -37,8 +37,8 @@ function select_tab_profile (el,url,owner_type=null) { let list_div = document.querySelectorAll('.menu_profile div'); list_div.forEach(el=>{ el.classList.remove('selected'); }); el.classList.add('selected') - let body = document.querySelector("body") - body.style.overflow = "hidden" + // let body = document.querySelector("body") + // body.style.overflow = "hidden" let confirm_url_f_lang_ru = '' let confirm_url_f_lang_en = '' if (owner_type){ @@ -754,10 +754,10 @@ function open_curtain (left=null,right=null,overlay=null,close=null){ } //тут боди по неведомой для меня причне получал перманентный оверфлоу в значении hidden и вырубал все блоки кроме Новое Сообщение, вероятно для него эта проверка и делалась - if (body.style.overflowX === 'hidden'){ - body.style.overflowX = '' + if (body.style.overflowY === 'hidden'){ + body.style.overflowY = '' } else { - body.style.overflowX = 'hidden' + body.style.overflowY = 'hidden' } } @@ -816,9 +816,12 @@ function getInfoCurtain (curtain,zIndex,name) { } else { let new_curtain = getOpenCurtain() let type_curt = getTypeOfData(new_curtain) - if (type_curt === 'object'){ - new_curtain = new_curtain[0] + if (new_curtain[0]){ + if (type_curt === 'object'){ + new_curtain = new_curtain[0] + } } + if (name){ let dataset = new_curtain.dataset let name = '' diff --git a/templates/blocks/profile/b_profile.html b/templates/blocks/profile/b_profile.html index 6233339..c0068a3 100644 --- a/templates/blocks/profile/b_profile.html +++ b/templates/blocks/profile/b_profile.html @@ -15,7 +15,7 @@
Текущая подписка:
{{ user_subscribe.subscribe.name }}
-
Перейти к подпискам
+
Перейти к подпискам