mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Allow cropping an avatar before setting it (#32565)
Provide a cropping tool on the avatar editing page, allowing users to select the cropping area themselves. This way, users can decide the displayed area of the image, rather than us deciding for them. --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		
							
								
								
									
										6
									
								
								web_src/css/features/cropper.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								web_src/css/features/cropper.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
@import "cropperjs/dist/cropper.css";
 | 
			
		||||
 | 
			
		||||
.page-content.user.profile .cropper-panel .cropper-wrapper {
 | 
			
		||||
  max-width: 400px;
 | 
			
		||||
  max-height: 400px;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user