From 056829749e4e955861531cbb1ae60d47a28128f0 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 22 Jun 2023 08:33:13 -0400 Subject: [PATCH] Diff page enhancements (#25398) (#25437) Backport #25398 by @silverwind Two small tweaks: 1. Vertically center arrow here when editing a PR: Screenshot 2023-06-20 at 19 48 49 2. Use 2-row layout on diff viewed status and show it again on mobile: Screenshot 2023-06-20 at 19 51 21 Mobile view: Screenshot 2023-06-20 at 19 44 40 Co-authored-by: silverwind --- templates/repo/diff/box.tmpl | 10 ++++++---- templates/repo/issue/view_title.tmpl | 4 ++-- web_src/css/repo.css | 1 - web_src/css/review.css | 4 ++-- 4 files changed, 10 insertions(+), 9 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 @@
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}} - - +
+ + +
{{end}} {{template "repo/diff/whitespace_dropdown" .}} {{template "repo/diff/options_dropdown" .}} diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index e928b7bd25..895eaee8ce 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -70,9 +70,9 @@ {{$.locale.Tr "repo.pulls.title_desc" .NumCommits $headHref $baseHref | Safe}} {{end}} - +