Fix label display on new issues (#13590)

* Fix label display on new issues

PR #13570 broke label rendering for new issues and pulls because
missed the fact that the code was relying on the DOM elements being
toggled by JavaScript.

On top of that, the label rendering for new issues and pull was using
an outdated template which I consolidated in a new shared template.

* remove wrapper element and style tweaks

* style tweaks

* use shared template for whole label list

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwindandtechknowlogick authored and GitHub committed 2020-11-17 07:02:41 +02:00
1 parent 0a6ce3eaf1
commit b83825253e
6 files changed
+26 -40

No files matched your search

+5 -8
View File
@@ -133,11 +133,6 @@
max-width: 100px;
}
}
.label.color {
padding: 0 8px;
margin-right: 5px;
}
}
#deadlineForm input {
@@ -2985,12 +2980,14 @@
}
.labels.list .item {
padding: 0 !important;
margin-bottom: 2px;
padding: .3em .5em !important;
margin-left: 0;
margin-right: 0;
margin-bottom: 3px;
}
.labels.list .item + .item {
margin-left: 2px;
margin-left: 3px;
}
tbody.commit-list {