diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index dc6c783..e88d4b8 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -423,7 +423,10 @@ .container-messenger{ width: 100%; height: 100%; - margin-bottom: 30px; +} + +.container-messenger.margin{ + margin-top: 25px } .block-chat{ @@ -438,7 +441,7 @@ } .block-chat.support{ - height: 86vh; + height: calc(100vh - 154px); } .block-list-of-users{ @@ -2370,6 +2373,7 @@ padding-top: 8px; } + .menu_buttons.left.open{ left: 0; transition: 200ms; @@ -2383,6 +2387,18 @@ } +.support .menu_buttons.left.open{ + max-height: calc(100vh - 140px); + +} + +.support .menu_buttons.left.open.margin{ + margin-top: 49px; + max-height: calc(100vh - 215px); +} + + + .menu_buttons.left.open.filters{ width: 294px; background: #FFFFFF; @@ -2398,9 +2414,6 @@ transition: 0ms; } -.support .menu_buttons.left.open{ - margin-top: 49px; -} .handler_menu.left.close{ background: #FF613A; @@ -2490,7 +2503,6 @@ height: calc(100vh - 120px); max-height: 667px; background: #F8F8F8; - direction: rtl; } .menu_profile.background{ diff --git a/static/css/styles.css b/static/css/styles.css index 091c36e..eb5ec91 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1147,6 +1147,17 @@ h2.title_new_route{ padding: 10px; text-align: center; position: relative; + height: 15px; +} +.menu_profile>div:first-of-type { + border-radius: 10px; + background:none; + /* Shadow 1 */ + box-shadow: none; + margin-bottom: 10px; + padding: 10px; + text-align: center; + position: relative; height: 40px; } diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index ce9401f..9bf98f5 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -475,6 +475,12 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){ document.querySelector(".info_profile").innerHTML = data.html; document.querySelector(".enter-message-inp").focus() document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'nearest',inline:'nearest'}); + let menu = document.querySelector(".menu_buttons.curtain.left") + let container_user_messenger = document.querySelector(".container-messenger") + if (!container_user_messenger.classList.contains('margin') || !menu.classList.contains('margin')){ + container_user_messenger.classList.add('margin') + menu.classList.add('margin') + } let user_type = getInfoAboutUser() let curt_f_close = getCurtainWIncreaceZindex(document.querySelectorAll('.curtain')) diff --git a/templates/blocks/profile/b_support_chat.html b/templates/blocks/profile/b_support_chat.html index b92136a..f1604cd 100644 --- a/templates/blocks/profile/b_support_chat.html +++ b/templates/blocks/profile/b_support_chat.html @@ -11,7 +11,7 @@ {# #} loader {% if user.is_staff %} -