Skip to content

Commit 503c5b7

Browse files
committed
remove 'ui secondary menu' from labels list header and the related CSS
1 parent 721c9ea commit 503c5b7

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

templates/repo/issue/labels/label_list.tmpl

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
<h4 class="ui top attached header">
22
{{ctx.Locale.Tr "repo.issues.label_count" .NumLabels}}
33
<div class="ui right">
4-
<div class="ui secondary menu">
5-
<!-- Sort -->
6-
<div class="item ui jump dropdown tw-py-2">
7-
<span class="text">
8-
{{ctx.Locale.Tr "repo.issues.filter_sort"}}
9-
</span>
10-
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
11-
<div class="menu">
12-
<a class="{{if or (eq .SortType "alphabetically") (not .SortType)}}active {{end}}item" href="?sort=alphabetically&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a>
13-
<a class="{{if eq .SortType "reversealphabetically"}}active {{end}}item" href="?sort=reversealphabetically&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a>
14-
<a class="{{if eq .SortType "leastissues"}}active {{end}}item" href="?sort=leastissues&state={{$.State}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.least_issues"}}</a>
15-
<a class="{{if eq .SortType "mostissues"}}active {{end}}item" href="?sort=mostissues&state={{$.State}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.most_issues"}}</a>
16-
</div>
4+
<!-- Sort -->
5+
<div class="item ui jump dropdown tw-py-2">
6+
<span class="text">
7+
{{ctx.Locale.Tr "repo.issues.filter_sort"}}
8+
</span>
9+
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
10+
<div class="left menu">
11+
<a class="{{if or (eq .SortType "alphabetically") (not .SortType)}}active {{end}}item" href="?sort=alphabetically&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a>
12+
<a class="{{if eq .SortType "reversealphabetically"}}active {{end}}item" href="?sort=reversealphabetically&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a>
13+
<a class="{{if eq .SortType "leastissues"}}active {{end}}item" href="?sort=leastissues&state={{$.State}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.least_issues"}}</a>
14+
<a class="{{if eq .SortType "mostissues"}}active {{end}}item" href="?sort=mostissues&state={{$.State}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.most_issues"}}</a>
1715
</div>
1816
</div>
1917
</div> <!-- filter menu -->

web_src/css/modules/header.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@ h4.ui.header .sub.header {
134134
font-weight: var(--font-weight-normal);
135135
}
136136

137-
/* open dropdown menus to the left in right-attached headers */
138-
.ui.attached.header > .ui.right .ui.dropdown .menu {
139-
right: 0;
140-
left: auto;
141-
}
142-
143137
/* if a .top.attached.header is followed by a .segment, add some margin */
144138
.ui.segments + .ui.top.attached.header,
145139
.ui.attached.segment + .ui.top.attached.header {

0 commit comments

Comments
 (0)