Diff
1diff --git a/tui/bubbles/repo/bubble.go b/tui/bubbles/repo/bubble.go
2index fdc579ebbbdd567ad93e1abdd8f62d2301d18a3c..573c869dc52ac1f867816ae2c7e85c1b426f2c2b 100644
3--- a/tui/bubbles/repo/bubble.go
4+++ b/tui/bubbles/repo/bubble.go
5@@ -88,7 +88,7 @@ func (b *Bubble) SetSize(w, h int) {
6 b.width = w
7 b.height = h
8 b.readmeViewport.Viewport.Width = w - b.widthMargin
9- b.readmeViewport.Viewport.Height = h - b.heightMargin
10+ b.readmeViewport.Viewport.Height = h - lipgloss.Height(b.headerView()) - b.heightMargin
11 }
12
13 func (b *Bubble) GotoTop() {
14diff --git a/tui/commands.go b/tui/commands.go
15index 2675cb8634c9d06c722edb58051bc77565fa8bd9..6deb2832f373871609c61b8cd53a6993528d4148 100644
16--- a/tui/commands.go
17+++ b/tui/commands.go
18@@ -47,8 +47,7 @@ func (b *Bubble) setupCmd() tea.Msg {
19 var heightMargin = lipgloss.Height(b.headerView()) +
20 lipgloss.Height(b.footerView()) +
21 b.styles.RepoBody.GetVerticalFrameSize() +
22- b.styles.App.GetVerticalMargins() +
23- 3 // TODO: make this dynamic (this is the height of the repo info)
24+ b.styles.App.GetVerticalMargins()
25 rb := repo.NewBubble(b.repoSource, me.Repo, b.styles, width, boxLeftWidth, b.height, heightMargin, tmplConfig)
26 rb.Host = b.config.Host
27 rb.Port = b.config.Port