From 4d3a48d1c192ed54dfabaea5e251ddd083070b21 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 7 May 2023 12:47:13 +0000 Subject: cropper fixup --- view/tpl/cropcover.tpl | 4 ++-- view/tpl/profile_vcard.tpl | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/view/tpl/cropcover.tpl b/view/tpl/cropcover.tpl index ba91a2cce..eda6a7ba8 100644 --- a/view/tpl/cropcover.tpl +++ b/view/tpl/cropcover.tpl @@ -15,8 +15,8 @@ var image = document.getElementById('croppa'); var cropper = new Cropper(image, { aspectRatio: 2.75 / 1, viewMode: 1, - preview: '.crop-preview', - crop: function(e) { + preview: '#cover-photo-wrapper, .crop-preview', + crop: function(e) { $( '#x1' ).val(e.detail.x); $( '#y1' ).val(e.detail.y); $( '#x2' ).val(e.detail.x + e.detail.width); diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index bbdb781c5..8276a1b72 100644 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -1,7 +1,9 @@