From d6a980501b3d77f4ca1efca72adf752886ec3f47 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 23 Jul 2019 08:18:39 +0200 Subject: [PATCH] Fix file header overflow in file and blame views (#7562) (#7579) --- 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 012f630203..e42366fd6e 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 6445ee7b9e..72b1ae7a84 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}}