3eb15e4e7a4fcc8bb631b38d8e4ee424302e8001

Author
Christian Rocha <christian@rocha.is>
Committer
Christian Rocha <christian@rocha.is>
Date

Message

Menu no longer fills the available vertical space

Diff

 1diff --git a/tui/bubble.go b/tui/bubble.go
 2index 392fa14c73c62091ae7db3e7d15e24ed4d21330a..c18c2a2540916fe3af5455ec588c5266f0d702b1 100644
 3--- a/tui/bubble.go
 4+++ b/tui/bubble.go
 5@@ -148,13 +148,7 @@ func (b *Bubble) viewForBox(i int) string {
 6 		} else {
 7 			s = menuStyle
 8 		}
 9-		h := b.height -
10-			lipgloss.Height(b.headerView()) -
11-			lipgloss.Height(b.footerView()) -
12-			s.GetVerticalFrameSize() -
13-			appBoxStyle.GetVerticalFrameSize() +
14-			1 // TODO: figure out why we need this
15-		return s.Copy().Height(h).Render(box.View())
16+		return s.Render(box.View())
17 	case *repo.Bubble:
18 		box.Active = isActive
19 		return box.View()