fix: crooked ui size rendering on startup

Ayman Bagabas created

Change summary

ui/ui.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

ui/ui.go 🔗

@@ -57,7 +57,6 @@ func New(s session.Session, c common.Common, initialRepo string) *UI {
 		initialRepo: initialRepo,
 	}
 	ui.footer = footer.New(c, ui)
-	ui.SetSize(c.Width, c.Height)
 	return ui
 }
 
@@ -134,6 +133,7 @@ func (ui *UI) Init() tea.Cmd {
 		cmds = append(cmds, ui.initialRepoCmd(ui.initialRepo))
 	}
 	ui.state = loadedState
+	ui.SetSize(ui.common.Width, ui.common.Height)
 	return tea.Batch(cmds...)
 }