summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-07-23 04:12:09 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-07-23 10:12:09 +0800
commitbcbc9f33d73393c47b27793ac91b8f9faf98d349 (patch)
tree16dcf3e3e4ea8b2373c8b96415ff58649e7896a1 /templates
parent26b493bb26ea792d1fdbec93f4088378e70c5871 (diff)
downloadgitea-bcbc9f33d73393c47b27793ac91b8f9faf98d349.tar.gz
gitea-bcbc9f33d73393c47b27793ac91b8f9faf98d349.zip
Fix file header overflow in file and blame views (#7562)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/blame.tmpl6
-rw-r--r--templates/repo/view_file.tmpl4
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/blame.tmpl b/templates/repo/blame.tmpl
index 012f630203..e42366fd6e 100644
--- a/templates/repo/blame.tmpl
+++ b/templates/repo/blame.tmpl
@@ -2,11 +2,11 @@
<h4 class="ui top attached header" id="repo-read-file">
<div class="ui stackable grid">
- <div class="ten wide column">
+ <div class="eight wide column">
<i class="file text outline icon ui left"></i>
<strong>{{.FileName}}</strong> <span class="text grey normal">{{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}}</span>
</div>
- <div class="six wide right aligned column">
+ <div class="eight wide right aligned column">
<div class="ui right file-actions">
<div class="ui buttons">
{{if not .IsViewCommit}}
@@ -48,4 +48,4 @@
</div>
-</div> \ No newline at end of file
+</div>
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index 6445ee7b9e..72b1ae7a84 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -1,7 +1,7 @@
<div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
<h4 class="ui top attached header" id="{{if .ReadmeExist}}repo-readme{{else}}repo-read-file{{end}}">
<div class="ui stackable grid">
- <div class="ten wide column">
+ <div class="eight wide column">
{{if .ReadmeExist}}
<i class="book icon ui left"></i>
{{if .ReadmeInList}}
@@ -14,7 +14,7 @@
<strong>{{.FileName}}</strong> <span class="text grey normal">{{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}}</span>
{{end}}
</div>
- <div class="six wide right aligned column">
+ <div class="eight wide right aligned column">
{{if not .ReadmeInList}}
<div class="ui right file-actions">
<div class="ui buttons">