This commit is contained in:
SBD
2023-11-19 15:49:39 +03:00
parent 49ad367a70
commit 3311ab5b37
4 changed files with 36 additions and 7 deletions

View File

@@ -423,7 +423,10 @@
.container-messenger{ .container-messenger{
width: 100%; width: 100%;
height: 100%; height: 100%;
margin-bottom: 30px; }
.container-messenger.margin{
margin-top: 25px
} }
.block-chat{ .block-chat{
@@ -438,7 +441,7 @@
} }
.block-chat.support{ .block-chat.support{
height: 86vh; height: calc(100vh - 154px);
} }
.block-list-of-users{ .block-list-of-users{
@@ -2370,6 +2373,7 @@
padding-top: 8px; padding-top: 8px;
} }
.menu_buttons.left.open{ .menu_buttons.left.open{
left: 0; left: 0;
transition: 200ms; 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{ .menu_buttons.left.open.filters{
width: 294px; width: 294px;
background: #FFFFFF; background: #FFFFFF;
@@ -2398,9 +2414,6 @@
transition: 0ms; transition: 0ms;
} }
.support .menu_buttons.left.open{
margin-top: 49px;
}
.handler_menu.left.close{ .handler_menu.left.close{
background: #FF613A; background: #FF613A;
@@ -2490,7 +2503,6 @@
height: calc(100vh - 120px); height: calc(100vh - 120px);
max-height: 667px; max-height: 667px;
background: #F8F8F8; background: #F8F8F8;
direction: rtl;
} }
.menu_profile.background{ .menu_profile.background{

View File

@@ -1147,6 +1147,17 @@ h2.title_new_route{
padding: 10px; padding: 10px;
text-align: center; text-align: center;
position: relative; 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; height: 40px;
} }

View File

@@ -475,6 +475,12 @@ function selectedUserMessenger (ticket_id=null,user_id=null,el){
document.querySelector(".info_profile").innerHTML = data.html; document.querySelector(".info_profile").innerHTML = data.html;
document.querySelector(".enter-message-inp").focus() document.querySelector(".enter-message-inp").focus()
document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth",block:'nearest',inline:'nearest'}); 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 user_type = getInfoAboutUser()
let curt_f_close = getCurtainWIncreaceZindex(document.querySelectorAll('.curtain')) let curt_f_close = getCurtainWIncreaceZindex(document.querySelectorAll('.curtain'))

View File

@@ -11,7 +11,7 @@
{# </div>#} {# </div>#}
<img class="loader_chat_f_sw_chats support" src="{% static "/img/svg/loader.svg" %}" alt="loader"> <img class="loader_chat_f_sw_chats support" src="{% static "/img/svg/loader.svg" %}" alt="loader">
{% if user.is_staff %} {% if user.is_staff %}
<div class="menu_buttons curtain left open" data-name="тик"> <div class="menu_buttons curtain left open {% if name.ticket %}margin{% endif %}" data-name="тик">
<div class="container_block_list_of_users"> <div class="container_block_list_of_users">
{% include 'blocks/profile/b_list_of_tickets_support_chat.html' %} {% include 'blocks/profile/b_list_of_tickets_support_chat.html' %}
</div> </div>