diff options
author | vnkmpf <tz@zztt.eu> | 2021-02-11 19:28:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 19:28:51 +0100 |
commit | 441f3f0f205234e8cb8d7bac90ed115ebd2e9d43 (patch) | |
tree | ab827324b3676539c3ed602da8bdb4b2f31d02e2 /templates/repo/diff | |
parent | 7d7007dca75ab3a3a48b9f3fd7cc4350cc626870 (diff) | |
download | gitea-441f3f0f205234e8cb8d7bac90ed115ebd2e9d43.tar.gz gitea-441f3f0f205234e8cb8d7bac90ed115ebd2e9d43.zip |
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 <art27@cantab.net>
Diffstat (limited to 'templates/repo/diff')
-rw-r--r-- | templates/repo/diff/box.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ </div> {{else}} <div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}}" id="diff-{{.Index}}"> - <h4 class="diff-file-header ui top attached normal header df ac sb"> + <h4 class="diff-file-header sticky-2nd-row ui top attached normal header df ac sb"> <div class="df ac"> {{$isImage := false}} {{if $file.IsDeleted}} |