mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 09:24:07 -05:00
8e5aea88c7
* 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>
9 lines
375 B
Handlebars
9 lines
375 B
Handlebars
<a
|
|
class="ui label item {{if not .label.IsChecked}}hide{{end}}"
|
|
id="label_{{.label.ID}}"
|
|
href="{{.root.RepoLink}}/{{if or .root.IsPull .root.Issue.IsPull}}pulls{{else}}issues{{end}}?labels={{.label.ID}}"
|
|
style="color: {{.label.ForegroundColor}}; background-color: {{.label.Color}}"
|
|
title="{{.label.Description | RenderEmojiPlain}}"
|
|
>
|
|
{{.label.Name | RenderEmoji}}
|
|
</a>
|