]> source.dussan.org Git - gitea.git/commit
Improve label and text wrapping (#14113)
authorsilverwind <me@silverwind.io>
Tue, 29 Dec 2020 23:48:28 +0000 (00:48 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Dec 2020 23:48:28 +0000 (18:48 -0500)
commit8e5aea88c7095014741f753d5eca14f8f3b6fe2f
tree58d62d4b27ea7c28617f6511c1f77907f00ee7fb
parentcfc3916b3f99f38620136a93e339b935ae66a16f
Improve label and text wrapping (#14113)

* Improve label wrapping

- Adjust issue list styles so labels can wrap on the same line as the
  text. This relies on `display: inline` with the HTML whitespace being
  used as the separator.
- Add global word-break: break-word. This should generally avoid text
  overflows in various places.

* add whitespace to history labels

* use overflow-wrap

* restore word-break rules

* use correct pre

* use better selector for middle align

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
modules/templates/helper.go
templates/repo/issue/labels/label.tmpl
templates/shared/issuelist.tmpl
web_src/less/_base.less
web_src/less/_repository.less
web_src/less/shared/issuelist.less