diff options
-rw-r--r-- | public/css/index.css | 7 | ||||
-rw-r--r-- | public/less/_base.less | 7 | ||||
-rw-r--r-- | templates/repo/home.tmpl | 12 |
3 files changed, 20 insertions, 6 deletions
diff --git a/public/css/index.css b/public/css/index.css index d720f6e955..32fefb92e4 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -120,6 +120,13 @@ code.wrap { .ui.right { float: right; } +.ui.button, +.ui.menu .item { + -moz-user-select: auto; + -ms-user-select: auto; + -webkit-user-select: auto; + user-select: auto; +} .ui.container.fluid.padded { padding: 0 10px 0 10px; } diff --git a/public/less/_base.less b/public/less/_base.less index 757da2a66b..ba4821035b 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -122,6 +122,13 @@ pre, code { float: right; } + &.button, &.menu .item { + -moz-user-select: auto; + -ms-user-select: auto; + -webkit-user-select: auto; + user-select: auto; + } + &.container { &.fluid { &.padded { diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 5af574ee04..24ce082da6 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -17,20 +17,20 @@ {{end}} {{template "repo/branch_dropdown" .}} <div class="fitted item"> - <div class="ui breadcrumb"> - <a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{EllipsisString .Repository.Name 25}}</a> + <span class="ui breadcrumb"> + <a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{EllipsisString .Repository.Name 30}}</a> {{ $n := len .TreeNames}} {{ $l := Subtract $n 1}} {{range $i, $v := .TreeNames}} - <div class="divider"> / </div> + <span class="divider"> / </span> {{if eq $i $l}} - <span class="active section">{{EllipsisString $v 15}}</span> + <span class="active section">{{EllipsisString $v 30}}</span> {{else}} {{ $p := index $.Paths $i}} - <span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 15}}</a></span> + <span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 30}}</a></span> {{end}} {{end}} - </div> + </span> </div> <div class="right fitted item"> {{if .Repository.CanEnableEditor}} |