mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Remove unnecessary inline style for tab-size (#31224)
Move the rule to the parent node. `tab-size` is inherited so will work just as before.
This commit is contained in:
		@@ -156,7 +156,7 @@ func GetContentHistoryDetail(ctx *context.Context) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	// use chroma to render the diff html
 | 
						// use chroma to render the diff html
 | 
				
			||||||
	diffHTMLBuf := bytes.Buffer{}
 | 
						diffHTMLBuf := bytes.Buffer{}
 | 
				
			||||||
	diffHTMLBuf.WriteString("<pre class='chroma' style='tab-size: 4'>")
 | 
						diffHTMLBuf.WriteString("<pre class='chroma'>")
 | 
				
			||||||
	for _, it := range diff {
 | 
						for _, it := range diff {
 | 
				
			||||||
		if it.Type == diffmatchpatch.DiffInsert {
 | 
							if it.Type == diffmatchpatch.DiffInsert {
 | 
				
			||||||
			diffHTMLBuf.WriteString("<span class='gi'>")
 | 
								diffHTMLBuf.WriteString("<span class='gi'>")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2322,6 +2322,7 @@ tbody.commit-list {
 | 
				
			|||||||
  min-height: 12em;
 | 
					  min-height: 12em;
 | 
				
			||||||
  max-height: calc(100vh - 10.5rem);
 | 
					  max-height: calc(100vh - 10.5rem);
 | 
				
			||||||
  overflow-y: auto;
 | 
					  overflow-y: auto;
 | 
				
			||||||
 | 
					  tab-size: 4;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.comment-diff-data pre {
 | 
					.comment-diff-data pre {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user