Skip to content

Commit b135cc3

Browse files
committed
layout: mobile friendly on payment page
1 parent 73f414a commit b135cc3

File tree

1 file changed

+10
-7
lines changed
  • src/Modules/SimplCommerce.Module.Payments/Views/Checkout

1 file changed

+10
-7
lines changed

src/Modules/SimplCommerce.Module.Payments/Views/Checkout/Payment.cshtml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,21 @@
1111
<div class="alert alert-danger" role="alert">@TempData["Error"]</div>
1212
}
1313
<div id="paymentError" class="alert alert-danger hidden" role="alert"></div>
14-
1514
<h3>@Localizer["Choose a payment methods"]</h3>
15+
<div class="row">
1616
@foreach (var paymentProvider in Model.PaymentProviders)
1717
{
18-
<div class="payment-method [email protected]">
19-
<label>@paymentProvider.Name</label>
20-
@if(!string.IsNullOrWhiteSpace(paymentProvider.LandingViewComponentName))
21-
{
22-
@await Component.InvokeAsync(paymentProvider.LandingViewComponentName)
23-
}
18+
<div class="col-sm-12 col-md-6">
19+
<div class="payment-method [email protected]">
20+
<label>@paymentProvider.Name</label>
21+
@if(!string.IsNullOrWhiteSpace(paymentProvider.LandingViewComponentName))
22+
{
23+
@await Component.InvokeAsync(paymentProvider.LandingViewComponentName)
24+
}
25+
</div>
2426
</div>
2527
}
28+
</div>
2629
</div>
2730
<div class="col-md-4">
2831
@await Component.InvokeAsync("OrderSummary")

0 commit comments

Comments
 (0)