fix: Adjust Analysis view layout to prevent overlapping with navigation bar

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-19 23:23:05 +01:00
parent b7a5bede87
commit 65a7cd10f6

View File

@@ -447,8 +447,13 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
} }
// Update Analysis Viewport size // Update Analysis Viewport size
// Header (Title+Counts) ~2 lines, Footer (Help) ~2 lines -> ~4 lines overhead // We need to account for:
analysisHeight := m.height - 4 // - Nav Bar: ~2 lines
// - Status Bar: ~1 line
// - Analysis View Header (Title + Count + Gap): ~4 lines
// - Analysis View Footer (Gap + Help): ~2 lines
// Total Overhead: ~9-10 lines
analysisHeight := m.height - 10
if analysisHeight < 0 { if analysisHeight < 0 {
analysisHeight = 0 analysisHeight = 0
} }