]> source.dussan.org Git - gitea.git/commitdiff
nowarp fix
authorUnknwon <joe2010xtmf@163.com>
Thu, 7 Aug 2014 04:15:39 +0000 (00:15 -0400)
committerUnknwon <joe2010xtmf@163.com>
Thu, 7 Aug 2014 04:15:39 +0000 (00:15 -0400)
public/ng/css/gogs.css
public/ng/less/gogs/repository.less

index 8a0029ace74be1c4890cf93c9f97954764deed91..148df5eb4363dfc0549a75b2975a8196fb8d9c89 100644 (file)
@@ -1155,21 +1155,37 @@ The register and sign-in page style
 #repo-create-cancel {
   margin-left: 4em;
 }
+#dashboard-switch-menu,
 #repo-create-owner-list {
   top: 30px;
   left: 0;
+  width: auto;
+  max-width: 300px;
 }
+#dashboard-switch-menu .octicon,
 #repo-create-owner-list .octicon {
   margin-right: 12px;
   opacity: 0;
 }
+#dashboard-switch-menu .avatar,
 #repo-create-owner-list .avatar {
   width: 20px;
   height: 20px;
 }
+#dashboard-switch-menu li,
+#repo-create-owner-list li {
+  white-space: nowrap;
+}
+#dashboard-switch-menu li.checked .octicon,
 #repo-create-owner-list li.checked .octicon {
   opacity: 1;
 }
+#dashboard-switch-menu li a,
+#repo-create-owner-list li a {
+  text-overflow: ellipsis;
+  -o-text-overflow: ellipsis;
+  overflow: hidden;
+}
 .file-name {
   margin-left: 1em;
 }
index 88d12a7e4e507ad6edb4cfbde32ebbfea8f8cc45..13f5a42e53778474dc44293b20a23d38724ea24c 100644 (file)
   margin-left: 4em;
 }
 
+#dashboard-switch-menu,
 #repo-create-owner-list {
-  .octicon {
-    margin-right: 12px;
-    opacity: 0;
-  }
-  top: 30px;
-  left: 0;
-  .avatar {
-    width: 20px;
-    height: 20px;
-  }
-  li.checked {
+    top: 30px;
+    left: 0;
+    width: auto;
+    max-width: 300px;
     .octicon {
-      opacity: 1;
+        margin-right: 12px;
+        opacity: 0;
+    }
+    .avatar {
+        width: 20px;
+        height: 20px;
+    }
+    li {
+        white-space: nowrap;
+        &.checked {
+            .octicon {
+                opacity: 1;
+            }
+        }
+        a {
+            text-overflow: ellipsis; 
+            -o-text-overflow: ellipsis; 
+            overflow: hidden;
+        }
     }
-  }
 }
 .file-name {
   margin-left: 1em;