This commit is contained in:
SBD
2023-11-25 13:21:53 +03:00
parent 9f7550eaae
commit e5ea92df3d
2 changed files with 14 additions and 12 deletions

View File

@@ -439,7 +439,7 @@
}
.block-chat{
width: 66%;
width: 63%;
height: calc(100vh - 120px);
border-radius: 10px;
border: 1px solid #E6E6E6;

View File

@@ -738,18 +738,20 @@ function toggle_cut_width_curtain (el) {
}
function close_first_curt (curtain) {
let curtains = document.querySelectorAll(".curtain.open")
let i = 0
if (curtains.length >= 2){
curtains.forEach(function (){
let cur_el = curtains[i]
if (cur_el !== curtain){
cur_el.classList.toggle('open')
cur_el.classList.toggle('close')
if (!window.location.href.includes("profile") || getInfoAboutUser() === 'mobile'){
let curtains = document.querySelectorAll(".curtain.open")
let i = 0
if (curtains.length >= 2){
curtains.forEach(function (){
let cur_el = curtains[i]
if (cur_el !== curtain){
cur_el.classList.toggle('open')
cur_el.classList.toggle('close')
}
i++
})
}
i++
})
}
}
}