From 711aefba5ec2f81da392f338e7c4506d5a2bd2df Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Thu, 26 Feb 2026 12:54:56 +0300 Subject: [PATCH] fix(ui): remove opposite border to fix background banding on user messages --- internal/ui/block_renderer.go | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/internal/ui/block_renderer.go b/internal/ui/block_renderer.go index 57d5df0f..7bc0b06c 100644 --- a/internal/ui/block_renderer.go +++ b/internal/ui/block_renderer.go @@ -177,25 +177,19 @@ func renderContentBlock(content string, containerWidth int, options ...rendering borderColor = *renderer.borderColor } - // Very muted color for the opposite border - mutedOppositeBorder := AdaptiveColor("#F3F4F6", "#1F2937") - - // Align determines which border gets the accent color. + // Only render the accent-side border to avoid background + // banding from the opposite border character. switch align { case lipgloss.Right: style = style. BorderRight(true). - BorderLeft(true). - BorderRightForeground(borderColor). - BorderLeftForeground(mutedOppositeBorder) - borderChars = 2 + BorderRightForeground(borderColor) + borderChars = 1 default: // Left (and fallback) style = style. BorderLeft(true). - BorderRight(true). - BorderLeftForeground(borderColor). - BorderRightForeground(mutedOppositeBorder) - borderChars = 2 + BorderLeftForeground(borderColor) + borderChars = 1 } }