From b62fa72cebf84b2ece9075549c5a748a251ac515 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 3 Jun 2024 19:21:45 +0200 Subject: [PATCH] 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. (cherry picked from commit 0f0db6a14fd10a493ba73f211e2e627c3884d114) --- routers/web/repo/issue_content_history.go | 2 +- web_src/css/repo.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/routers/web/repo/issue_content_history.go b/routers/web/repo/issue_content_history.go index c817d6aa9..31d2de6d5 100644 --- a/routers/web/repo/issue_content_history.go +++ b/routers/web/repo/issue_content_history.go @@ -158,7 +158,7 @@ func GetContentHistoryDetail(ctx *context.Context) { // use chroma to render the diff html diffHTMLBuf := bytes.Buffer{} - diffHTMLBuf.WriteString("
")
+	diffHTMLBuf.WriteString("
")
 	for _, it := range diff {
 		if it.Type == diffmatchpatch.DiffInsert {
 			diffHTMLBuf.WriteString("")
diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index 066e81f63..af27a6600 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -2489,6 +2489,7 @@ tbody.commit-list {
   min-height: 12em;
   max-height: calc(100vh - 10.5rem);
   overflow-y: auto;
+  tab-size: 4;
 }
 
 .comment-diff-data pre {