fix: fixed the border on order history currently selected item not showing up for some terminal themes
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2026-04-25 11:01:45 +02:00
parent c78f5eb12b
commit 4024cf4b40

View File

@@ -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