()
| 718 | } |
| 719 | |
| 720 | func (m *browseModel) readmePaneView() string { |
| 721 | style := lipgloss.NewStyle(). |
| 722 | Border(lipgloss.NormalBorder()). |
| 723 | Width(m.readme.Width() + 2). |
| 724 | Height(m.readme.Height() + 2) |
| 725 | if m.colors.Enabled { |
| 726 | style = style.BorderForeground(lipgloss.Color("5")) |
| 727 | } |
| 728 | return style.Render(m.readme.View()) |
| 729 | } |
| 730 | |
| 731 | func (m *browseModel) mainHeight() int { |
| 732 | footerHeight := strings.Count(m.footerView(), "\n") + 1 |
no test coverage detected