This commit is contained in:
2023-11-10 19:14:00 +03:00
parent ae9902965a
commit 405cae84fe
4 changed files with 19 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ function middleWareJS(){
let footer = document.querySelector("footer")
let body = document.querySelector("body")
if (document.querySelector(".block-list-of-users")){
if (document.querySelector(".menu_buttons.curtain.left")){
footer.style.display = "none"
body.style.overflow = "hidden"

View File

@@ -755,7 +755,7 @@ function open_curtain (left=null,right=null,overlay=null,close=null){
}
//тут боди по неведомой для меня причне получал перманентный оверфлоу в значении hidden и вырубал все блоки кроме Новое Сообщение, вероятно для него эта проверка и делалась
if (body.style.overflowY === 'hidden'){
if (!curtain.classList.contains('show')){
body.style.overflowY = ''
} else {
body.style.overflowY = 'hidden'