Fix columns

This commit is contained in:
erroneousboat 2019-06-29 12:24:51 +02:00
parent d310753ab0
commit 78b6ecbcec
2 changed files with 8 additions and 1 deletions

View File

@ -106,7 +106,7 @@ func CreateAppContext(flgConfig string, flgToken string, flgDebug bool, version
termui.Body.AddRows(
termui.NewRow(
termui.NewCol(config.SidebarWidth, 0, view.Channels),
termui.NewCol(config.MainWidth-1, 0, view.Chat),
termui.NewCol(config.MainWidth, 0, view.Chat),
),
termui.NewRow(
termui.NewCol(config.SidebarWidth, 0, view.Mode),

View File

@ -245,6 +245,13 @@ func actionRedrawGrid(ctx *context.AppContext, threads bool, debug bool) {
termui.NewCol(ctx.Config.MainWidth-6, 0, ctx.View.Debug),
}...,
)
} else {
columns = append(
columns,
[]*termui.Row{
termui.NewCol(ctx.Config.MainWidth, 0, ctx.View.Chat),
}...,
)
}
termui.Body.AddRows(