diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-10-23 08:59:34 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-10-23 08:59:34 +0200 |
commit | bf6a1650cefab86c1199a550eb32aedf6ea93362 (patch) | |
tree | 679c810202f20fa5d73305bc1cdb1f3e2997bbd3 /apps | |
parent | ec05e5d0484f8293ecfb0304aacee07e49c24bd0 (diff) | |
download | nextcloud-server-bf6a1650cefab86c1199a550eb32aedf6ea93362.tar.gz nextcloud-server-bf6a1650cefab86c1199a550eb32aedf6ea93362.zip |
Use preview-x & preview-y on public pages
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/js/public.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 2b7cea8d0dc..1dd9f5af6c7 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -229,10 +229,10 @@ OCA.Sharing.PublicApp = { this.fileList.generatePreviewUrl = function (urlSpec) { urlSpec = urlSpec || {}; if (!urlSpec.x) { - urlSpec.x = 32; + urlSpec.x = this.$table.data('preview-x') || 32; } if (!urlSpec.y) { - urlSpec.y = 32; + urlSpec.y = this.$table.data('preview-y') || 32; } urlSpec.x *= window.devicePixelRatio; urlSpec.y *= window.devicePixelRatio; |