mirror of
https://github.com/marcusDenslow/terminalShop.git
synced 2026-10-25 10:02:21 +01:00
fix: my last change was very wrong, i think i made it in my sleep. this should do the trick though
This commit is contained in:
@@ -50,7 +50,10 @@ func (m Model) OrdersView(width int) string {
|
||||
// Shows order number + total on line 1, date + status on line 2.
|
||||
// Item details are shown in the detail view (viewState 2).
|
||||
func (m Model) buildOrderCard(order models.Order, boxWidth int, isSelected bool) string {
|
||||
nameStyle := m.theme.TextAccent().Bold(true)
|
||||
nameStyle := m.theme.TextAccent()
|
||||
if isSelected {
|
||||
nameStyle = nameStyle.Bold(true)
|
||||
}
|
||||
|
||||
// When selected, secondary text uses accent color so the whole card "lights up"
|
||||
dimStyle := m.theme.TextDim()
|
||||
@@ -90,7 +93,7 @@ func (m Model) buildOrderCard(order models.Order, boxWidth int, isSelected bool)
|
||||
PaddingLeft(1).
|
||||
Width(boxWidth)
|
||||
} else {
|
||||
itemBox = m.theme.TextDim().
|
||||
itemBox = m.theme.Base().
|
||||
Border(lipgloss.NormalBorder()).
|
||||
BorderForeground(m.theme.Border()).
|
||||
PaddingLeft(1).
|
||||
|
||||
Reference in New Issue
Block a user