Use preview-x & preview-y on public pages

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-10-23 08:59:34 +02:00
parent ec05e5d048
commit bf6a1650ce
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 2 additions and 2 deletions

View File

@ -229,10 +229,10 @@ OCA.Sharing.PublicApp = {
this.fileList.generatePreviewUrl = function (urlSpec) { this.fileList.generatePreviewUrl = function (urlSpec) {
urlSpec = urlSpec || {}; urlSpec = urlSpec || {};
if (!urlSpec.x) { if (!urlSpec.x) {
urlSpec.x = 32; urlSpec.x = this.$table.data('preview-x') || 32;
} }
if (!urlSpec.y) { if (!urlSpec.y) {
urlSpec.y = 32; urlSpec.y = this.$table.data('preview-y') || 32;
} }
urlSpec.x *= window.devicePixelRatio; urlSpec.x *= window.devicePixelRatio;
urlSpec.y *= window.devicePixelRatio; urlSpec.y *= window.devicePixelRatio;