Fix columns
This commit is contained in:
parent
d310753ab0
commit
78b6ecbcec
@ -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),
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user