From 541610ac183ab929a818be2a1b6e647cc95ef652 Mon Sep 17 00:00:00 2001 From: borissedw Date: Wed, 2 Aug 2023 19:37:07 +0300 Subject: [PATCH] 0.0.30 --- static/css/styles(boris).css | 28 +++++++++++++++----- static/js/user_profile(boris).js | 14 ---------- templates/blocks/profile/b_support_chat.html | 4 +-- templates/widgets/w_tab_user.html | 8 +++--- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 498147e..1bfc04d 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -446,10 +446,10 @@ } .right-part-tab-user{ - width: 20%; + width: 12%; height: 100%; float: right; - padding-top: 10%; + padding-top: 9%; } @@ -458,6 +458,13 @@ height: 25px; background: #FF613A; color: #FFFFFF; + border-radius: 100%; +} + +.cost-messages-in-user-tab-messenger > span{ + padding-top: 5px; + display: block; + padding-left: 8px; } @@ -470,12 +477,19 @@ color: #000000; font-size: 14px; font-weight: 600; + padding-left: 5px; + overflow: hidden; + text-overflow: ellipsis; } + .last-message-messenger-user-tab{ font-size: 12px; color: #27242499; display: block; + padding-left: 5px; + overflow: hidden; + text-overflow: ellipsis; } /*messenger with support*/ @@ -564,16 +578,16 @@ .container_text_message{ width: 100%; - height: 60px; + min-height: 60px; border-radius: 10px; } -.container_text_message.border{ +.container_text_message.left{ border: 1px solid #FF613A; background: #FFFFFF; } -.container_text_message.background{ +.container_text_message.right{ background: #FF613A; border: none; } @@ -587,11 +601,11 @@ } -.container_text_message.background > span{ +.container_text_message.right > span{ color: #FFFFFF; } -.container_text_message.border > span{ +.container_text_message.left > span{ color: #272424; } diff --git a/static/js/user_profile(boris).js b/static/js/user_profile(boris).js index c39847e..aa271ee 100644 --- a/static/js/user_profile(boris).js +++ b/static/js/user_profile(boris).js @@ -142,22 +142,8 @@ function createTicket (el) { }); } -var selected_users = [] function selectedUserMessenger (el,ticket_id){ - selected_users.push(el) - let i = 0 - selected_users.map(function (){ - if (selected_users[i] === el){ - el.classList.toggle("select") - } - else { - if (selected_users[i].classList.contains("select")){ - selected_users[i].classList.remove("select") - } - } - i++ - }) let data = { 'ticket_id': ticket_id } diff --git a/templates/blocks/profile/b_support_chat.html b/templates/blocks/profile/b_support_chat.html index d286293..d5fa483 100644 --- a/templates/blocks/profile/b_support_chat.html +++ b/templates/blocks/profile/b_support_chat.html @@ -60,7 +60,7 @@ Неразобранные тикеты
{% if tickets_wo_manager %} - {% for ticket in tickets_wo_manager %} + {% for item in tickets_wo_manager %} {% include "widgets/w_tab_user.html" %} {% endfor %} {% endif %} @@ -69,7 +69,7 @@
Тикеты в работе {% if tickets_for_manager %} - {% for ticket in tickets_for_manager %} + {% for item in tickets_for_manager %} {% include "widgets/w_tab_user.html" %} {% endfor %} {% endif %} diff --git a/templates/widgets/w_tab_user.html b/templates/widgets/w_tab_user.html index f22cb16..44680ef 100644 --- a/templates/widgets/w_tab_user.html +++ b/templates/widgets/w_tab_user.html @@ -1,15 +1,15 @@ {% load static %} -
+
- {{ ticket.owner.last_name }} {{ ticket.owner.first_name }} - {{ ticket.name }} + {{ item.owner.last_name }} {{ item.owner.first_name }} + {{ item.name }}
-
1
+
1
\ No newline at end of file