fix: make the login screen layout adapt to resizes

This commit is contained in:
2022-01-25 00:05:34 +02:00
parent 4ba51b7f8d
commit 4132faebe1
4 changed files with 37 additions and 27 deletions
+1
View File
@@ -78,6 +78,7 @@ func (s State) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
Width(msg.Width).
Height(msg.Height)
s.UI.Login.SetSize(msg.Width, msg.Height)
s.UI.MainScreen.SetSize(msg.Width, msg.Height)
return s, nil