From 3a7e5323f41dc5bc77e49ee1e0eac7f9125f88d8 Mon Sep 17 00:00:00 2001 From: Edouard Paris Date: Tue, 26 Mar 2019 09:40:43 +0100 Subject: [PATCH] fix views channels --- ui/views/channels.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/views/channels.go b/ui/views/channels.go index be64dc6..a9badb1 100644 --- a/ui/views/channels.go +++ b/ui/views/channels.go @@ -21,7 +21,7 @@ type Channels struct { } func (c *Channels) Set(g *gocui.Gui, x0, y0, x1, y1 int) error { - columns, err := g.SetView(CHANNELS_COLUMNS, x0, y0, x1, y0+2) + columns, err := g.SetView(CHANNELS_COLUMNS, x0-1, y0, x1+2, y0+2) if err != nil { if err != gocui.ErrUnknownView { return err @@ -32,7 +32,7 @@ func (c *Channels) Set(g *gocui.Gui, x0, y0, x1, y1 int) error { columns.FgColor = gocui.ColorBlack | gocui.AttrBold displayChannelsColumns(columns) - c.View, err = g.SetView(CHANNELS, x0, y0+1, x1, y1) + c.View, err = g.SetView(CHANNELS, x0-1, y0+1, x1+2, y1) if err != nil { if err != gocui.ErrUnknownView { return err @@ -69,7 +69,7 @@ func (c *Channels) Update(items []*models.Channel) { func (c *Channels) display() { c.Clear() for _, item := range c.items { - line := fmt.Sprintf("%s %s %s %12d %5d %100s", + line := fmt.Sprintf("%s %s %s %12d %5d %500s", active(item), gauge(item), color.Cyan(fmt.Sprintf("%12d", item.LocalBalance)),