Skip to content

Commit e1cde59

Browse files
committed
fix: border of qr code is too small
1 parent 52bb369 commit e1cde59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/Generate.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ onMounted(() => {
3131
block.value = data
3232
const binary = blockToBinary(data)
3333
const str = fromUint8Array(binary)
34-
svg.value = renderSVG(str, { border: 1 })
34+
svg.value = renderSVG(str, { border: 5 })
3535
const now = performance.now()
3636
renderTime.value = now - frame
3737
frame = now
@@ -65,6 +65,7 @@ onMounted(() => {
6565
<div relative w-full>
6666
<div
6767
class="aspect-square [&>svg]:h-full [&>svg]:w-full"
68+
6869
h-full w-full overflow-hidden rounded="~ sm:lg"
6970
v-html="svg"
7071
/>

0 commit comments

Comments
 (0)