File tree Expand file tree Collapse file tree 6 files changed +12
-19
lines changed Expand file tree Collapse file tree 6 files changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ func NewFuncMap() []template.FuncMap {
371
371
"RenderLabels" : func (labels []* models.Label ) template.HTML {
372
372
html := `<span class="labels-list">`
373
373
for _ , label := range labels {
374
- html += fmt .Sprintf ("<div class='ui label' style='color: %s; background-color: %s'>%s</div>" ,
374
+ html += fmt .Sprintf ("<div class='ui label' style='color: %s; background-color: %s'>%s</div> " ,
375
375
label .ForegroundColor (), label .Color , RenderEmoji (label .Name ))
376
376
}
377
377
html += "</span>"
Original file line number Diff line number Diff line change 5
5
style="color: {{.label.ForegroundColor}}; background-color: {{.label.Color}}"
6
6
title="{{.label.Description | RenderEmojiPlain}}"
7
7
>
8
- {{.label.Name | RenderEmoji}}
8
+ {{.label.Name | RenderEmoji}}
9
9
</a>
Original file line number Diff line number Diff line change 30
30
</div>
31
31
</div>
32
32
<div class="issue-item-main f1 fc df">
33
- <div class="issue-item-top-row df ac fw ">
34
- <a class="title mr-3 " href="{{if .HTMLURL}}{{.HTMLURL}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
33
+ <div class="issue-item-top-row">
34
+ <a class="title" href="{{if .HTMLURL}}{{.HTMLURL}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
35
35
{{RenderEmoji .Title}}
36
36
{{if .IsPull }}
37
37
{{if (index $.CommitStatus .PullRequest.ID)}}
38
38
{{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}}
39
39
{{end}}
40
40
{{end}}
41
41
</a>
42
- <span class="labels-list">
42
+ <span class="labels-list ml-2 ">
43
43
{{range .Labels}}
44
44
<a class="ui label" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}{{if ne $.listType "milestone"}}&milestone={{$.MilestoneID}}{{end}}&assignee={{$.AssigneeID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
45
45
{{end}}
Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ body {
176
176
overflow-y : auto ;
177
177
display : flex ;
178
178
flex-direction : column ;
179
+ overflow-wrap : break-word ;
179
180
}
180
181
181
182
img {
Original file line number Diff line number Diff line change 2620
2620
}
2621
2621
}
2622
2622
2623
- .labels-list {
2624
- display : inline-flex ;
2625
- flex-wrap : wrap ;
2626
- }
2627
-
2628
2623
.labels-list .label {
2629
- margin-top : 1.5px ;
2630
- margin-bottom : 1.5px ;
2631
- margin-right : 3px ;
2632
- margin-left : 0 ;
2624
+ margin : 2px 0 ;
2633
2625
display : inline-block !important ;
2634
2626
}
2635
2627
2636
- .labels-list .label :last-of-type {
2637
- margin-right : 0 ;
2638
- }
2639
-
2640
2628
tbody .commit-list {
2641
2629
vertical-align : baseline ;
2642
2630
}
@@ -2777,7 +2765,7 @@ tbody.commit-list {
2777
2765
align-items : center ;
2778
2766
justify-content : space-between ;
2779
2767
flex-wrap : wrap ;
2780
- word-break : break-all ;
2768
+ word-break : break-word ;
2781
2769
}
2782
2770
2783
2771
.repo-buttons {
Original file line number Diff line number Diff line change 29
29
font-size : 16px ;
30
30
min-width : 0 ;
31
31
font-weight : 600 ;
32
+
33
+ > * {
34
+ vertical-align : middle ;
35
+ }
32
36
}
33
37
34
38
.issue-item-bottom-row {
You can’t perform that action at this time.
0 commit comments