Switching to SVG for QR code so it looks OK on higher density display

Co-authored-by: Sebastian Kippe <sebastian@kip.pe>
This commit is contained in:
rockstardev 2019-03-15 21:41:50 -05:00 committed by Rockstar Developer
parent 30d5add2ea
commit 5ab92ed794
2 changed files with 6 additions and 1 deletions

View file

@ -207,7 +207,7 @@
<div class="payment__scan">
<img v-bind:src="srvModel.cryptoImage" class="qr_currency_icon"
v-if="scanDisplayQr" />
<qrcode v-bind:value="scanDisplayQr" :options="{ width: 256, margin: 0, color: {dark:'#000', light:'#f5f5f7'} }"
<qrcode v-bind:value="scanDisplayQr" :options="{ width: 256, margin: 0, color: {dark:'#000', light:'#f5f5f7'} }" tag="svg"
v-if="scanDisplayQr">
</qrcode>

View file

@ -9448,6 +9448,11 @@ strong {
margin-bottom: 5px;
}
.payment__scan svg {
width: 256px;
height: 256px;
}
.payment__scan__checkmark-wrapper {
display: flex;
justify-content: center;