mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Don't force aspect ratio of zoomed avatars. Prevent closing on drag grabber.
This commit is contained in:
		@@ -10242,6 +10242,9 @@ jQuery(async function () {
 | 
			
		||||
                $('.zoomed_avatar_container').izoomify();
 | 
			
		||||
 | 
			
		||||
            $('.zoomed_avatar').on('click', (e) => {
 | 
			
		||||
                if (e.target.closest('.drag-grabber')) {
 | 
			
		||||
                    return;
 | 
			
		||||
                }
 | 
			
		||||
                $(`.zoomed_avatar[forChar="${charname}"]`).fadeOut();
 | 
			
		||||
                setTimeout(function() { $(`.zoomed_avatar[forChar="${charname}"]`).remove(); }, 410);
 | 
			
		||||
            });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user