Skip to content

Commit

Permalink
PointOfSaleCardPresentPaymentNonRetryableErrorMessageView: update lay…
Browse files Browse the repository at this point in the history
…out to enable 0.5 width for the button.
  • Loading branch information
jaclync committed Feb 25, 2025
1 parent 6f0f744 commit 4ea1fbf
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ struct PointOfSaleCardPresentPaymentNonRetryableErrorMessageView: View {

var body: some View {
VStack(alignment: .center, spacing: POSSpacing.none) {
Spacer()

POSErrorXMark()
.matchedGeometryEffect(id: animation.iconTransitionId, in: animation.namespace, properties: .position)

Expand Down Expand Up @@ -36,9 +38,12 @@ struct PointOfSaleCardPresentPaymentNonRetryableErrorMessageView: View {
Button(viewModel.tryAnotherPaymentMethodButtonViewModel.title,
action: viewModel.tryAnotherPaymentMethodButtonViewModel.actionHandler)
.buttonStyle(POSFilledButtonStyle(size: .normal))
.frame(width: width * 0.5)

Spacer()
}
.multilineTextAlignment(.center)
.frame(maxWidth: PointOfSaleCardPresentPaymentLayout.errorContentMaxWidth)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.measureWidth({ containerWidth in
width = containerWidth
})
Expand Down

0 comments on commit 4ea1fbf

Please sign in to comment.