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
|
// 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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user