From fd0baf637dc7cc884a79ae339f43482d75f27b2d Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 4 Apr 2023 07:05:41 -0400 Subject: [PATCH] Org pages style fixes (#23901) (#23914) Backport #23901 by @silverwind Few fixes/enhancements around org pages: Use flexbox for member and repo lists and tweak rendering of tabs and list: Screenshot 2023-04-03 at 22 54 24 Screenshot 2023-04-03 at 22 55 15 Vertically center remove/leave buttons, add link to avatar: Screenshot 2023-04-03 at 21 51 20 Co-authored-by: silverwind --- templates/org/home.tmpl | 4 +--- templates/org/member/members.tmpl | 4 ++-- templates/org/team/members.tmpl | 12 ++++++------ templates/org/team/navbar.tmpl | 2 +- templates/org/team/repositories.tmpl | 26 +++++++++++++------------- web_src/css/organization.css | 13 ++++++------- 6 files changed, 29 insertions(+), 32 deletions(-) diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index e1adaf1c1b..66aa98e80d 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -51,9 +51,7 @@ {{$isMember := .IsOrganizationMember}} {{range .Members}} {{if or $isMember (call $.IsPublicMember .ID)}} - - {{avatar $.Context .}} - + {{avatar $.Context . 48}} {{end}} {{end}} diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl index 0eae60fbfc..511d333c29 100644 --- a/templates/org/member/members.tmpl +++ b/templates/org/member/members.tmpl @@ -8,7 +8,7 @@ {{range .Members}}
- {{avatar $.Context . 48}} + {{avatar $.Context . 48}}
{{.FullName}}
@@ -55,7 +55,7 @@ {{end}}
{{end}} -
+
{{if eq $.SignedUser.ID .ID}}
diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index 6ea1614753..fd5e3b8458 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -25,19 +25,19 @@ {{end}}
{{range .Team.Members}} -
+
+ {{avatar $.Context . 48 "gt-mr-3 gt-mb-0"}} + + {{.DisplayName}} + {{if and $.IsOrganizationOwner (not (and ($.Team.IsOwnerTeam) (eq (len $.Team.Members) 1)))}} - {{end}} - - {{avatar $.Context .}} - {{.DisplayName}} -
{{else}}
diff --git a/templates/org/team/navbar.tmpl b/templates/org/team/navbar.tmpl index 436c69bfc6..44fe5f1c21 100644 --- a/templates/org/team/navbar.tmpl +++ b/templates/org/team/navbar.tmpl @@ -1,4 +1,4 @@ -