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({ | ||||
|             aspectRatio: 2 / 3, | ||||
|             autoCropArea: 1, | ||||
|             viewMode: 2, | ||||
|             rotatable: false, | ||||
|             crop: function (event) { | ||||
|                 crop_data = event.detail; | ||||
|   | ||||
| @@ -2797,7 +2797,7 @@ h5 { | ||||
| #avatarCropWrap { | ||||
|     margin: 10px auto; | ||||
|     max-height: 90%; | ||||
|     max-width: 90%; | ||||
|     max-width: 100%; | ||||
| } | ||||
|  | ||||
| #avatarToCrop { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user