Selaa lähdekoodia

settings: fix organization panel CSS

Unknwon 8 vuotta sitten
vanhempi
commit
c8982f4165
3 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 1 1
      public/css/gogs.css
  2. 3 1
      public/less/_user.less
  3. 1 1
      templates/user/settings/organizations.tmpl

+ 1 - 1
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 {

+ 3 - 1
public/less/_user.less

@@ -20,7 +20,9 @@
 			}
 		}
 		.orgs {
-			padding: 0;
+			&.non-empty {
+				padding: 0;
+			}
 			.item {
 				padding: 10px;
 				.button {

+ 1 - 1
templates/user/settings/organizations.tmpl

@@ -11,7 +11,7 @@
 						<a class="ui blue tiny button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "new_org"}}</a>
 					</div>
 				</h4>
-				<div class="ui attached segment orgs">
+				<div class="ui attached segment orgs {{if .Orgs}}non-empty{{end}}">
 					{{if .Orgs}}
 						<div class="ui middle aligned divided list">
 							{{range .Orgs}}