What changed, and why it matters
This commit makes minor cosmetic and code-formatting changes to the QR code display modal. It adds a little more padding around QR codes, removes some blank lines, and cleans up whitespace in JavaScript. There is no indication of any security fix or behavior change.
No security action needed. Treat as a routine UI/style cleanup commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff touches BTCPayServer/Views/Shared/ShowQR.cshtml only. Changes are: (1) two extra blank lines inserted at the top of the file, (2) padding around the QR code changed from –btcpay-space-s to –btcpay-space-m, (3) trailing whitespace removed from several blank lines inside the Vue init function, and (4) no functional JavaScript or HTML logic changes. No security-relevant modifications are present.
Changed components
BTCPayServer/Views/Shared/ShowQR.cshtmlInspect captured patch +7 / −5
### BTCPayServer/Views/Shared/ShowQR.cshtml
@@ -1,3 +1,5 @@
+
+
<div id="scan-qr-modal-app" class="scan-qr-modal">
<div class="modal" tabindex="-1" role="dialog" :id="modalId">
<div class="modal-dialog" role="document">
@@ -44,7 +46,7 @@
</div>
<style>
.scan-qr-modal__qr {
- padding: var(--btcpay-space-s);
+ padding: var(--btcpay-space-m);
background: var(--btcpay-white);
border-radius: var(--btcpay-border-radius);
}
@@ -79,15 +81,15 @@ function initQRShow(data) {
}
}
}, data || {});
-
+
if (!Object.values(res.modes || {}).length) {
res.modes = { default: { title: 'Default', fragments: [res.data] } };
}
-
+
if (!res.mode) {
res.mode = Object.keys(res.modes)[0];
}
-
+
return res;
},
computed: {
@@ -114,7 +116,7 @@ function initQRShow(data) {
},
playNext() {
if (!this.active) return;
-
+
this.index++;
if (this.index > (this.fragments.length - 1)) {
this.index = 0;Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.