Skip to content

Commit 4aaf4d3

Browse files
authored
fix(qr): tighten container padding and force white background (#156)
* fix(qr): tighten container padding and force white background Drop .yivi-qr-container padding from 10px to 4px and switch the background from var(--pg-general-background) to white so the QR keeps a high-contrast quiet zone in both light and dark mode. * fix(qr): bump QR container to 320x320 in the popup Match $qr-code-size from yivi-css so the QR renders at its full intended size inside the desktop popup card. * fix(qr): size container so QR pattern is exactly 320x320 Bump .yivi-qr-container from 320 to 330 (320 + 4 px padding + 1 px border on each side, with box-sizing: border-box) so the QR SVG inside renders at the canonical $qr-code-size from yivi-css. Also bumps @privacybydesign/yivi-css to ^1.0.0-beta.7, which carries the canvas → SVG QR migration and the .yivi-web-centered fill rule.
1 parent 91a46a1 commit 4aaf4d3

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"@deltablot/dropzone": "^7.4.3",
7373
"@e4a/pg-js": "^1.6.0",
7474
"@iconify/svelte": "^5.2.1",
75-
"@privacybydesign/yivi-css": "^1.0.0-beta.6",
75+
"@privacybydesign/yivi-css": "^1.0.0-beta.7",
7676
"country-flag-icons": "^1.6.17",
7777
"libphonenumber-js": "^1.12.42",
7878
"postal-mime": "^2.7.4",

src/lib/components/filesharing/YiviQRCode.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@
7575

7676
<style>
7777
.yivi-qr-container {
78-
width: 250px;
79-
height: 250px;
78+
width: 330px;
79+
height: 330px;
8080
display: flex;
8181
justify-content: center;
8282
align-items: center;
8383
overflow: hidden;
84-
background: var(--pg-general-background);
84+
background: white;
8585
border: 1px solid var(--pg-strong-background);
8686
border-radius: var(--pg-border-radius-sm);
87-
padding: 10px;
87+
padding: 4px;
8888
}
8989
9090
.yivi-qr-container.responsive {

0 commit comments

Comments
 (0)