diff --git a/cwidgets/compact/text.go b/cwidgets/compact/text.go index dfc9f53..4b419a0 100644 --- a/cwidgets/compact/text.go +++ b/cwidgets/compact/text.go @@ -35,6 +35,9 @@ 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 {