mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Set max-width on review-box comment box (#10348)
This commit is contained in:
		@@ -142,4 +142,26 @@
 | 
			
		||||
            overflow-x: auto;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #review-box .CodeMirror-scroll {
 | 
			
		||||
        max-width: calc(100vw - 70px);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media only screen and (min-width: 768px) and (max-width: 992px) {
 | 
			
		||||
    #review-box .CodeMirror-scroll {
 | 
			
		||||
        max-width: 700px;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media only screen and (min-width: 992px) and (max-width: 1200px) {
 | 
			
		||||
    #review-box .CodeMirror-scroll {
 | 
			
		||||
        max-width: 800px;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media only screen and (min-width: 1200px) {
 | 
			
		||||
    #review-box .CodeMirror-scroll {
 | 
			
		||||
        max-width: 900px;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user