aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-09-28 14:39:21 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-10-19 01:46:13 +0200
commit2d709d5222bcc9c594408f1a4b6bc2abc1cc4742 (patch)
tree4d8f5ead999798a7ce5d9787d8e743704be4a4f5 /apps/files/js/filelist.js
parente29bd3b743ca4e5bcd07b69fe019cb8208104b98 (diff)
downloadnextcloud-server-2d709d5222bcc9c594408f1a4b6bc2abc1cc4742.tar.gz
nextcloud-server-2d709d5222bcc9c594408f1a4b6bc2abc1cc4742.zip
Set background size for thumbnail in CSS instead of JavaScript
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index cc23ac73979..c636544e6c2 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1207,12 +1207,12 @@
td.append(
'<input id="select-' + this.id + '-' + fileData.id +
'" type="checkbox" class="selectCheckBox checkbox"/><label for="select-' + this.id + '-' + fileData.id + '">' +
- '<div class="thumbnail" style="background-image:url(' + icon + '); background-size: 32px;"></div>' +
+ '<div class="thumbnail" style="background-image:url(' + icon + ');"></div>' +
'<span class="hidden-visually">' + t('files', 'Select') + '</span>' +
'</label>'
);
} else {
- td.append('<div class="thumbnail" style="background-image:url(' + icon + '); background-size: 32px;"></div>');
+ td.append('<div class="thumbnail" style="background-image:url(' + icon + ');"></div>');
}
var linkElem = $('<a></a>').attr({
"class": "name",