Skip to content

Commit 54af3c9

Browse files
authored
Fix issue sidebar menus having an infinite height (#10239)
* Revert "Limit label list height on edit issue page" * Fix issue sidebar menus having an infinite height
1 parent d9c7998 commit 54af3c9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<strong>{{.i18n.Tr "repo.issues.new.labels"}}</strong>
88
{{svg "octicon-gear" 16}}
99
</span>
10-
<div class="filter menu labels" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/labels">
10+
<div class="filter menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/labels">
1111
<div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_labels"}}</div>
1212
{{range .Labels}}
1313
<a class="{{if .IsChecked}}checked{{end}} item has-emoji" href="#" data-id="{{.ID}}" data-id-selector="#label_{{.ID}}"><span class="octicon-check {{if not .IsChecked}}invisible{{end}}">{{svg "octicon-check" 16}}</span><span class="label color" style="background-color: {{.Color}}"></span> {{.Name}}

web_src/less/_repository.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
.metas {
8484
.menu {
8585
overflow-x: auto;
86+
max-height: 300px;
8687
}
8788

8889
.ui.list {
@@ -152,8 +153,6 @@
152153
}
153154

154155
&.labels {
155-
max-height: 300px;
156-
157156
.label-filter .menu .info {
158157
display: inline-block;
159158
padding: 9px 7px 7px 7px;

0 commit comments

Comments
 (0)