Skip to content

Commit b890ad0

Browse files
committed
fix labels list page
1 parent 1466310 commit b890ad0

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

templates/repo/issue/labels/label_list.tmpl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<div class="divider"></div>
2727
{{end}}
2828

29-
<ul class="issue-label-list">
29+
<ul class="issue-label-list muted-links">
3030
{{$canEditLabel := and (not $.PageIsOrgSettingsLabels) (not $.Repository.IsArchived) (or $.CanWriteIssues $.CanWritePulls)}}
3131
{{$canEditLabel = or $canEditLabel $.PageIsOrgSettingsLabels}}
3232
{{range .Labels}}
@@ -42,9 +42,8 @@
4242
<a class="open-issues" href="{{$.RepoLink}}/issues?labels={{.ID}}">{{svg "octicon-issue-opened"}} {{ctx.Locale.Tr "repo.issues.label_open_issues" .NumOpenIssues}}</a>
4343
{{end}}
4444
</div>
45-
<div class="label-operation tw-flex">
45+
<div class="label-operation">
4646
{{template "repo/issue/labels/label_archived" .}}
47-
<div class="tw-flex tw-ml-auto">
4847
{{if $canEditLabel}}
4948
<a class="edit-label-button" href="#"
5049
data-label-id="{{.ID}}" data-label-name="{{.Name}}" data-label-color="{{.Color}}"
@@ -57,7 +56,6 @@
5756
data-modal-confirm-content="{{ctx.Locale.Tr "repo.issues.label_deletion_desc"}}"
5857
>{{svg "octicon-trash"}} {{ctx.Locale.Tr "repo.issues.label_delete"}}</a>
5958
{{end}}
60-
</div>
6159
</div>
6260
</li>
6361
{{end}}

web_src/css/modules/label.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
border: 0 solid transparent;
1717
border-radius: 0.28571429rem;
1818
white-space: nowrap;
19+
overflow: hidden;
20+
text-overflow: ellipsis;
1921
}
2022

2123
a.ui.label {

web_src/css/repo/issue-label.css

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,45 @@
44
margin: 0;
55
}
66

7-
.issue-label-list .item {
7+
.issue-label-list > .item {
88
border-bottom: 1px solid var(--color-secondary);
99
display: flex;
1010
padding: 1em 0;
1111
margin: 0;
1212
}
1313

14-
.issue-label-list .item:first-child {
14+
.issue-label-list > .item:first-child {
1515
padding-top: 0;
1616
}
1717

18-
.issue-label-list .item:last-child {
18+
.issue-label-list > .item:last-child {
1919
border-bottom: none;
2020
padding-bottom: 0;
2121
}
2222

23-
.issue-label-list .item .label-title {
23+
.issue-label-list > .item .label-title {
2424
width: 33%;
25+
padding-right: 1em;
2526
}
2627

27-
.issue-label-list .item .label-issues {
28+
.issue-label-list > .item .label-issues {
2829
width: 33%;
30+
padding-right: 1em;
2931
}
3032

31-
.issue-label-list .item .label-operation {
33+
.issue-label-list > .item .label-operation {
3234
width: 33%;
35+
display: flex;
36+
flex-wrap: wrap;
37+
gap: 0.5em;
38+
justify-content: end;
3339
}
3440

35-
.issue-label-list .item a {
41+
.issue-label-list > .item .label-operation a {
3642
font-size: 12px;
37-
padding-right: 10px;
38-
color: var(--color-text-light);
3943
}
4044

41-
.issue-label-list .item.org-label {
45+
.issue-label-list > .item.org-label {
4246
opacity: 0.7;
4347
}
4448

0 commit comments

Comments
 (0)