Skip to content

Commit 54381f4

Browse files
silverwindappleboy
authored andcommitted
File path tweaks in UI (#2264)
1 parent d05150a commit 54381f4

3 files changed

Lines changed: 20 additions & 6 deletions

File tree

public/css/index.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ code.wrap {
120120
.ui.right {
121121
float: right;
122122
}
123+
.ui.button,
124+
.ui.menu .item {
125+
-moz-user-select: auto;
126+
-ms-user-select: auto;
127+
-webkit-user-select: auto;
128+
user-select: auto;
129+
}
123130
.ui.container.fluid.padded {
124131
padding: 0 10px 0 10px;
125132
}

public/less/_base.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ pre, code {
122122
float: right;
123123
}
124124

125+
&.button, &.menu .item {
126+
-moz-user-select: auto;
127+
-ms-user-select: auto;
128+
-webkit-user-select: auto;
129+
user-select: auto;
130+
}
131+
125132
&.container {
126133
&.fluid {
127134
&.padded {

templates/repo/home.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
{{end}}
1818
{{template "repo/branch_dropdown" .}}
1919
<div class="fitted item">
20-
<div class="ui breadcrumb">
21-
<a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{EllipsisString .Repository.Name 25}}</a>
20+
<span class="ui breadcrumb">
21+
<a class="section" href="{{.RepoLink}}/src/{{EscapePound .BranchName}}">{{EllipsisString .Repository.Name 30}}</a>
2222
{{ $n := len .TreeNames}}
2323
{{ $l := Subtract $n 1}}
2424
{{range $i, $v := .TreeNames}}
25-
<div class="divider"> / </div>
25+
<span class="divider"> / </span>
2626
{{if eq $i $l}}
27-
<span class="active section">{{EllipsisString $v 15}}</span>
27+
<span class="active section">{{EllipsisString $v 30}}</span>
2828
{{else}}
2929
{{ $p := index $.Paths $i}}
30-
<span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 15}}</a></span>
30+
<span class="section"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{EllipsisString $v 30}}</a></span>
3131
{{end}}
3232
{{end}}
33-
</div>
33+
</span>
3434
</div>
3535
<div class="right fitted item">
3636
{{if .Repository.CanEnableEditor}}

0 commit comments

Comments
 (0)