diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-08-22 11:37:15 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-08-22 15:36:14 +0200 |
commit | 6a08c8945282b802106eae90c3f3445f73c2ca19 (patch) | |
tree | 794bf5b198459367c339f20d4363ad1846562311 /apps | |
parent | 31050e5de9adf2407e1ec0ec1a2da4c32e2195a1 (diff) | |
download | nextcloud-server-6a08c8945282b802106eae90c3f3445f73c2ca19.tar.gz nextcloud-server-6a08c8945282b802106eae90c3f3445f73c2ca19.zip |
Request 64px avatars for the user management
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/src/components/UserList/UserRow.vue | 6 | ||||
-rw-r--r-- | apps/settings/src/components/UserList/UserRowSimple.vue | 3 | ||||
-rw-r--r-- | apps/settings/src/mixins/UserRowMixin.js | 6 |
3 files changed, 5 insertions, 10 deletions
diff --git a/apps/settings/src/components/UserList/UserRow.vue b/apps/settings/src/components/UserList/UserRow.vue index f2947019f40..5f8c93d0272 100644 --- a/apps/settings/src/components/UserList/UserRow.vue +++ b/apps/settings/src/components/UserList/UserRow.vue @@ -28,8 +28,7 @@ <div :class="{'icon-loading-small': loading.delete || loading.disable || loading.wipe}" class="avatar"> <img v-if="!loading.delete && !loading.disable && !loading.wipe" - :src="generateAvatar(user.id, 32)" - :srcset="generateAvatar(user.id, 64)+' 2x, '+generateAvatar(user.id, 128)+' 4x'" + :src="generateAvatar(user.id)" alt="" height="32" width="32"> @@ -66,8 +65,7 @@ <div :class="{'icon-loading-small': loading.delete || loading.disable || loading.wipe}" class="avatar"> <img v-if="!loading.delete && !loading.disable && !loading.wipe" - :src="generateAvatar(user.id, 32)" - :srcset="generateAvatar(user.id, 64)+' 2x, '+generateAvatar(user.id, 128)+' 4x'" + :src="generateAvatar(user.id)" alt="" height="32" width="32"> diff --git a/apps/settings/src/components/UserList/UserRowSimple.vue b/apps/settings/src/components/UserList/UserRowSimple.vue index 50ed78a0bc7..8b3472cf3fa 100644 --- a/apps/settings/src/components/UserList/UserRowSimple.vue +++ b/apps/settings/src/components/UserList/UserRowSimple.vue @@ -7,8 +7,7 @@ alt="" width="32" height="32" - :src="generateAvatar(user.id, 32)" - :srcset="generateAvatar(user.id, 64)+' 2x, '+generateAvatar(user.id, 128)+' 4x'"> + :src="generateAvatar(user.id)" /> </div> <!-- dirty hack to ellipsis on two lines --> <div class="name"> diff --git a/apps/settings/src/mixins/UserRowMixin.js b/apps/settings/src/mixins/UserRowMixin.js index 78214339be9..6342419e9da 100644 --- a/apps/settings/src/mixins/UserRowMixin.js +++ b/apps/settings/src/mixins/UserRowMixin.js @@ -158,15 +158,13 @@ export default { * Generate avatar url * * @param {string} user The user name - * @param {number} size Size integer, default 32 * @return {string} */ - generateAvatar(user, size = 32) { + generateAvatar(user) { return generateUrl( - '/avatar/{user}/{size}?v={version}', + '/avatar/{user}/64?v={version}', { user, - size, version: oc_userconfig.avatar.version, } ) |