Skip to content

Commit dff919f

Browse files
committed
enhancements
1 parent 64bf916 commit dff919f

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

templates/repo/issue/sidebar/label_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</div>
4444
</div>
4545

46-
<div class="ui list labels-list tw-my-2 tw-flex">
46+
<div class="ui list labels-list tw-my-2 tw-flex tw-flex-wrap">
4747
<span class="item empty-list {{if $data.SelectedLabelIDs}}tw-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_label"}}</span>
4848
{{range $data.AllLabels}}
4949
{{if .IsChecked}}

templates/shared/issuelist.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{template "repo/commit_statuses" dict "Status" (index $.CommitLastStatus .PullRequest.ID) "Statuses" (index $.CommitStatuses .PullRequest.ID)}}
2020
{{end}}
2121
{{end}}
22-
<span class="labels-list tw-ml-1">
22+
<span class="labels-list">
2323
{{range .Labels}}
2424
<a href="?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}{{if ne $.listType "milestone"}}&milestone={{$.MilestoneID}}{{end}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}{{if $.ShowArchivedLabels}}&archived=true{{end}}">{{ctx.RenderUtils.RenderLabel .}}</a>
2525
{{end}}

web_src/css/repo.css

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,10 +1545,21 @@ td .commit-summary {
15451545
}
15461546

15471547
.labels-list {
1548-
display: inline-flex;
1549-
flex-wrap: wrap;
1550-
gap: 2.5px;
1551-
align-items: center;
1548+
display: contents; /* enable the list to break across multiple lines */
1549+
line-height: 16px;
1550+
}
1551+
1552+
.labels-list > * {
1553+
margin-right: .25rem;
1554+
margin-bottom: .25rem;
1555+
}
1556+
1557+
.labels-list > :last-child {
1558+
margin-right: 0;
1559+
}
1560+
1561+
#issue-list .labels-list > * {
1562+
margin: 0;
15521563
}
15531564

15541565
.labels-list .label, .scope-parent > .label {

0 commit comments

Comments
 (0)