diff --git a/lnbits/static/js/components.js b/lnbits/static/js/components.js
index 055516f50..fcbcf95a3 100644
--- a/lnbits/static/js/components.js
+++ b/lnbits/static/js/components.js
@@ -368,8 +368,8 @@ Vue.component('lnbits-qrcode', {
template: `
-
![...]()
+ :options="{errorCorrectionLevel: 'Q', width: 800}" class="rounded-borders">
+
`
})
diff --git a/lnbits/static/scss/base.scss b/lnbits/static/scss/base.scss
index 7dbb240ae..612b6f104 100644
--- a/lnbits/static/scss/base.scss
+++ b/lnbits/static/scss/base.scss
@@ -214,20 +214,24 @@ video {
}
}
-.qrcode__wrapper > canvas {
+// qrcode
+.qrcode__wrapper canvas {
position: relative;
- min-width: 100%;
- min-height: 100%;
+ width: 100% !important; // important to override qrcode inline width
+ max-width: 100%;
+ max-height: 100%;
}
.qrcode__image {
width: 15%;
height: 15%;
overflow: hidden;
+ background: #fff;
left: 50%;
overflow: hidden;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
- padding: 0.3rem;
+ padding: 0.2rem;
+ border-radius: 0.2rem;
}