Skip to content

Commit 83f6476

Browse files
committed
ELEMENTS-1807: add an email column to the user tables 2025
1 parent 64560a7 commit 83f6476

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

ui/nuxeo-user-group-management/nuxeo-group-management.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,21 @@ import '../nuxeo-button-styles.js';
8282
width: 1.3rem;
8383
}
8484
85+
.email-wrapper {
86+
max-width: 100%;
87+
overflow: hidden;
88+
text-align: left;
89+
}
90+
91+
.email-text {
92+
display: inline-block;
93+
max-width: 240px;
94+
overflow: hidden;
95+
text-overflow: ellipsis;
96+
white-space: nowrap;
97+
vertical-align: middle;
98+
}
99+
85100
.card {
86101
background: none var(--nuxeo-box, #fff);
87102
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.04);
@@ -383,8 +398,13 @@ import '../nuxeo-button-styles.js';
383398
</div>
384399
<div class="flex-4 preserve-white-space" role="columnheader">[[item.id]]</div>
385400
<div class="flex-4" role="columnheader">
386-
[[_getEmail(item.properties)]]
401+
<div class="email-wrapper">
402+
<span class="email-text" title="[[_getEmail(item.properties)]]">
403+
[[_getEmail(item.properties)]]
404+
</span>
405+
</div>
387406
</div>
407+
388408
<div class="table-actions" role="columnheader">
389409
<dom-if if="[[_canEditGroup(readonly, _currentUser, groupname)]]">
390410
<template>

ui/nuxeo-user-group-management/nuxeo-user-group-latest.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ import { I18nBehavior } from '../nuxeo-i18n-behavior.js';
8686
cursor: pointer;
8787
}
8888
89+
.email-wrapper {
90+
max-width: 100%;
91+
overflow: hidden;
92+
text-align: left;
93+
}
94+
95+
.email-text {
96+
display: inline-block;
97+
max-width: 240px; /* adjust as needed */
98+
overflow: hidden;
99+
text-overflow: ellipsis;
100+
white-space: nowrap;
101+
vertical-align: middle;
102+
}
103+
104+
89105
.table-row:hover {
90106
background: var(--nuxeo-container-hover, #fafafa);
91107
}
@@ -166,7 +182,14 @@ import { I18nBehavior } from '../nuxeo-i18n-behavior.js';
166182
</dom-if>
167183
</div>
168184
<div class="flex-4 preserve-white-space" role="columnheader">[[item.uid]]</div>
169-
<div class="flex-4" role="columnheader">[[_getEmail(item)]]</div>
185+
<div class="flex-4" role="columnheader">
186+
<div class="email-wrapper">
187+
<span class="email-text" title="[[_getEmail(item)]]">
188+
[[_getEmail(item)]]
189+
</span>
190+
</div>
191+
</div>
192+
170193
<div class="table-actions" role="columnheader"></div>
171194
</div>
172195
</template>

0 commit comments

Comments
 (0)