diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 264a04f6d..15eff8109 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -14,13 +14,15 @@ {{else}}
- - {{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}} - {{svg "octicon-sidebar-collapse" 16 "icon hide"}} - {{svg "octicon-sidebar-expand" 16 "icon"}} - -
- {{svg "octicon-diff" 16 "mr-2"}}{{.locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}} +
+ + {{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}} + {{svg "octicon-sidebar-collapse" 20 "icon hide"}} + {{svg "octicon-sidebar-expand" 20 "icon"}} + +
+ {{svg "octicon-diff" 16 "mr-2"}}{{.locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}} +
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}} @@ -65,7 +67,7 @@
-
+
{{range $i, $file := .Diff.Files}} {{/*notice: the index of Diff.Files should not be used for element ID, because the index will be restarted from 0 when doing load-more for PRs with a lot of files*/}} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index c5d2a5f50..5dee3fccd 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -3099,11 +3099,11 @@ td.blob-excerpt { @media @mediaMdAndDown { #diff-file-tree { - display: none; + display: none !important; } .diff-toggle-file-tree-button { - display: none; + display: none !important; } }