set height of main menu help to match other scenes

This commit is contained in:
Samuel Recker 2023-01-16 22:52:24 +01:00
parent ca84300ef3
commit ba6413e9c7

View file

@ -201,6 +201,6 @@ func (m mainMenu) View() string {
return lipgloss.JoinVertical(lipgloss.Left, header, err, m.list.View()) return lipgloss.JoinVertical(lipgloss.Left, header, err, m.list.View())
} }
m.list.SetSize(m.list.Width(), m.root.Size().Height-lipgloss.Height(header)) m.list.SetSize(m.list.Width(), m.root.Size().Height-lipgloss.Height(header)-1)
return lipgloss.JoinVertical(lipgloss.Left, header, m.list.View()) return lipgloss.JoinVertical(lipgloss.Left, header, m.list.View())
} }