Skip to content

Commit

Permalink
fix: qr-code/src/QrCode.tsx padding and size error
Browse files Browse the repository at this point in the history
  • Loading branch information
smileluck committed Dec 12, 2024
1 parent 2890b4d commit 82db7af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qr-code/src/QrCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ export default defineComponent({
style={{
padding: typeof padding === 'number' ? `${padding}px` : padding,
backgroundColor,
width: `${size + padding}px`,
height: `${size + padding}px`,
width: `${size - padding * 2}px`,
height: `${size - padding * 2}px`,
...cssVars
}}
>
Expand Down

0 comments on commit 82db7af

Please sign in to comment.