Fixes
- Qr code re-adjustment fix ui break in second display
This commit is contained in:
@@ -199,7 +199,7 @@ class Foodcourt::QrpayController < BaseFoodcourtController
|
|||||||
@qr_svg = qrcode.as_svg(
|
@qr_svg = qrcode.as_svg(
|
||||||
color: "000",
|
color: "000",
|
||||||
shape_rendering: "crispEdges",
|
shape_rendering: "crispEdges",
|
||||||
module_size: 2,
|
module_size: 3,
|
||||||
standalone: true,
|
standalone: true,
|
||||||
use_path: true
|
use_path: true
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ class KbzMerchant
|
|||||||
timeout: 15
|
timeout: 15
|
||||||
)
|
)
|
||||||
|
|
||||||
puts "Response: #{response}"
|
Rails.logger.info "Response: #{response}"
|
||||||
JSON.parse(response.body)
|
JSON.parse(response.body)
|
||||||
rescue HTTParty::Error => e
|
rescue HTTParty::Error => e
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
<p class="text-muted">Use your mobile wallet app</p>
|
<p class="text-muted">Use your mobile wallet app</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="qr-payment-container" class="mx-auto text-center p-3 bg-white rounded border" style="max-width: 300px;">
|
<div id="qr-payment-container" class="mx-auto text-center p-3 bg-white rounded border" style="max-width: 400px;">
|
||||||
<!-- Added mx-auto to center this block within its col-6 parent -->
|
<!-- Added mx-auto to center this block within its col-6 parent -->
|
||||||
<div id="qr-code" class="mb-2">
|
<div id="qr-code" class="mb-2">
|
||||||
<div id="qrpay_svg">
|
<div id="qrpay_svg">
|
||||||
|
|||||||
Reference in New Issue
Block a user