fix: some fixes

This commit is contained in:
2026-04-12 12:35:05 +02:00
parent e11e708095
commit 7cbefeae40
2 changed files with 4 additions and 13 deletions

View File

@@ -18,24 +18,15 @@ func (m Model) BuildAccountView(availableHeight int) string {
leftPanel := ""
for i, item := range models.AccountMenuItems {
if m.AccountCursor == i {
style := lipgloss.NewStyle().
Background(m.theme.Highlight()).
Foreground(m.theme.Accent()).
Padding(0, 1).
Width(leftWidth - 2).
Align(lipgloss.Left)
style := m.theme.Base().Background(m.theme.Highlight()).Foreground(m.theme.Accent()).Padding(0, 1).Width(leftWidth - 2).Align(lipgloss.Left)
leftPanel += style.Render(item) + "\n"
} else {
style := lipgloss.NewStyle().
Foreground(m.theme.Body()).
Padding(0, 1).
Width(leftWidth - 2).
Align(lipgloss.Left)
style := m.theme.TextBody().Padding(0, 1).Width(leftWidth - 2).Align(lipgloss.Left)
leftPanel += style.Render(item) + "\n"
}
}
leftContainer := lipgloss.NewStyle().
leftContainer := m.theme.Base().
Width(leftWidth)
// Build the detail view (right panel) based on cursor position

View File

@@ -416,7 +416,7 @@ func (m Model) PaymentUpdate(msg tea.Msg) (Model, tea.Cmd) {
return m, nil
case PaymentFormCompleteMsg:
if m.PaymentForm != nil {
if m.PaymentForm != nil && !m.PaymentForm.submitting {
m.PaymentForm.submitting = true
return m, m.saveCardOnlyCmd(msg)
}