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{ .block-chat{
width: 66%; width: 63%;
height: calc(100vh - 120px); height: calc(100vh - 120px);
border-radius: 10px; border-radius: 10px;
border: 1px solid #E6E6E6; border: 1px solid #E6E6E6;

View File

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