Skip to content

Commit

Permalink
chore: 🔧 qrcode white padding
Browse files Browse the repository at this point in the history
  • Loading branch information
apotdevin committed Aug 5, 2020
1 parent 87f27d3 commit 82c052d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/views/home/account/createInvoice/CreateInvoice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ const WrapRequest = styled.div`
`;

const QRWrapper = styled.div`
width: 200px;
width: 280px;
height: 280px;
margin: 16px;
background: white;
padding: 16px;
`;

const Column = styled.div`
Expand Down Expand Up @@ -64,7 +67,7 @@ export const CreateInvoiceCard = ({ color }: { color: string }) => {
const renderQr = () => (
<Responsive>
<QRWrapper>
<QRCode value={`lightning:${request}`} renderAs={'svg'} size={200} />
<QRCode value={`lightning:${request}`} renderAs={'svg'} size={248} />
</QRWrapper>
<Column>
<WrapRequest>{request}</WrapRequest>
Expand Down
7 changes: 5 additions & 2 deletions src/views/home/account/receiveOnChain/ReceiveOnChain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ const WrapRequest = styled.div`
`;

const QRWrapper = styled.div`
width: 200px;
width: 280px;
height: 280px;
margin: 16px;
background: white;
padding: 16px;
`;

const Column = styled.div`
Expand Down Expand Up @@ -76,7 +79,7 @@ export const ReceiveOnChainCard = () => {
{data && data.createAddress ? (
<Responsive>
<QRWrapper>
<QRCode value={data.createAddress} renderAs={'svg'} size={200} />
<QRCode value={data.createAddress} renderAs={'svg'} size={248} />
</QRWrapper>
<Column>
<WrapRequest>{data.createAddress}</WrapRequest>
Expand Down

0 comments on commit 82c052d

Please sign in to comment.