From 687bb36e0e0f1fbd10aebb54cdd7d90a764b1a05 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 15 Dec 2020 14:07:07 +0100 Subject: [PATCH] Handle long title in support tickets --- www/admin/app-admin.less | 8 ++++++++ www/support/ui.js | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/www/admin/app-admin.less b/www/admin/app-admin.less index faed46bf4..1fe7a5699 100644 --- a/www/admin/app-admin.less +++ b/www/admin/app-admin.less @@ -83,6 +83,14 @@ display: flex; justify-content: space-between; align-items: center; + span:first-child { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + .cp-support-title-buttons { + flex-shrink: 0; + } } .cp-support-collapsed { display: flex; diff --git a/www/support/ui.js b/www/support/ui.js index 17def8896..4ce6ec4e2 100644 --- a/www/support/ui.js +++ b/www/support/ui.js @@ -269,7 +269,10 @@ define([ 'data-cat': content.category, 'data-id': content.id }, [ - h('h2', [ticketCategory, ticketTitle, h('span.cp-support-title-buttons',url)]), + h('h2', [ + h('span', [ticketCategory, ticketTitle]), + h('span.cp-support-title-buttons',url) + ]), actions ]));