瀏覽代碼

css: fix /admin/config pre overflow

ᴜɴᴋɴᴡᴏɴ 5 年之前
父節點
當前提交
d6906895e5
共有 5 個文件被更改,包括 77 次插入68 次删除
  1. 1 1
      internal/assets/conf/conf_gen.go
  2. 3 3
      internal/assets/public/public_gen.go
  3. 4 0
      public/css/gogs.css
  4. 0 0
      public/css/gogs.css.map
  5. 69 64
      public/less/_admin.less

+ 1 - 1
internal/assets/conf/conf_gen.go

@@ -325,7 +325,7 @@ func confAppIni() (*asset, error) {
 		return nil, err
 	}
 
-	info := bindataFileInfo{name: "conf/app.ini", size: 18768, mode: os.FileMode(0644), modTime: time.Unix(1596034690, 0)}
+	info := bindataFileInfo{name: "conf/app.ini", size: 18768, mode: os.FileMode(0644), modTime: time.Unix(1596036324, 0)}
 	a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x17, 0x9d, 0xfa, 0x31, 0x64, 0x46, 0xca, 0x47, 0x2b, 0x69, 0x28, 0xb0, 0xe8, 0xb8, 0x65, 0xe3, 0x4f, 0x1b, 0xaa, 0x66, 0x58, 0xae, 0x8e, 0xa1, 0xa0, 0xa9, 0x47, 0x7d, 0x80, 0xb1, 0xc2, 0xf7}}
 	return a, nil
 }

文件差異過大導致無法顯示
+ 3 - 3
internal/assets/public/public_gen.go


+ 4 - 0
public/css/gogs.css

@@ -3180,6 +3180,10 @@ footer .ui.language .menu {
 .admin.config .log-config table tbody tr td:first-child {
   width: 100px;
 }
+.admin.config .log-config table tbody tr td:last-child pre {
+  width: 600px;
+  overflow-y: auto;
+}
 .explore {
   padding-top: 15px;
   padding-bottom: 80px;

文件差異過大導致無法顯示
+ 0 - 0
public/css/gogs.css.map


+ 69 - 64
public/less/_admin.less

@@ -1,80 +1,85 @@
 .admin {
-	padding-top: 15px;
-	padding-bottom: @footer-margin * 2;
+  padding-top: 15px;
+  padding-bottom: @footer-margin * 2;
 
-	.table.segment {
-		padding: 0;
-		font-size: 13px;
+  .table.segment {
+    padding: 0;
+    font-size: 13px;
 
-		&:not(.striped) {
-			padding-top: 5px;
+    &:not(.striped) {
+      padding-top: 5px;
 
-			thead {
-				th:last-child {
-					padding-right: 5px !important;
-				}
-			}
-		}
+      thead {
+        th:last-child {
+          padding-right: 5px !important;
+        }
+      }
+    }
 
-		th {
-			padding-top: 5px;
-			padding-bottom: 5px;
-		}
+    th {
+      padding-top: 5px;
+      padding-bottom: 5px;
+    }
 
-		&:not(.select) {
-			th, td {
-				&:first-of-type {
-					padding-left: 15px !important;
-				}
-			}
-		}
+    &:not(.select) {
+      th,
+      td {
+        &:first-of-type {
+          padding-left: 15px !important;
+        }
+      }
+    }
   }
 
   code {
     color: #db2828;
   }
 
-	&.user {
-		.email {
-			max-width: 200px;
-		}
-	}
+  &.user {
+    .email {
+      max-width: 200px;
+    }
+  }
 
-	dl.admin-dl-horizontal {
-		padding: 10px 15px;
-		margin: 0;
+  dl.admin-dl-horizontal {
+    padding: 10px 15px;
+    margin: 0;
 
-		dd {
-			margin-left: 240px;
-		}
-		dt {
-			font-weight: bolder;
-			float: left;
-			width: 250px;
-			clear: left;
-			overflow: hidden;
-			text-overflow: ellipsis;
-			white-space: nowrap;
-		}
-	}
+    dd {
+      margin-left: 240px;
+    }
+    dt {
+      font-weight: bolder;
+      float: left;
+      width: 250px;
+      clear: left;
+      overflow: hidden;
+      text-overflow: ellipsis;
+      white-space: nowrap;
+    }
+  }
 
-	&.config {
-		#test-mail-btn {
-			margin-left: 5px;
-		}
-		table tbody tr td:first-child {
-			font-weight: bold;
-		}
-		pre {
-			background-color: #f7f7f7;
-			padding: 5px;
-		}
-		.log-config {
-			table tbody tr td {
-				&:first-child {
-					width: 100px;
-				}
-			}
-		}
-	}
+  &.config {
+    #test-mail-btn {
+      margin-left: 5px;
+    }
+    table tbody tr td:first-child {
+      font-weight: bold;
+    }
+    pre {
+      background-color: #f7f7f7;
+      padding: 5px;
+    }
+    .log-config {
+      table tbody tr td {
+        &:first-child {
+          width: 100px;
+        }
+        &:last-child pre {
+          width: 600px;
+          overflow-y: auto;
+        }
+      }
+    }
+  }
 }

部分文件因文件數量過多而無法顯示