From d5fcc8f9293fc02cfc60fa7027c3f829138907a3 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 7 Apr 2026 14:59:23 +0300 Subject: ui: remove empty lines from selected (highlighted) ultra cards Use ultraJoinSections instead of ultraJoinSectionsWithBlank so no blank separator row is inserted between card sections regardless of selection state. The outer ultraCardStyle already paints the full card background, so the per-section bg-coloured blank rows were redundant. Co-Authored-By: Claude Sonnet 4.6 --- internal/ui/ultra.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/internal/ui/ultra.go b/internal/ui/ultra.go index 314e57e..fc28bc5 100644 --- a/internal/ui/ultra.go +++ b/internal/ui/ultra.go @@ -631,15 +631,11 @@ func (m *Model) renderUltraCard(t task.Task, width int, selected bool, re *regex bg = m.theme.SelectedBG } - // Blank line between sections must also carry bg; otherwise the terminal - // default (black) shows through on the empty separator line. - blankLine := lipgloss.NewStyle().Width(width).Background(lipgloss.Color(bg)).Render("") - if bg == "" { - blankLine = "" - } - - card := ultraJoinSectionsWithBlank( - blankLine, + // No blank lines between sections — ultraJoinSections passes "" so + // ultraJoinSectionsWithBlank skips the separator entirely. The outer + // ultraCardStyle already fills the selected background across all lines, + // so per-section bg-coloured blank rows are not needed. + card := ultraJoinSections( m.renderUltraHeaderWithRegex(t, width, re, bg), m.renderUltraMetaWithRegex(t, width, re, bg), m.renderUltraDescriptionWithRegex(t, width, re, bg), -- cgit v1.2.3