increase name col width

This commit is contained in:
Bradley Cicenas 2016-12-28 03:01:44 +00:00
parent 574bcb19fe
commit d5b35fe01b
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ func (g *Grid) Len() uint {
return uint(len(g.containers)) return uint(len(g.containers))
} }
// Return sorted list of active container IDs // Return sorted list of container IDs
func (g *Grid) CIDs() []string { func (g *Grid) CIDs() []string {
var ids []string var ids []string
for id, _ := range g.containers { for id, _ := range g.containers {
@ -56,7 +56,7 @@ func (g *Grid) Rows() (rows []*ui.Row) {
func header() *ui.Row { func header() *ui.Row {
return ui.NewRow( return ui.NewRow(
ui.NewCol(1, 0, headerPar("NAME")), ui.NewCol(2, 0, headerPar("NAME")),
ui.NewCol(1, 0, headerPar("CID")), ui.NewCol(1, 0, headerPar("CID")),
ui.NewCol(2, 0, headerPar("CPU")), ui.NewCol(2, 0, headerPar("CPU")),
ui.NewCol(2, 0, headerPar("MEM")), ui.NewCol(2, 0, headerPar("MEM")),

View File

@ -17,7 +17,7 @@ type Widgets struct {
func (w *Widgets) MakeRow() *ui.Row { func (w *Widgets) MakeRow() *ui.Row {
return ui.NewRow( return ui.NewRow(
ui.NewCol(1, 0, w.name), ui.NewCol(2, 0, w.name),
ui.NewCol(1, 0, w.cid), ui.NewCol(1, 0, w.cid),
ui.NewCol(2, 0, w.cpu), ui.NewCol(2, 0, w.cpu),
ui.NewCol(2, 0, w.memory), ui.NewCol(2, 0, w.memory),