Skip to content

Commit 09e9f1f

Browse files
committed
misc tweaks
1 parent 2c94b0d commit 09e9f1f

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

templates/shared/issuelist.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{ $approvalCounts := .ApprovalCounts}}
33
{{range .Issues}}
44
<li class="item df py-3">
5-
<div class="issue-item-left df py-2">
5+
<div class="issue-item-left df py-1">
66
{{if $.CanWriteIssuesOrPulls}}
77
<div class="ui checkbox issue-checkbox">
88
<input type="checkbox" data-issue-id={{.ID}}></input>
@@ -31,7 +31,7 @@
3131
</div>
3232
<div class="issue-item-main f1 fc df">
3333
<div class="issue-item-top-row df ac fw">
34-
<a class="title my-1 mr-2" href="{{if .HTMLURL}}{{.HTMLURL}}{{else}}{{$.Link}}/{{.Index}}{{end}}">{{RenderEmoji .Title}}</a>
34+
<a class="title mr-3" href="{{if .HTMLURL}}{{.HTMLURL}}{{else}}{{$.Link}}/{{.Index}}{{end}}">{{RenderEmoji .Title}}</a>
3535
{{if .IsPull }}
3636
{{if (index $.CommitStatus .PullRequest.ID)}}
3737
{{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}}

web_src/less/_repository.less

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2874,15 +2874,31 @@
28742874
flex-wrap: wrap;
28752875
}
28762876

2877-
.labels.list .item {
2877+
.labels.list .item,
2878+
.timeline-item .label {
28782879
padding: .3em .5em !important;
28792880
margin-left: 0;
28802881
margin-right: 0;
28812882
margin-bottom: 3px;
28822883
}
28832884

2884-
.labels.list .item + .item {
2885-
margin-left: 3px;
2885+
.issue-item-top-row .label {
2886+
margin-left: 0;
2887+
margin-right: 0;
2888+
margin-top: 1.5px;
2889+
margin-bottom: 1.5px;
2890+
}
2891+
2892+
.labels.list .item,
2893+
.timeline-item .label,
2894+
.issue-item-top-row .label {
2895+
margin-right: 3px;
2896+
display: inline !important;
2897+
}
2898+
2899+
.timeline-item .label:last-of-type,
2900+
.issue-item-top-row .label:last-of-type {
2901+
margin-right: 0;
28862902
}
28872903

28882904
tbody.commit-list {

web_src/less/shared/issuelist.less

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
list-style: none;
33
margin-top: 1rem;
44

5+
a:hover {
6+
color: var(--color-primary) !important;
7+
}
8+
59
> .item {
610
.issue-checkbox {
711
margin-top: 1px;
@@ -20,10 +24,10 @@
2024
}
2125

2226
.issue-item-top-row {
23-
max-width: 80%;
24-
overflow-wrap: break-word;
27+
max-width: 100%;
2528
color: var(--color-text);
2629
font-size: 16px;
30+
min-width: 0;
2731
font-weight: 600;
2832
}
2933

@@ -32,15 +36,8 @@
3236
}
3337

3438
.title {
35-
display: block;
36-
min-width: 0;
3739
color: var(--color-text);
38-
font-size: 16px;
39-
font-weight: 600;
40-
41-
&:hover {
42-
color: var(--color-primary);
43-
}
40+
word-break: break-word;
4441
}
4542

4643
.issue-item-icon-right {
@@ -65,10 +62,6 @@
6562
color: inherit;
6663
}
6764

68-
a:hover {
69-
color: var(--color-primary);
70-
}
71-
7265
.time-since,
7366
a {
7467
margin-left: .25rem;
@@ -112,19 +105,11 @@
112105

113106
a.milestone {
114107
margin-left: 5px;
115-
116-
&:hover {
117-
color: var(--color-primary) !important;
118-
}
119108
}
120109

121110
a.ref {
122111
margin-left: 8px;
123112

124-
&:hover {
125-
color: var(--color-primary) !important;
126-
}
127-
128113
span {
129114
margin-right: -4px;
130115
}

0 commit comments

Comments
 (0)