Skip to content

Commit

Permalink
ui: channel detail spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
reez authored Jan 23, 2024
1 parent db3a060 commit e3087d0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ struct ChannelDetailView: View {
}
.font(.system(.caption2, design: .monospaced))
.listStyle(.plain)
.padding()

Button {
showingConfirmationAlert = true
Expand Down
52 changes: 25 additions & 27 deletions LDKNodeMonday/View/Lightning/Send/SendConfirmationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,35 @@ struct SendConfirmationView: View {
.font(.largeTitle)
.foregroundColor(viewModel.networkColor)

if let invoice = viewModel.invoice.bolt11amount(), let number = Int(invoice) {
HStack(alignment: .center) {
Text(viewModel.invoice)
.truncationMode(.middle)
.lineLimit(1)
.foregroundColor(.secondary)
.font(.subheadline)
Button {
UIPasteboard.general.string = viewModel.invoice
isCopied = true
showCheckmark = true
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
isCopied = false
showCheckmark = false
}
} label: {
HStack {
withAnimation {
Image(
systemName: showCheckmark ? "checkmark" : "doc.on.doc"
)
.font(.subheadline)
}
HStack(alignment: .center) {
Text(viewModel.invoice)
.truncationMode(.middle)
.lineLimit(1)
.foregroundColor(.secondary)
.font(.subheadline)
Button {
UIPasteboard.general.string = viewModel.invoice
isCopied = true
showCheckmark = true
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
isCopied = false
showCheckmark = false
}
} label: {
HStack {
withAnimation {
Image(
systemName: showCheckmark ? "checkmark" : "doc.on.doc"
)
.font(.subheadline)
}
.bold()
.foregroundColor(viewModel.networkColor)
}

.bold()
.foregroundColor(viewModel.networkColor)
}
.padding(.horizontal)

}
.padding(.horizontal)
}
.padding(.horizontal, 50.0)

Expand Down

0 comments on commit e3087d0

Please sign in to comment.