Skip to content

Commit

Permalink
Fix columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbruinsslot committed Jun 29, 2019
1 parent d310753 commit 78b6ecb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
7 changes: 7 additions & 0 deletions handlers/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 78b6ecb

Please sign in to comment.