From c2401cb33ac82ebb1f45c4c04518dcaf61755a38 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Fri, 27 Nov 2020 23:12:16 +0200 Subject: [PATCH] #128 Set column Name to fixed width 30 --- cwidgets/compact/text.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cwidgets/compact/text.go b/cwidgets/compact/text.go index d3934a8..ef2642b 100644 --- a/cwidgets/compact/text.go +++ b/cwidgets/compact/text.go @@ -14,7 +14,9 @@ type NameCol struct { } func NewNameCol() CompactCol { - return &NameCol{NewTextCol("NAME")} + c := &NameCol{NewTextCol("NAME")} + c.fWidth = 30 + return c } func (w *NameCol) SetMeta(m models.Meta) {