MCPcopy Create free account
hub / github.com/cli/cli / mainHeight

Method mainHeight

pkg/cmd/extension/browse/model.go:731–734  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

729}
730
731func (m *browseModel) mainHeight() int {
732 footerHeight := strings.Count(m.footerView(), "\n") + 1
733 return max(m.height-3-footerHeight, 1)
734}
735
736func (m *browseModel) resizeFilter() {
737 labelWidth := lipgloss.Width("filter: ")

Callers 3

mainContentMethod · 0.95
pageSizeMethod · 0.95
resizeReadmeMethod · 0.95

Calls 2

footerViewMethod · 0.95
CountMethod · 0.45

Tested by

no test coverage detected