Browse Source

Limit label list height on edit issue page (#10216)

tags/v1.10.5
jaqra 4 years ago
parent
commit
602b29e965
No account linked to committer's email address
2 changed files with 3 additions and 1 deletions
  1. 1
    1
      templates/repo/issue/view_content/sidebar.tmpl
  2. 2
    0
      web_src/less/_repository.less

+ 1
- 1
templates/repo/issue/view_content/sidebar.tmpl View File

@@ -7,7 +7,7 @@
<strong>{{.i18n.Tr "repo.issues.new.labels"}}</strong>
<span class="octicon octicon-gear"></span>
</span>
<div class="filter menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/labels">
<div class="filter menu labels" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/labels">
<div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_labels"}}</div>
{{range .Labels}}
<a class="{{if .IsChecked}}checked{{end}} item has-emoji" href="#" data-id="{{.ID}}" data-id-selector="#label_{{.ID}}"><span class="octicon {{if .IsChecked}}octicon-check{{end}}"></span><span class="label color" style="background-color: {{.Color}}"></span> {{.Name}}

+ 2
- 0
web_src/less/_repository.less View File

@@ -158,6 +158,8 @@
}

&.labels {
max-height: 300px;

.label-filter .menu .info {
display: inline-block;
padding: 9px 7px 7px 7px;

Loading…
Cancel
Save