Merge pull request #211 from stokito/truncate_column

text.go: to do not manually truncate id and name columns
This commit is contained in:
bradley 2020-10-31 10:40:52 -04:00 committed by GitHub
commit a63f05b430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {