From bcbc9f33d73393c47b27793ac91b8f9faf98d349 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 23 Jul 2019 04:12:09 +0200 Subject: [PATCH] Fix file header overflow in file and blame views (#7562) --- templates/repo/blame.tmpl | 6 +++--- templates/repo/view_file.tmpl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/repo/blame.tmpl b/templates/repo/blame.tmpl index 012f63020..e42366fd6 100644 --- a/templates/repo/blame.tmpl +++ b/templates/repo/blame.tmpl @@ -2,11 +2,11 @@

-
+
{{.FileName}} {{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}}
-
+
{{if not .IsViewCommit}} @@ -48,4 +48,4 @@
-
\ No newline at end of file +
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 6445ee7b9..72b1ae7a8 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -1,7 +1,7 @@

-
+
{{if .ReadmeExist}} {{if .ReadmeInList}} @@ -14,7 +14,7 @@ {{.FileName}} {{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}} {{end}}
-
+
{{if not .ReadmeInList}}