mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 17:18:48 -04:00
use smaller cropper on small screens
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
ad902d6bea
commit
0aec8647c2
1 changed files with 2 additions and 2 deletions
|
|
@ -148,8 +148,8 @@ function showAvatarCropper () {
|
|||
onChange: saveCoords,
|
||||
onSelect: saveCoords,
|
||||
aspectRatio: 1,
|
||||
boxHeight: 500,
|
||||
boxWidth: 500,
|
||||
boxHeight: Math.min(500, $('#app-content').height() -100),
|
||||
boxWidth: Math.min(500, $('#app-content').width()),
|
||||
setSelect: [offsetX, offsetY, selectSize, selectSize]
|
||||
}, function() {
|
||||
$cropper.show();
|
||||
|
|
|
|||
Loading…
Reference in a new issue