File tree Expand file tree Collapse file tree 3 files changed +33
-10
lines changed Expand file tree Collapse file tree 3 files changed +33
-10
lines changed Original file line number Diff line number Diff line change 73
73
<div class="ui labels list">
74
74
<span class="no-select item {{if .HasSelectedLabel}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_label"}}</span>
75
75
{{range .Labels}}
76
- <a class="{{if not .IsChecked}}hide{{end}} item" id="label_{{.ID}}" href="{{$.RepoLink}}/issues?labels={{.ID}}"><span class="label color" style="background-color: {{.Color}}"></span> <span class="text">{{.Name | RenderEmoji}}</span></a>
76
+ {{if .IsChecked}}
77
+ <a class="item" id="label_{{.ID}}" href="{{$.RepoLink}}/issues?labels={{.ID}}"><span class="label color" style="background-color: {{.Color}}"></span> <span class="text">{{.Name | RenderEmoji}}</span></a>
78
+ {{end}}
77
79
{{end}}
78
80
{{range .OrgLabels}}
79
- <a class="{{if not .IsChecked}}hide{{end}} item" id="label_{{.ID}}" href="/issues?labels={{.ID}}"><span class="label color" style="background-color: {{.Color}}"></span> <span class="text">{{.Name | RenderEmoji}}</span></a>
81
+ {{if .IsChecked}}
82
+ <a class="item" id="label_{{.ID}}" href="/issues?labels={{.ID}}"><span class="label color" style="background-color: {{.Color}}"></span> <span class="text">{{.Name | RenderEmoji}}</span></a>
83
+ {{end}}
80
84
{{end}}
81
85
</div>
82
86
Original file line number Diff line number Diff line change 126
126
</div>
127
127
</div>
128
128
<div class="ui labels list">
129
- <span class="no-select item {{if .HasSelectedLabel}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_label"}}</span>
129
+ {{if not .HasSelectedLabel}}
130
+ <span class="no-select item">{{.i18n.Tr "repo.issues.new.no_label"}}</span>
131
+ {{end}}
130
132
{{range .Labels}}
131
- <div class="item">
132
- <a class="ui label {{if not .IsChecked}}hide{{end}}" id="label_{{.ID}}" href="{{$.RepoLink}}/{{if $.Issue.IsPull}}pulls{{else}}issues{{end}}?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
133
- </div>
133
+ {{if .IsChecked}}
134
+ <div class="item">
135
+ <a class="ui label" id="label_{{.ID}}" href="{{$.RepoLink}}/{{if $.Issue.IsPull}}pulls{{else}}issues{{end}}?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
136
+ </div>
137
+ {{end}}
134
138
{{end}}
135
139
{{range .OrgLabels}}
136
- <div class="item">
137
- <a class="ui label {{if not .IsChecked}}hide{{end}}" id="label_{{.ID}}" href="{{$.RepoLink}}/{{if $.Issue.IsPull}}pulls{{else}}issues{{end}}?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
138
- </div>
139
-
140
+ {{if .IsChecked}}
141
+ <div class="item">
142
+ <a class="ui label" id="label_{{.ID}}" href="{{$.RepoLink}}/{{if $.Issue.IsPull}}pulls{{else}}issues{{end}}?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
143
+ </div>
144
+ {{end}}
140
145
{{end}}
141
146
</div>
142
147
Original file line number Diff line number Diff line change 2983
2983
}
2984
2984
}
2985
2985
2986
+ .labels.list {
2987
+ display : flex ;
2988
+ flex-wrap : wrap ;
2989
+ }
2990
+
2991
+ .labels.list .item {
2992
+ padding : 0 !important ;
2993
+ margin-bottom : 2px ;
2994
+ }
2995
+
2996
+ .labels.list .item + .item {
2997
+ margin-left : 2px ;
2998
+ }
2999
+
2986
3000
tbody .commit-list {
2987
3001
vertical-align : baseline ;
2988
3002
}
You can’t perform that action at this time.
0 commit comments