mirror of
https://github.com/taigrr/gico.git
synced 2026-04-02 03:09:07 -07:00
make settings list fit screen size, use batch message to ensure all callbacks used
This commit is contained in:
@@ -53,6 +53,10 @@ var settingsKey = key.NewBinding(
|
||||
)
|
||||
|
||||
func (m Settings) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
if msg, ok := msg.(tea.WindowSizeMsg); ok {
|
||||
m.AuthorList.SetHeight(msg.Height - 8)
|
||||
m.RepoList.SetHeight(msg.Height - 8)
|
||||
}
|
||||
switch m.cursor {
|
||||
case authors:
|
||||
var cmd tea.Cmd
|
||||
|
||||
Reference in New Issue
Block a user