diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl
index 9540716e5..e585fc735 100644
--- a/templates/repo/issue/new_form.tmpl
+++ b/templates/repo/issue/new_form.tmpl
@@ -73,10 +73,14 @@
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl
index 55884f3fa..21c7a9d36 100644
--- a/templates/repo/issue/view_content/sidebar.tmpl
+++ b/templates/repo/issue/view_content/sidebar.tmpl
@@ -126,17 +126,22 @@
-
{{.i18n.Tr "repo.issues.new.no_label"}}
+ {{if not .HasSelectedLabel}}
+
{{.i18n.Tr "repo.issues.new.no_label"}}
+ {{end}}
{{range .Labels}}
-
+ {{if .IsChecked}}
+
+ {{end}}
{{end}}
{{range .OrgLabels}}
-
-
+ {{if .IsChecked}}
+
+ {{end}}
{{end}}
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index de8000489..662a05771 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -2983,6 +2983,20 @@
}
}
+.labels.list {
+ display: flex;
+ flex-wrap: wrap;
+}
+
+.labels.list .item {
+ padding: 0 !important;
+ margin-bottom: 2px;
+}
+
+.labels.list .item + .item {
+ margin-left: 2px;
+}
+
tbody.commit-list {
vertical-align: baseline;
}