From 4024cf4b404a2b9873e81d1494433ffd5dbe302e Mon Sep 17 00:00:00 2001 From: marcusDenslow Date: Sat, 25 Apr 2026 11:01:45 +0200 Subject: [PATCH] fix: fixed the border on order history currently selected item not showing up for some terminal themes --- pkg/tui/account_orders.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkg/tui/account_orders.go b/pkg/tui/account_orders.go index 23415f1..bfb1a24 100644 --- a/pkg/tui/account_orders.go +++ b/pkg/tui/account_orders.go @@ -98,7 +98,7 @@ func (m Model) buildOrderCard(order models.Order, boxWidth int, isSelected bool, var itemBox lipgloss.Style if isSelected { itemBox = lipgloss.NewStyle(). - Border(lipgloss.NormalBorder(), true). + Border(lipgloss.ThickBorder()). BorderForeground(m.theme.Accent()). Padding(boxPadding, 2). Width(boxWidth) @@ -110,11 +110,17 @@ func (m Model) buildOrderCard(order models.Order, boxWidth int, isSelected bool, Width(boxWidth) } + // Add cursor indicator for selected order + prefix := " " + if isSelected { + prefix = "> " + } + centered := lipgloss.NewStyle(). Width(containerWidth). Align(lipgloss.Center) - return centered.Render(itemBox.Render(boxContent)) + return centered.Render(prefix + itemBox.Render(boxContent)) } // buildOrderDetailView renders the full detail view for a single order