Skip to content

Commit

Permalink
style(gui): add some style requirements to the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Jun 9, 2021
1 parent f01ea10 commit 33228bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/gui/layout.go
Expand Up @@ -12,11 +12,15 @@ func (gui *Gui) layout(g *gocui.Gui) error {
maxX, maxY := gui.g.Size()

if v, err := gui.g.SetView("banner", 0, 0, int(0.19*float32(maxX)), int(0.14*float32(maxY))); err != nil {
if err != gocui.ErrUnknownView {
return err
}

myFigure := figure.NewFigure("dblab", "", true)
figure.Write(v, myFigure)
}

if v, err := gui.g.SetView("tables", 0, int(0.15*float32(maxY)), int(0.19*float32(maxX)), int(0.95*float32(maxY))); err != nil {
if v, err := gui.g.SetView("tables", 0, int(0.16*float32(maxY)), int(0.19*float32(maxX)), int(0.95*float32(maxY))); err != nil {
if err != gocui.ErrUnknownView {
return err
}
Expand Down

0 comments on commit 33228bc

Please sign in to comment.