From e5ea92df3dd2296ced89f854a74e74841c1c0367 Mon Sep 17 00:00:00 2001 From: SBD Date: Sat, 25 Nov 2023 13:21:53 +0300 Subject: [PATCH] 0.8.393 --- static/css/styles(boris).css | 2 +- static/js/user_profile_2.js | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 56dc0fa..c5b197c 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -439,7 +439,7 @@ } .block-chat{ - width: 66%; + width: 63%; height: calc(100vh - 120px); border-radius: 10px; border: 1px solid #E6E6E6; diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index a14d1b8..8465eab 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -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++ + }) + } } }