From 7925a33568c874f92d0c10c0c79954ef0c5e3007 Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Fri, 24 Apr 2026 11:19:02 +0300 Subject: [PATCH] Fix footer background fill rendering --- internal/ui/model.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/internal/ui/model.go b/internal/ui/model.go index 84b3635..0657575 100644 --- a/internal/ui/model.go +++ b/internal/ui/model.go @@ -1501,12 +1501,14 @@ func renderFooter(m Model) string { line += modeLabel } line = " " + line - return lipgloss.PlaceHorizontal( - m.width, - lipgloss.Left, - line, - lipgloss.WithWhitespaceBackground(m.palette.Footer), - ) + line = ansi.Truncate(line, m.width, "") + fill := m.width - ansi.StringWidth(line) + if fill > 0 { + line += lipgloss.NewStyle(). + Background(m.palette.Footer). + Render(strings.Repeat(" ", fill)) + } + return line } func renderModal(m Model, palette theme.Palette, width int) string {