]> source.dussan.org Git - gitea.git/commitdiff
File path tweaks in UI (#2264)
authorsilverwind <me@silverwind.io>
Sun, 6 Aug 2017 03:13:20 +0000 (05:13 +0200)
committerBo-Yi Wu <appleboy.tw@gmail.com>
Sun, 6 Aug 2017 03:13:20 +0000 (11:13 +0800)
public/css/index.css
public/less/_base.less
templates/repo/home.tmpl

index d720f6e955bf870cc950dc7d585998c6daeab606..32fefb92e4af17beb7c3e0024ed4f33a8c812202 100644 (file)
@@ -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;
 }
index 757da2a66b21ee76f632b7bfe2a4e51e9e370e06..ba4821035b43383481fef3b8e17c7b12360e7bea 100644 (file)
@@ -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 {
index 5af574ee0490b623ab733e315736ebd113e6c1c9..24ce082da6a585b05028ca56f32badc29f386437 100644 (file)
                        {{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}}