diff --git a/apps/static/assets/css/index.css b/apps/static/assets/css/index.css index 563d9a0..8d7e42a 100644 --- a/apps/static/assets/css/index.css +++ b/apps/static/assets/css/index.css @@ -11876,7 +11876,7 @@ footer { height: 100%; transition: all 0.3s ease-in-out; max-height: calc(100vh - 65px); - overflow-y: scroll; + overflow-y: auto; } .email-app .email-wrapper .email-content.open { left: 0; @@ -69162,4 +69162,30 @@ table.dataTable.no-footer { .border-none { border: none +} + + +/* Ticket List Items */ + +.ticket-item { + cursor: pointer; +} + +.ticket-item .ticket-item-icon { + width: 2rem; + height: 2rem; + border-radius: 50%; + object-fit: cover; +} + +.ticket-item .ticket-item-title { + font-size: 1rem; + text-transform: capitalize; +} + +.ticket-item .ticket-item-desc { + width: 100%; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; } \ No newline at end of file diff --git a/apps/static/assets/js/tickets.js b/apps/static/assets/js/tickets.js index b25a3f4..6c8e3c7 100644 --- a/apps/static/assets/js/tickets.js +++ b/apps/static/assets/js/tickets.js @@ -248,6 +248,9 @@ function loadAllTickets() { `); + var template = $("#ticketItemTemplate").copy(); + template.find(".ticket-item-icon").attr("src", ticket.author.icon); + template.find(".ticket-item-author").text(ticket.author.forename + " " + ticket.author.surname); $("#ticketsContainer .content").append(item); diff --git a/apps/templates/home/tickets.html b/apps/templates/home/tickets.html index 0056adf..9fc4eb1 100644 --- a/apps/templates/home/tickets.html +++ b/apps/templates/home/tickets.html @@ -422,6 +422,26 @@ + + {% endblock content %} {% block javascripts %}