Skip to content

Commit bcbc9f3

Browse files
silverwindlunny
authored andcommitted
Fix file header overflow in file and blame views (#7562)
1 parent 26b493b commit bcbc9f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

templates/repo/blame.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
<h4 class="ui top attached header" id="repo-read-file">
44
<div class="ui stackable grid">
5-
<div class="ten wide column">
5+
<div class="eight wide column">
66
<i class="file text outline icon ui left"></i>
77
<strong>{{.FileName}}</strong> <span class="text grey normal">{{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}}</span>
88
</div>
9-
<div class="six wide right aligned column">
9+
<div class="eight wide right aligned column">
1010
<div class="ui right file-actions">
1111
<div class="ui buttons">
1212
{{if not .IsViewCommit}}
@@ -48,4 +48,4 @@
4848
</div>
4949

5050

51-
</div>
51+
</div>

templates/repo/view_file.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
22
<h4 class="ui top attached header" id="{{if .ReadmeExist}}repo-readme{{else}}repo-read-file{{end}}">
33
<div class="ui stackable grid">
4-
<div class="ten wide column">
4+
<div class="eight wide column">
55
{{if .ReadmeExist}}
66
<i class="book icon ui left"></i>
77
{{if .ReadmeInList}}
@@ -14,7 +14,7 @@
1414
<strong>{{.FileName}}</strong> <span class="text grey normal">{{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}}</span>
1515
{{end}}
1616
</div>
17-
<div class="six wide right aligned column">
17+
<div class="eight wide right aligned column">
1818
{{if not .ReadmeInList}}
1919
<div class="ui right file-actions">
2020
<div class="ui buttons">

0 commit comments

Comments
 (0)