aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-29 04:26:03 +0100
committerGitHub <noreply@github.com>2020-11-28 22:26:03 -0500
commitda4bb6fc4ef552865816303fc9c0db25509ff626 (patch)
tree04edd31cce1c77c2d7598de5c9d01388416108a1 /templates/repo
parentb2435af9be75a0cdeea08881c162e65740225f56 (diff)
downloadgitea-da4bb6fc4ef552865816303fc9c0db25509ff626.tar.gz
gitea-da4bb6fc4ef552865816303fc9c0db25509ff626.zip
Fix label styles affecting shabox (#13734)
* Fix label styles affecting shabox Add common parent .labels-list to issue labels lists to prevent affecting other elements. Fixes: https://github.com/go-gitea/gitea/issues/13704 * Update templates/shared/issuelist.tmpl * Update templates/shared/issuelist.tmpl Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/labels/labels_sidebar.tmpl14
1 files changed, 8 insertions, 6 deletions
diff --git a/templates/repo/issue/labels/labels_sidebar.tmpl b/templates/repo/issue/labels/labels_sidebar.tmpl
index bf6f98c888..1d61ecf3df 100644
--- a/templates/repo/issue/labels/labels_sidebar.tmpl
+++ b/templates/repo/issue/labels/labels_sidebar.tmpl
@@ -1,9 +1,11 @@
<div class="ui labels list">
<span class="no-select item {{if .ctx.HasSelectedLabel}}hide{{end}}">{{.ctx.i18n.Tr "repo.issues.new.no_label"}}</span>
- {{range .ctx.Labels}}
- {{template "repo/issue/labels/label" dict "root" $ "label" .}}
- {{end}}
- {{range .ctx.OrgLabels}}
- {{template "repo/issue/labels/label" dict "root" $ "label" .}}
- {{end}}
+ <span class="labels-list">
+ {{range .ctx.Labels}}
+ {{template "repo/issue/labels/label" dict "root" $ "label" .}}
+ {{end}}
+ {{range .ctx.OrgLabels}}
+ {{template "repo/issue/labels/label" dict "root" $ "label" .}}
+ {{end}}
+ </span>
</div>