Skip to content

Commit

Permalink
Add quiete zone and responsive handling
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Apr 13, 2022
1 parent fb93a31 commit fd6cd8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default class QRCode<T: ?string | ?number> extends React.PureComponent<QR
<QRCodeComponent
className={qrCodeStyles.qrcode}
value={this.props.value || ''}
viewBox='0 0 256 256'
/>
</Fragment>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

.qrcode {
background: white;
box-sizing: content-box;
height: auto;
margin-top: 20px;
padding: 6px;
max-width: 100%;
padding: 16px;
width: auto;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Array [
<svg
class="qrcode"
height="256"
viewBox="0 0 256 256"
width="256"
xmlns="http://www.w3.org/2000/svg"
>
Expand Down

0 comments on commit fd6cd8b

Please sign in to comment.