MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / effectiveHeaderHeight

Method effectiveHeaderHeight

internal/tui/dashboard.go:135–140  ·  view source on GitHub ↗

effectiveHeaderHeight returns the header height accounting for worktree info line.

()

Source from the content-addressed store, hash-verified

133
134// effectiveHeaderHeight returns the header height accounting for worktree info line.
135func (a *App) effectiveHeaderHeight() int {
136 if a.hasWorktreeInfo() {
137 return headerHeight + 1
138 }
139 return headerHeight
140}
141
142// renderWorktreeInfoLine renders the branch and directory info line for the header.
143func (a *App) renderWorktreeInfoLine() string {

Callers 5

renderDashboardMethod · 0.95
storiesListHeightMethod · 0.95

Calls 1

hasWorktreeInfoMethod · 0.95