Skip to content

Commit

Permalink
fix(invoice): added width boundary to invoice string (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ardevd authored Jan 8, 2024
1 parent b778842 commit d0450dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tui/invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (m InvoiceModel) View() string {
case huh.StateCompleted:
b := strings.Builder{}
fmt.Fprintf(&b, "\n%s\n", s.HeaderText.Render("Invoice Ready"))
fmt.Fprintf(&b, "\n%s\n\n", invoiceVal)
fmt.Fprintf(&b, "\n%s\n\n", s.Base.Width(windowSizeMsg.Width-10).Render(invoiceVal))
fmt.Fprintf(&b, "%s\n", m.printQrCode())

return lipgloss.JoinVertical(lipgloss.Left, s.BorderedStyle.Render(b.String()))
Expand Down

0 comments on commit d0450dc

Please sign in to comment.