fix: Adjust Analysis view layout to prevent overlapping with navigation bar
This commit is contained in:
@@ -447,8 +447,13 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
}
|
||||
|
||||
// Update Analysis Viewport size
|
||||
// Header (Title+Counts) ~2 lines, Footer (Help) ~2 lines -> ~4 lines overhead
|
||||
analysisHeight := m.height - 4
|
||||
// We need to account for:
|
||||
// - 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 {
|
||||
analysisHeight = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user