summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-05-03 14:44:23 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-05-08 11:20:49 +0200
commit34d97aa51c5e7ddb638aeb105a590ae159a34abe (patch)
treef12a75cea6ae2bd53695c3d414e7f60cde5e2e1d /core
parentdd430c2fd72e2d77d69ab93090b5fb6ea6ba76a6 (diff)
downloadnextcloud-server-34d97aa51c5e7ddb638aeb105a590ae159a34abe.tar.gz
nextcloud-server-34d97aa51c5e7ddb638aeb105a590ae159a34abe.zip
Request proper size for contacts menu
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core')
-rw-r--r--core/js/contactsmenu.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/contactsmenu.js b/core/js/contactsmenu.js
index 9ce27509e8b..3da6ea127cd 100644
--- a/core/js/contactsmenu.js
+++ b/core/js/contactsmenu.js
@@ -50,7 +50,8 @@
+ '</div>';
var CONTACT_TEMPLATE = ''
+ '{{#if contact.avatar}}'
- + '<img src="{{contact.avatar}}" class="avatar">'
+ + '<img src="{{contact.avatar}}&size=32" class="avatar"'
+ + 'srcset="{{contact.avatar}}&size=32 1x, {{contact.avatar}}&size=64 2x, {{contact.avatar}}&size=128 4x">'
+ '{{else}}'
+ '<div class="avatar"></div>'
+ '{{/if}}'