mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
#128 Set column Name to fixed width 30
This commit is contained in:
@@ -14,7 +14,9 @@ type NameCol struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewNameCol() CompactCol {
|
func NewNameCol() CompactCol {
|
||||||
return &NameCol{NewTextCol("NAME")}
|
c := &NameCol{NewTextCol("NAME")}
|
||||||
|
c.fWidth = 30
|
||||||
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *NameCol) SetMeta(m models.Meta) {
|
func (w *NameCol) SetMeta(m models.Meta) {
|
||||||
|
|||||||
Reference in New Issue
Block a user