mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	@@ -65,8 +65,9 @@ export function initImageDiff() {
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  $('.image-diff').each(function() {
 | 
			
		||||
  $('.image-diff:not([data-image-diff-loaded])').each(function() {
 | 
			
		||||
    const $container = $(this);
 | 
			
		||||
    $container.attr('data-image-diff-loaded', 'true');
 | 
			
		||||
 | 
			
		||||
    // the container may be hidden by "viewed" checkbox, so use the parent's width for reference
 | 
			
		||||
    const diffContainerWidth = Math.max($container.closest('.diff-file-box').width() - 300, 100);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user