').html(data));
diff --git a/src/main/twirl/gitbucket/core/repo/files.scala.html b/src/main/twirl/gitbucket/core/repo/files.scala.html
index f8b0885..b272a3b 100644
--- a/src/main/twirl/gitbucket/core/repo/files.scala.html
+++ b/src/main/twirl/gitbucket/core/repo/files.scala.html
@@ -106,25 +106,25 @@
}
- @if(file.isDirectory){
- @if(file.linkUrl.isDefined){
-
- @file.name.split("/").toList.init match {
- case Nil => {}
- case list => {@list.mkString("", "/", "/")}
- }@file.name.split("/").toList.last
-
+ @if(file.isDirectory){
+ @if(file.linkUrl.isDefined){
+
+ @file.name.split("/").toList.init match {
+ case Nil => {}
+ case list => {@list.mkString("", "/", "/")}
+ }@file.name.split("/").toList.last
+
+ } else {
+
+ @file.name.split("/").toList.init match {
+ case Nil => {}
+ case list => {@list.mkString("", "/", "/")}
+ }@file.name.split("/").toList.last
+
+ }
} else {
-
- @file.name.split("/").toList.init match {
- case Nil => {}
- case list => {@list.mkString("", "/", "/")}
- }@file.name.split("/").toList.last
-
+ @file.name
}
- } else {
- @file.name
- }
|
@link(file.message, repository)
diff --git a/src/main/webapp/assets/common/css/gitbucket.css b/src/main/webapp/assets/common/css/gitbucket.css
index 5b13ac1..fe72462 100644
--- a/src/main/webapp/assets/common/css/gitbucket.css
+++ b/src/main/webapp/assets/common/css/gitbucket.css
@@ -829,6 +829,9 @@
table.table-file-list .content-name {
max-width: 180px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
table.table-file-list .commit-message {
@@ -1715,28 +1718,39 @@
border-bottom: 1px solid #ddd;
font-size: 2.5em;
font-weight: bold;
+ line-height: 1.7;
}
div.markdown-body h2 {
border-bottom: 1px solid #eee;
font-size: 2em;
+ font-weight: bold;
+ line-height: 1.7;
}
div.markdown-body h3 {
font-size: 1.5em;
+ font-weight: bold;
+ line-height: 1.7;
}
div.markdown-body h4 {
font-size: 1.2em;
+ font-weight: bold;
+ line-height: 1.7;
}
div.markdown-body h5 {
font-size: 1em;
+ font-weight: bold;
+ line-height: 1.7;
}
div.markdown-body h6 {
color:#777;
font-size: 1em;
+ font-weight: bold;
+ line-height: 1.7;
}
div.markdown-body li {
@@ -1902,7 +1916,6 @@
.markdown-head {
position: relative;
- line-height: 1.7;
}
a.markdown-anchor-link {
|