Fix view mode body height without footer gap

This commit is contained in:
vrubelroman 2026-04-24 10:23:16 +03:00
parent d22a40e987
commit a163cc9a2d

View file

@ -1273,7 +1273,7 @@ func (m *Model) layoutWidths() (int, int, int) {
func (m *Model) bodyHeight() int {
height := m.height
if m.cfg.UI.ShowFooter {
if m.cfg.UI.ShowFooter && !m.viewMode {
height--
}
return max(height, 8)