diff --git a/tui/bubbles/repo/bubble.go b/tui/bubbles/repo/bubble.go index 71b9f8507ba114db67d8433e1b665ffa7fd18f3b..5d379d9ebe22faccfcca05ed525f35e90936012d 100644 --- a/tui/bubbles/repo/bubble.go +++ b/tui/bubbles/repo/bubble.go @@ -148,8 +148,7 @@ func (b *Bubble) View() string { if b.Active { bs = bs.BorderForeground(b.styles.ActiveBorderColor) } - body := bs. - Width(b.width - b.widthMargin - b.styles.RepoBody.GetVerticalFrameSize()). + body := bs.Width(b.width - b.widthMargin - b.styles.RepoBody.GetVerticalFrameSize()). Height(b.height - b.heightMargin - lipgloss.Height(header)). Render(b.readmeViewport.View()) return header + body @@ -204,8 +203,7 @@ func (b *Bubble) templatize(mdt string) (string, error) { } func (b *Bubble) glamourize(md string) (string, error) { - // TODO: read gaps in appropriate style to remove the magic number below. - w := b.width - b.widthMargin - 4 + w := b.width - b.widthMargin - b.styles.RepoBody.GetHorizontalFrameSize() if w > glamourMaxWidth { w = glamourMaxWidth }