diff options
-rw-r--r-- | termui/bug_table.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go index 01269df8..236aa17d 100644 --- a/termui/bug_table.go +++ b/termui/bug_table.go @@ -291,17 +291,21 @@ func (bt *bugTable) render(v *gocui.View, maxX int) { for _, excerpt := range bt.excerpts { summaryTxt := fmt.Sprintf("%4d 💬", excerpt.LenComments) - labelsTxt := "" // fmt.Sprintf("L:%-2d", len(excerpt.Labels)) + if excerpt.LenComments > 9999 { + summaryTxt = " ∞ 💬" + } + labelsTxt := "" nbLabels := 0 for _, l := range excerpt.Labels { lc := l.Color() lc256 := lc.Term256() - labelsTxt += lc256.Escape() + " ◼" + lc256.Unescape() nbLabels++ - if nbLabels >= 5 { + if nbLabels >= 5 && len(excerpt.Labels) > 5 { + labelsTxt += " …" break } + labelsTxt += lc256.Escape() + " ◼" + lc256.Unescape() } var authorDisplayName string |