diff options
author | silverwind <me@silverwind.io> | 2020-11-29 04:26:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 22:26:03 -0500 |
commit | da4bb6fc4ef552865816303fc9c0db25509ff626 (patch) | |
tree | 04edd31cce1c77c2d7598de5c9d01388416108a1 /web_src | |
parent | b2435af9be75a0cdeea08881c162e65740225f56 (diff) | |
download | gitea-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 'web_src')
-rw-r--r-- | web_src/less/_repository.less | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 1f39cc5659..e77e9719c3 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -2856,35 +2856,20 @@ } } -.labels.list { - display: flex; +.labels-list { + display: inline-flex; flex-wrap: wrap; } -.labels.list .item, -.timeline-item .label { - padding: .3em .5em !important; - margin-left: 0; - margin-right: 0; - margin-bottom: 3px; -} - -.issue-item-top-row .label { - margin-left: 0; - margin-right: 0; +.labels-list .label { margin-top: 1.5px; margin-bottom: 1.5px; -} - -.labels.list .item, -.timeline-item .label, -.issue-item-top-row .label { margin-right: 3px; - display: inline !important; + margin-left: 0; + display: inline-block !important; } -.timeline-item .label:last-of-type, -.issue-item-top-row .label:last-of-type { +.labels-list .label:last-of-type { margin-right: 0; } |