diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-08 12:20:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-08 12:20:27 -0500 |
commit | df6ce6b38595bc6bb5c149f6013872780eb382ad (patch) | |
tree | 30b50c3cb8ca4693508001d41d9c75b0a99ab931 /core | |
parent | 36d0c3da69e8381fc9e34e4621a833ee0871cd49 (diff) | |
parent | dea6edb066a05a62601aa8a109a6ef8709e9620e (diff) | |
download | nextcloud-server-df6ce6b38595bc6bb5c149f6013872780eb382ad.tar.gz nextcloud-server-df6ce6b38595bc6bb5c149f6013872780eb382ad.zip |
Merge pull request #4675 from nextcloud/fix_4651
Create a photo cache to speedup the contactsmenu
Diffstat (limited to 'core')
-rw-r--r-- | core/js/contactsmenu.js | 3 |
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}}' |