Skip to content

Commit

Permalink
File path tweaks in UI (#2264)
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind authored and appleboy committed Aug 6, 2017
1 parent d05150a commit 54381f4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
7 changes: 7 additions & 0 deletions public/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
7 changes: 7 additions & 0 deletions public/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions templates/repo/home.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 54381f4

Please sign in to comment.