From 441f3f0f205234e8cb8d7bac90ed115ebd2e9d43 Mon Sep 17 00:00:00 2001 From: vnkmpf Date: Thu, 11 Feb 2021 19:28:51 +0100 Subject: Make fileheader sticky in diffs (#14616) * Make fileheader sticky #12552 * Remove sticky filenames when width is 480px or less On mobile phone sticky filename is hidden due to the combination of many possible widths and lengths. * Fix text color for .markdown-info * Fix visual of sticky diff box on 480px or less - Hide arrow for select buttons. - Fix changes, additions and deletions. With flexbox they look very broken. This commit hides some words to, so the result is: "123 changed files 987 additions 456 deletions" - center text in buttons Co-authored-by: zeripath --- templates/repo/diff/box.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/repo/diff') diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index f01795ad15..5110129b8d 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -79,7 +79,7 @@ {{else}}
-

+

{{$isImage := false}} {{if $file.IsDeleted}} -- cgit v1.2.3