From 5fd9557637cce21def43b02283e5263a098f8150 Mon Sep 17 00:00:00 2001 From: Robin Olsen <129996395+Telikz@users.noreply.github.com> Date: Wed, 11 Mar 2026 15:33:45 +0100 Subject: [PATCH] Update pkg/tui/components/modals.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- pkg/tui/components/modals.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkg/tui/components/modals.go b/pkg/tui/components/modals.go index 28cba57..b2b5d75 100644 --- a/pkg/tui/components/modals.go +++ b/pkg/tui/components/modals.go @@ -225,11 +225,21 @@ func RenderFooter(width int, helpBar *HelpBar, feedback models.ValidationFeedbac if helpBar.IsExpanded() && feedbackStatus != "" { for _, check := range feedback.Checks { + var prefix string if check.Valid { - feedbackStatus += "\nāœ… " + check.Message + prefix = "āœ… " } else { - feedbackStatus += "\nāŒ " + check.Message + prefix = "āŒ " } + + // Ensure each check line does not exceed the available width. + remainingWidth := width - lipgloss.Width(prefix) + if remainingWidth < 0 { + remainingWidth = 0 + } + truncatedMsg := truncateToWidth(check.Message, remainingWidth) + + feedbackStatus += "\n" + prefix + truncatedMsg } } }