diff options
author | jaqra <48099350+jaqra@users.noreply.github.com> | 2020-02-11 18:41:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 16:41:48 +0100 |
commit | 602b29e96591e01038ec51a7b5153401f25ccd55 (patch) | |
tree | 08f5234bbb0f33a1b4e7756658c88c48cce29a9c | |
parent | ad2642a8aac9facb217a8471df1d3e00f1214e92 (diff) | |
download | gitea-602b29e96591e01038ec51a7b5153401f25ccd55.tar.gz gitea-602b29e96591e01038ec51a7b5153401f25ccd55.zip |
Limit label list height on edit issue page (#10216)
-rw-r--r-- | templates/repo/issue/view_content/sidebar.tmpl | 2 | ||||
-rw-r--r-- | web_src/less/_repository.less | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 02564643cc..4d57173617 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -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}} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 872ea876a0..7a84c7d636 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -158,6 +158,8 @@ } &.labels { + max-height: 300px; + .label-filter .menu .info { display: inline-block; padding: 9px 7px 7px 7px; |