Quality of Life update #4

Merged
raul merged 10 commits from testing into main 2024-05-08 08:04:46 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 9e1affdc6c - Show all commits

View File

@ -210,7 +210,7 @@ func initKeybindings(g *gocui.Gui) error {
func layout(g *gocui.Gui) error { func layout(g *gocui.Gui) error {
maxX, maxY := g.Size() maxX, maxY := g.Size()
if chatbox, err := g.SetView("chatbox", 2, 1, maxX-28, maxY-5); err != nil { if chatbox, err := g.SetView("chatbox", 2, 1, maxX-2, maxY-5); err != nil {
if err != gocui.ErrUnknownView { if err != gocui.ErrUnknownView {
return err return err
} }
@ -228,7 +228,7 @@ func layout(g *gocui.Gui) error {
// fmt.Fprintln(button, "Send it") // fmt.Fprintln(button, "Send it")
// } // }
if textarea, err := g.SetView("textarea", 2, maxY-4, maxX-28, maxY-2); err != nil { if textarea, err := g.SetView("textarea", 2, maxY-4, maxX-2, maxY-2); err != nil {
if err != gocui.ErrUnknownView { if err != gocui.ErrUnknownView {
return err return err
} }