aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/src/components/Users/UserListHeader.vue6
-rw-r--r--apps/settings/src/components/Users/UserRow.vue15
-rw-r--r--apps/settings/src/components/Users/shared/styles.scss4
3 files changed, 17 insertions, 8 deletions
diff --git a/apps/settings/src/components/Users/UserListHeader.vue b/apps/settings/src/components/Users/UserListHeader.vue
index e314bcb6a73..51212239fc0 100644
--- a/apps/settings/src/components/Users/UserListHeader.vue
+++ b/apps/settings/src/components/Users/UserListHeader.vue
@@ -35,7 +35,11 @@
<strong>
{{ t('settings', 'Display name') }}
</strong>
- <span class="header__subtitle">
+ </th>
+ <th class="header__cell header__cell--username"
+ data-cy-user-list-header-username
+ scope="col">
+ <span>
{{ t('settings', 'Username') }}
</span>
</th>
diff --git a/apps/settings/src/components/Users/UserRow.vue b/apps/settings/src/components/Users/UserRow.vue
index 3586a7702b1..76241a3118e 100644
--- a/apps/settings/src/components/Users/UserRow.vue
+++ b/apps/settings/src/components/Users/UserRow.vue
@@ -54,13 +54,14 @@
spellcheck="false"
@trailing-button-click="updateDisplayName" />
</template>
- <template v-else>
- <strong v-if="!isObfuscated"
- :title="user.displayname?.length > 20 ? user.displayname : null">
- {{ user.displayname }}
- </strong>
- <span class="row__subtitle">{{ user.id }}</span>
- </template>
+ <strong v-else-if="!isObfuscated"
+ :title="user.displayname?.length > 20 ? user.displayname : null">
+ {{ user.displayname }}
+ </strong>
+ </td>
+
+ <td class="row__cell row__cell--username" data-cy-user-list-cell-username>
+ <span class="row__subtitle">{{ user.id }}</span>
</td>
<td data-cy-user-list-cell-password
diff --git a/apps/settings/src/components/Users/shared/styles.scss b/apps/settings/src/components/Users/shared/styles.scss
index a2ddcd8c8be..d790b0e5daf 100644
--- a/apps/settings/src/components/Users/shared/styles.scss
+++ b/apps/settings/src/components/Users/shared/styles.scss
@@ -66,6 +66,10 @@
}
}
+ &--username {
+ padding-left: calc(var(--default-grid-baseline) * 3);
+ }
+
&--avatar {
min-width: var(--avatar-cell-width);
width: var(--avatar-cell-width);