mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	webview: Fix overflowing diff body (#22959)
If the content is quite large the diff body overflows the container and can not be read. This is fixed by setting the diff body maximum width to 100% and enable overflow scrollbars: before | after ---|---  |  Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							e7ef94e00f
						
					
				
				
					commit
					8bba7e30b2
				
			@@ -3187,6 +3187,7 @@ td.blob-excerpt {
 | 
			
		||||
}
 | 
			
		||||
#diff-file-boxes {
 | 
			
		||||
  flex: 1;
 | 
			
		||||
  max-width: 100%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#diff-file-tree {
 | 
			
		||||
@@ -3295,6 +3296,10 @@ td.blob-excerpt {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.diff-file-body {
 | 
			
		||||
  overflow-x: scroll;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.diff-stats-bar {
 | 
			
		||||
  display: inline-block;
 | 
			
		||||
  background-color: var(--color-red);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user