From 41c04fefa263261b337a18c3dcca9e463296d6bf Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Mon, 26 Oct 2020 15:43:55 +0200 Subject: [PATCH] text.go: to do not manually truncate id and name columns This truncation is already handled by termui --- cwidgets/compact/text.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cwidgets/compact/text.go b/cwidgets/compact/text.go index 3a6aa44..1ac7cae 100644 --- a/cwidgets/compact/text.go +++ b/cwidgets/compact/text.go @@ -19,10 +19,6 @@ func NewNameCol() CompactCol { func (w *NameCol) SetMeta(m models.Meta) { w.Text = m.Get("name") - // truncate container id - if len(w.Text) > 12 { - w.Text = w.Text[:12] - } } type CIDCol struct { @@ -35,9 +31,6 @@ func NewCIDCol() CompactCol { func (w *CIDCol) SetMeta(m models.Meta) { w.Text = m.Get("id") - if len(w.Text) > 12 { - w.Text = w.Text[:12] - } } type NetCol struct {