mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Fix review comment context menu clipped bug (#23523)
This is another regression of #22959 (the first regression has been fixed by the Image Diff fix) Close #23517 This is a quick fix. Luckily, there is no "dropdown menu" for image/csv view, so we could only add the "overflow-x: scroll" to the image/csv view. After fix:   Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
		@@ -161,7 +161,8 @@
 | 
			
		||||
									{{end}}
 | 
			
		||||
								</div>
 | 
			
		||||
								{{if $showFileViewToggle}}
 | 
			
		||||
									<div id="diff-rendered-{{$file.NameHash}}" class="file-body file-code {{if $.IsSplitStyle}} code-diff-split{{else}} code-diff-unified{{end}}">
 | 
			
		||||
									{{/* for image or CSV, it can have a horizontal scroll bar, there won't be review comment context menu (position absolute) which would be clipped by "overflow" */}}
 | 
			
		||||
									<div id="diff-rendered-{{$file.NameHash}}" class="file-body file-code {{if $.IsSplitStyle}}code-diff-split{{else}}code-diff-unified{{end}} gt-overflow-x-scroll">
 | 
			
		||||
										<table class="chroma gt-w-100">
 | 
			
		||||
											{{if $isImage}}
 | 
			
		||||
												{{template "repo/diff/image_diff" dict "file" . "root" $ "blobBase" $blobBase "blobHead" $blobHead}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user