From 8e5aea88c7095014741f753d5eca14f8f3b6fe2f Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 30 Dec 2020 00:48:28 +0100 Subject: 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 --- templates/repo/issue/labels/label.tmpl | 2 +- templates/shared/issuelist.tmpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/repo/issue/labels/label.tmpl b/templates/repo/issue/labels/label.tmpl index d76dc6af73..a6d52fe544 100644 --- a/templates/repo/issue/labels/label.tmpl +++ b/templates/repo/issue/labels/label.tmpl @@ -5,5 +5,5 @@ style="color: {{.label.ForegroundColor}}; background-color: {{.label.Color}}" title="{{.label.Description | RenderEmojiPlain}}" > - {{.label.Name | RenderEmoji}} + {{.label.Name | RenderEmoji}} diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl index 131de83f5e..dcaa2474fb 100644 --- a/templates/shared/issuelist.tmpl +++ b/templates/shared/issuelist.tmpl @@ -30,8 +30,8 @@