diff --git a/static/js/index.js b/static/js/index.js index 892cd17..6c722b3 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -1610,12 +1610,14 @@ window.app = Vue.createApp({ }) }, - // Open a fullscreen QR sized to the shorter viewport edge (minus a - // margin) so it renders as large as possible for a spire's camera. + // Open a fullscreen QR sized to nearly the full shorter viewport edge + // so it renders as large as possible for a spire's camera. The QR's + // wrapper caps at 96vw, so an over-estimate here is fine — it just + // means "fill the width". Feeds the lnbits-qrcode `max-width` prop. openQrZoom(value) { if (!value) return const edge = Math.min(window.innerWidth, window.innerHeight) - this.qrZoom.size = Math.max(240, Math.floor(edge - 64)) + this.qrZoom.size = Math.max(240, Math.floor(edge - 16)) this.qrZoom.value = value this.qrZoom.show = true }, diff --git a/templates/spirekeeper/index.html b/templates/spirekeeper/index.html index be55a93..fd26d1c 100644 --- a/templates/spirekeeper/index.html +++ b/templates/spirekeeper/index.html @@ -902,11 +902,11 @@
-
+ :max-width="280">
- + +
+ +
Point the spire's camera here — tap Close when scanned.