diff options
author | silverwind <me@silverwind.io> | 2023-06-22 13:05:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 11:05:22 +0000 |
commit | 7fb539677b448a9cc554e71afb98da558f3e0631 (patch) | |
tree | b203e7ed56f328266ebd081942a099728df774d7 /templates/repo/diff | |
parent | af094fbb6c066ba2e02b812dc3e5875d46e0db42 (diff) | |
download | gitea-7fb539677b448a9cc554e71afb98da558f3e0631.tar.gz gitea-7fb539677b448a9cc554e71afb98da558f3e0631.zip |
Diff page enhancements (#25398)
Two small tweaks:
1. Vertically center arrow here when editing a PR:
<img width="405" alt="Screenshot 2023-06-20 at 19 48 49"
src="https://github.com/go-gitea/gitea/assets/115237/1d63764d-9fd9-467e-8a8e-9258c06475eb">
2. Use 2-row layout on diff viewed status and show it again on mobile:
<img width="142" alt="Screenshot 2023-06-20 at 19 51 21"
src="https://github.com/go-gitea/gitea/assets/115237/3046e782-163c-4f87-910c-a22066de8f1b">
Mobile view:
<img width="370" alt="Screenshot 2023-06-20 at 19 44 40"
src="https://github.com/go-gitea/gitea/assets/115237/9cf56347-7323-4d05-99a5-17ad215ee44d">
Diffstat (limited to 'templates/repo/diff')
-rw-r--r-- | templates/repo/diff/box.tmpl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 36fb98fa66..67d0434e4a 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -34,10 +34,12 @@ </div> <div class="diff-detail-actions gt-df gt-ac gt-gap-2 gt-fw"> {{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}} - <progress id="viewed-files-summary" value="{{.Diff.NumViewedFiles}}" max="{{.Diff.NumFiles}}"></progress> - <label for="viewed-files-summary" id="viewed-files-summary-label" class="gt-f1 gt-whitespace-nowrap not-mobile" data-text-changed-template="{{.locale.Tr "repo.pulls.viewed_files_label"}}"> - {{.locale.Tr "repo.pulls.viewed_files_label" .Diff.NumViewedFiles .Diff.NumFiles}} - </label> + <div class="gt-df gt-ac gt-fc gt-whitespace-nowrap gt-mr-2"> + <label for="viewed-files-summary" id="viewed-files-summary-label" data-text-changed-template="{{.locale.Tr "repo.pulls.viewed_files_label"}}"> + {{.locale.Tr "repo.pulls.viewed_files_label" .Diff.NumViewedFiles .Diff.NumFiles}} + </label> + <progress id="viewed-files-summary" value="{{.Diff.NumViewedFiles}}" max="{{.Diff.NumFiles}}"></progress> + </div> {{end}} {{template "repo/diff/whitespace_dropdown" .}} {{template "repo/diff/options_dropdown" .}} |