From 43d08553ac4c3e99315f2ee14fe78b3188017144 Mon Sep 17 00:00:00 2001 From: alokhyland Date: Wed, 27 Mar 2024 15:53:14 +0530 Subject: [PATCH] ELEMENTS-1731: Fix display of long username under activity section --- .../nuxeo-document-comment.js | 25 ++++++++++++++++++- ui/widgets/nuxeo-user-avatar.js | 8 +++++- ui/widgets/nuxeo-user-tag.js | 25 +++++++++++++++++-- 3 files changed, 54 insertions(+), 4 deletions(-) diff --git a/ui/nuxeo-document-comments/nuxeo-document-comment.js b/ui/nuxeo-document-comments/nuxeo-document-comment.js index 4a2c1018c2..c77810dc73 100644 --- a/ui/nuxeo-document-comments/nuxeo-document-comment.js +++ b/ui/nuxeo-document-comments/nuxeo-document-comment.js @@ -127,6 +127,21 @@ import '../nuxeo-button-styles.js'; outline: auto; } } + .user-tag-nowrap { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + max-width: 100px; + } + + .user-tag-wrap { + overflow: hidden; + text-overflow: ellipsis; + max-width: 100px; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + } @@ -159,7 +174,10 @@ import '../nuxeo-button-styles.js';