Skip to content

Commit

Permalink
Merge pull request bcicen#240 from stokito/name_width
Browse files Browse the repository at this point in the history
bcicen#128 Set column Name to fixed width 30
  • Loading branch information
bcicen authored Nov 29, 2020
2 parents bec78c9 + c2401cb commit b32f90f
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 b32f90f

Please sign in to comment.