fix dropdown search

tokarchuk/v1.17
Unknwon 9 years ago
parent 1ca257ad9f
commit ee3e0c3c49
  1. 2
      public/css/gogs.min.css
  2. 2
      public/js/gogs.js
  3. 6
      public/less/_base.less
  4. 12
      templates/repo/pulls/compare.tmpl

File diff suppressed because one or more lines are too long

@ -188,7 +188,7 @@ function initRepository() {
var $prompt_span = $('#repo-name-change-prompt');
if ($(this).val().toLowerCase() != $(this).data('repo-name').toLowerCase()) {
$prompt_span.show();
}else{
} else {
$prompt_span.hide();
}
});

@ -213,6 +213,12 @@ pre {
}
}
.scrolling.menu {
.item.selected {
font-weight: 700!important;
}
}
footer {
margin-top: @footer-margin+14px!important;
height: @footer-margin;

@ -14,14 +14,14 @@
<span class="text">base: {{$.BaseBranch}}</span>
<i class="dropdown icon"></i>
</div>
<div class="overflow menu">
<div class="menu">
<div class="ui icon search input">
<i class="filter icon"></i>
<input name="search" placeholder="Filter branch...">
</div>
<div class="items">
<div class="scrolling menu">
{{range .Branches}}
<div class="{{if eq $.BaseBranch .}}active selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{.}}...{{$.SignedUser.Name}}:{{$.HeadBranch}}">{{.}}</div>
<div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-url="{{$.RepoLink}}/compare/{{.}}...{{$.SignedUser.Name}}:{{$.HeadBranch}}">{{.}}</div>
{{end}}
</div>
</div>
@ -32,14 +32,14 @@
<span class="text">compare: {{$.HeadBranch}}</span>
<i class="dropdown icon"></i>
</div>
<div class="overflow menu">
<div class="menu">
<div class="ui icon search input">
<i class="filter icon"></i>
<input name="search" placeholder="Filter branch...">
</div>
<div class="items">
<div class="scrolling menu">
{{range .HeadBranches}}
<div class="{{if eq $.HeadBranch .}}active selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{$.BaseBranch}}...{{$.SignedUser.Name}}:{{.}}">{{.}}</div>
<div class="{{if eq $.HeadBranch .}}selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{$.BaseBranch}}...{{$.SignedUser.Name}}:{{.}}">{{.}}</div>
{{end}}
</div>
</div>

Loading…
Cancel
Save