diff --git a/src/main/scala/gitbucket/core/view/helpers.scala b/src/main/scala/gitbucket/core/view/helpers.scala index 6bbf6b7..b308c5f 100644 --- a/src/main/scala/gitbucket/core/view/helpers.scala +++ b/src/main/scala/gitbucket/core/view/helpers.scala @@ -412,30 +412,4 @@ */ def readableSize(size: Option[Long]): String = FileUtil.readableSize(size.getOrElse(0)) - - /** - * - * @param icon icon name: fa-* or octicon-*, for compatibility, it accepts name of octicon without octicon- prefix. - * @return icon tag String - */ - def menuicon(icon:String): Html = { - icon match { - case i if i.startsWith("fa-") => - Html(s"""""") - case i if i.startsWith("octicon-") => - Html(s"""""") - case i => - Html(s"""""") - } - } - - /** - * make menu icon with octicon/font-awesome with Option[String] - * @param icon icon name: fa-* or octicon-*, for compatibility, it accepts name of octicon without octicon- prefix. - * @param defaultIcon default name for icon == None - * @return icon tag String - */ - def menuicon(icon: Option[String], defaultIcon: String): Html = { - menuicon(icon.getOrElse(defaultIcon)) - } } diff --git a/src/main/twirl/gitbucket/core/account/application.scala.html b/src/main/twirl/gitbucket/core/account/application.scala.html index a065e66..0bd5f99 100644 --- a/src/main/twirl/gitbucket/core/account/application.scala.html +++ b/src/main/twirl/gitbucket/core/account/application.scala.html @@ -2,7 +2,6 @@ personalTokens: List[gitbucket.core.model.AccessToken], gneratedToken: Option[(gitbucket.core.model.AccessToken, String)])(implicit context: gitbucket.core.controller.Context) @gitbucket.core.html.main("Applications"){ -
@gitbucket.core.account.html.menu("application", context.settings.ssh){
Personal access tokens
@@ -49,5 +48,4 @@
} -
} diff --git a/src/main/twirl/gitbucket/core/account/edit.scala.html b/src/main/twirl/gitbucket/core/account/edit.scala.html index 757e068..9237745 100644 --- a/src/main/twirl/gitbucket/core/account/edit.scala.html +++ b/src/main/twirl/gitbucket/core/account/edit.scala.html @@ -2,7 +2,6 @@ @import gitbucket.core.util.LDAPUtil @import gitbucket.core.view.helpers @gitbucket.core.html.main("Edit your profile"){ -
@gitbucket.core.account.html.menu("profile", context.settings.ssh){ @gitbucket.core.helper.html.information(info) @gitbucket.core.helper.html.error(error) @@ -61,7 +60,6 @@
} - } - +
} -
- -
-
-
-
- @gitbucket.core.helper.html.information(info) - @gitbucket.core.helper.html.error(error) -
- @gitbucket.core.helper.html.repositoryicon(repository, true) - @repository.owner / @repository.name +
+
+
+
+
+ @gitbucket.core.helper.html.information(info) + @gitbucket.core.helper.html.error(error) +
+ @gitbucket.core.helper.html.repositoryicon(repository, true) + @repository.owner / @repository.name - @defining(repository.repository){ x => - @if(repository.repository.originRepositoryName.isDefined){ - - } - @x.description.map { description => -
@Html(helpers.detectAndRenderLinks(description, repository))
- } + @defining(repository.repository){ x => + @if(repository.repository.originRepositoryName.isDefined){ + } -
+ @x.description.map { description => +
@Html(helpers.detectAndRenderLinks(description, repository))
+ } + }
- @body
+ @body
diff --git a/src/main/webapp/assets/common/css/gitbucket.css b/src/main/webapp/assets/common/css/gitbucket.css index 65717c4..4e22054 100644 --- a/src/main/webapp/assets/common/css/gitbucket.css +++ b/src/main/webapp/assets/common/css/gitbucket.css @@ -264,16 +264,6 @@ border-radius: 3px; } -li.repo-link, li.page-link { - padding-top: 4px; - padding-bottom: 4px; - white-space: nowrap; - text-overflow: ellipsis; -} -body:not(.sidebar-collapse) li.repo-link, li.page-link{ - overflow: hidden; -} - div.box-content-bottom { background-color: white; border: 1px solid #d8d8d8; @@ -1845,19 +1835,14 @@ transition: none !important; } -body.sidebar-collapse .main-sidebar li.treeview:not(:hover) span.label.pull-right-container { +body.sidebar-collapse .main-sidebar li.menu-item-hover:not(:hover) span.pull-right-container { display: inline !important; position: absolute; - top: 9px; - right: 7px; - text-align: center; + top: 8px; + right: 0px; font-size: 9px; - padding: 2px 3px; - line-height: .9; } -body.sidebar-collapse .main-sidebar li.treeview:hover span.label.pull-right-container { - left: 180px !important; - margin-left: 0px; - padding: 12px 20px 12px 20px; +body.sidebar-collapse .main-sidebar li.treeview:not(:hover) span.pull-right-container span.label { + padding: 2px 4px; }