diff options
author | sebastian-sauer <sauer.sebastian@gmail.com> | 2023-11-16 04:58:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 11:58:53 +0800 |
commit | 49dddd87b19aebe83e1c54a455e62529a19f61b4 (patch) | |
tree | 9703b4760452b67cb3390e433d5559966ae02667 /templates/repo/diff | |
parent | 79394b340d227182f94bae48cb08a091c78f2ea2 (diff) | |
download | gitea-49dddd87b19aebe83e1c54a455e62529a19f61b4.tar.gz gitea-49dddd87b19aebe83e1c54a455e62529a19f61b4.zip |
Improve PR diff view on mobile (#27883)
1. Show diff stats only on large screens
these are already shown in tabs, so no need for this duplicate
information on small screens


2. Hide viewed files information on small screens
Github does the same and this gives us more free space on small screens


3. Review bar now doesn't wrap so we don't need the 77px even on very
small screens
(the sticky headers are still working)

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 945c521a57..e72ac1eeae 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -25,7 +25,7 @@ </div> <div class="diff-detail-actions"> {{if and .PageIsPullFiles $.SignedUserID (not .IsArchived) (not .DiffNotAvailable)}} - <div class="gt-df gt-ac gt-fc gt-whitespace-nowrap gt-mr-2"> + <div class="not-mobile 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="{{ctx.Locale.Tr "repo.pulls.viewed_files_label"}}"> {{ctx.Locale.Tr "repo.pulls.viewed_files_label" .Diff.NumViewedFiles .Diff.NumFiles}} </label> |