mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Don't let cropper overflow the canvas (or upload fails)
This commit is contained in:
		| @@ -4476,6 +4476,7 @@ function callPopup(text, type, inputValue = '') { | |||||||
|         $('#avatarToCrop').cropper({ |         $('#avatarToCrop').cropper({ | ||||||
|             aspectRatio: 2 / 3, |             aspectRatio: 2 / 3, | ||||||
|             autoCropArea: 1, |             autoCropArea: 1, | ||||||
|  |             viewMode: 2, | ||||||
|             rotatable: false, |             rotatable: false, | ||||||
|             crop: function (event) { |             crop: function (event) { | ||||||
|                 crop_data = event.detail; |                 crop_data = event.detail; | ||||||
|   | |||||||
| @@ -2797,7 +2797,7 @@ h5 { | |||||||
| #avatarCropWrap { | #avatarCropWrap { | ||||||
|     margin: 10px auto; |     margin: 10px auto; | ||||||
|     max-height: 90%; |     max-height: 90%; | ||||||
|     max-width: 90%; |     max-width: 100%; | ||||||
| } | } | ||||||
|  |  | ||||||
| #avatarToCrop { | #avatarToCrop { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user