Skip to content

Commit

Permalink
bcicen#128 Set column Name to fixed width 30
Browse files Browse the repository at this point in the history
  • Loading branch information
stokito committed Nov 27, 2020
1 parent 117c3bc commit c2401cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cwidgets/compact/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c2401cb

Please sign in to comment.