Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions internal/ui/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,24 +435,8 @@ func (m projectFormModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
// Update styles that depend on window width
titleStyle = titleStyle.Width(m.width)
helpStyle = helpStyle.Width(m.width)

if !m.ready {
m.initViewport()
} else {
// Fixed elements heights (always including both scroll indicators)
titleBarHeight := 3 // Title + description + spacing
headerHeight := 4 // Step title + description + spacing
footerHeight := 4 // Help text + spacing
verticalMargins := 2 // Top and bottom margins
scrollIndicators := 4 // Space for both scroll indicators (↑ and ↓)

// Calculate total fixed height
totalFixedHeight := titleBarHeight + headerHeight + footerHeight + verticalMargins + scrollIndicators

// Update viewport dimensions
m.viewport.Width = m.width - 4 // Account for left/right borders/padding
m.viewport.Height = m.height - totalFixedHeight
}
// Always reinitialize the viewport on resize to avoid invalid state
m.initViewport()

return m, nil

Expand Down
Loading