From c8982f4165a461c60bf373490f841aa7769578a9 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 18 Feb 2017 02:22:59 -0500 Subject: [PATCH] settings: fix organization panel CSS --- public/css/gogs.css | 2 +- public/less/_user.less | 4 +++- templates/user/settings/organizations.tmpl | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index 4e5c21e7c..e437ae49a 100644 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -2762,7 +2762,7 @@ footer .ui.language .menu { .user.settings .email.list .item:not(:first-child) .button { margin-top: -10px; } -.user.settings .orgs { +.user.settings .orgs.non-empty { padding: 0; } .user.settings .orgs .item { diff --git a/public/less/_user.less b/public/less/_user.less index 2bcbf4f82..a404c0448 100644 --- a/public/less/_user.less +++ b/public/less/_user.less @@ -20,7 +20,9 @@ } } .orgs { - padding: 0; + &.non-empty { + padding: 0; + } .item { padding: 10px; .button { diff --git a/templates/user/settings/organizations.tmpl b/templates/user/settings/organizations.tmpl index fc9067221..b4963264b 100644 --- a/templates/user/settings/organizations.tmpl +++ b/templates/user/settings/organizations.tmpl @@ -11,7 +11,7 @@ {{.i18n.Tr "new_org"}} -
+
{{if .Orgs}}
{{range .Orgs}}