text.go: to do not manually truncate id and name columns

This truncation is already handled by termui
This commit is contained in:
Sergey Ponomarev 2020-10-26 15:43:55 +02:00
parent c5038e2edd
commit 41c04fefa2
1 changed files with 0 additions and 7 deletions

View File

@ -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 {