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

Method resizeReadme

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

Source from the content-addressed store, hash-verified

595}
596
597func (m *browseModel) resizeReadme() {
598 m.readme.SetWidth(m.readmeWidth())
599 if m.page == readmePage {
600 m.readme.SetHeight(max(m.height-2, 1))
601 return
602 }
603 m.readme.SetHeight(max(m.mainHeight()-2, 1))
604}
605
606func (m *browseModel) loadSelectedReadme() tea.Cmd {
607 selected, ok := m.selectedEntry()

Callers 3

newBrowseModelFunction · 0.95
UpdateMethod · 0.95
setStatusMethod · 0.95

Calls 2

readmeWidthMethod · 0.95
mainHeightMethod · 0.95

Tested by

no test coverage detected