From 4a722c9a45659e7732258397bbb3dd1039ea1952 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 3 May 2023 23:58:59 +0200 Subject: [PATCH] Make Issue/PR/projects more compact, misc CSS tweaks (#24459) - Remove various horizontal dividers on repo pages that didn't provide visual benefit - Remove label/milestone pills on single issue/pr page - Remove issue-related pill buttons on projects page - Increase contrast of color-secondary on arc-green - Improve notifications icon, make circle bigger - Remove some inline styles - Fix focus in issue/pr title edit and select all text on button click ### Issue and PR before and after Screenshot 2023-05-01 at 11 44 22 Screenshot 2023-05-01 at 11 58 51 ### Projects before and after Screenshot 2023-05-01 at 11 41 02 Screenshot 2023-05-01 at 11 40 03 ### Releases before and after Screenshot 2023-05-01 at 11 41 12 Screenshot 2023-05-01 at 11 40 10 ### Misc Screenshot 2023-05-01 at 10 49 13 Screenshot 2023-05-01 at 18 57 08 Issue title edit and wrap: Screenshot 2023-05-01 at 12 34 40 Screenshot 2023-05-01 at 12 06 24 --------- Co-authored-by: wxiaoguang --- templates/org/member/members.tmpl | 2 +- templates/projects/list.tmpl | 2 +- templates/repo/actions/openclose.tmpl | 2 +- templates/repo/branch_dropdown.tmpl | 9 +- templates/repo/commits.tmpl | 2 +- templates/repo/home.tmpl | 2 +- templates/repo/issue/labels.tmpl | 3 +- templates/repo/issue/list.tmpl | 3 - templates/repo/issue/milestones.tmpl | 5 +- templates/repo/issue/navbar.tmpl | 2 +- templates/repo/issue/new.tmpl | 4 - templates/repo/issue/openclose.tmpl | 2 +- templates/repo/issue/view.tmpl | 25 +-- templates/repo/issue/view_content.tmpl | 9 - templates/repo/issue/view_title.tmpl | 194 ++++++++++-------- templates/repo/projects/list.tmpl | 62 +++--- templates/repo/pulls/commits.tmpl | 11 +- templates/repo/pulls/files.tmpl | 14 +- templates/repo/release/list.tmpl | 10 +- templates/repo/settings/options.tmpl | 6 +- templates/repo/sub_menu_release_tag.tmpl | 2 +- templates/user/dashboard/issues.tmpl | 2 +- templates/user/dashboard/milestones.tmpl | 2 +- .../notification_subscriptions.tmpl | 2 +- tests/integration/issue_test.go | 2 +- web_src/css/base.css | 10 +- web_src/css/repository.css | 110 +++++----- web_src/css/repository/issue-list.css | 1 + web_src/css/repository/list-header.css | 4 +- web_src/css/repository/release-tag.css | 27 +-- web_src/css/themes/theme-arc-green.css | 52 ++--- .../js/components/RepoBranchTagSelector.vue | 2 +- web_src/js/features/repo-issue.js | 4 +- web_src/js/features/repo-legacy.js | 6 +- 34 files changed, 265 insertions(+), 330 deletions(-) diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index d6ab265ea8..3d5b3beebd 100644 --- a/templates/org/member/members.tmpl +++ b/templates/org/member/members.tmpl @@ -7,7 +7,7 @@
{{range .Members}}
-
+
{{avatar $.Context . 48}}
diff --git a/templates/projects/list.tmpl b/templates/projects/list.tmpl index 1ef0b0be97..e9e86e5d5d 100644 --- a/templates/projects/list.tmpl +++ b/templates/projects/list.tmpl @@ -10,7 +10,7 @@ {{end}} {{template "base/alert" .}} -