diff --git a/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html b/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html index 5451506..8b1e8f4 100644 --- a/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html +++ b/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html @@ -7,8 +7,7 @@ @import gitbucket.core.view.helpers._ @helper.html.dropdown( value = if(branch.length == 40) branch.substring(0, 10) else branch, - prefix = if(branch.length == 40) "tree" else if(repository.branchList.contains(branch)) "branch" else "tree", - mini = false + prefix = if(branch.length == 40) "tree" else if(repository.branchList.contains(branch)) "branch" else "tree" ) {
  • Switch branches
  • diff --git a/src/main/twirl/gitbucket/core/helper/dropdown.scala.html b/src/main/twirl/gitbucket/core/helper/dropdown.scala.html index 7476304..4356ee2 100644 --- a/src/main/twirl/gitbucket/core/helper/dropdown.scala.html +++ b/src/main/twirl/gitbucket/core/helper/dropdown.scala.html @@ -1,13 +1,12 @@ @(value : String = "", prefix: String = "", - mini : Boolean = true, style : String = "", right : Boolean = false, flat : Boolean = false)(body: Html)
    - +
    + -
    } else { } } @if(loginAccount.isDefined){ -
    - @if(newButton){ - @if(active == "issues"){ - New issue - } - @if(active == "pulls"){ - New pull request - } - @if(active == "labels"){ - New label - } - @if(active == "milestones"){ - New milestone - } + @if(newButton){ + @if(active == "issues"){ + New issue } -
    + @if(active == "pulls"){ + New pull request + } + @if(active == "labels"){ + New label + } + @if(active == "milestones"){ + New milestone + } + } } diff --git a/src/main/webapp/assets/common/css/gitbucket.css b/src/main/webapp/assets/common/css/gitbucket.css index 1ca25cb..9bf72ce 100644 --- a/src/main/webapp/assets/common/css/gitbucket.css +++ b/src/main/webapp/assets/common/css/gitbucket.css @@ -86,12 +86,14 @@ } .table-bordered > thead > tr:first-child > th:nth-of-type(1), -.table-bordered > tbody > tr:first-child > th:nth-of-type(1) { +.table-bordered > tbody > tr:first-child > th:nth-of-type(1), +.table-bordered > tbody > tr:first-child > td:nth-of-type(1) { border-top-left-radius: 4px; } .table-bordered > thead > tr:first-child > th:nth-last-of-type(1), -.table-bordered > tbody > tr:first-child > th:nth-last-of-type(1) { +.table-bordered > tbody > tr:first-child > th:nth-last-of-type(1), +.table-bordered > tbody > tr:first-child > td:nth-last-of-type(1) { border-top-right-radius: 4px; }