mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 07:00:58 -05:00
fix(qr): render the QR code consistently
This commit is contained in:
parent
c9127d6cf3
commit
a190a51d0b
1 changed files with 18 additions and 5 deletions
|
@ -12,6 +12,17 @@ const Code = styled.code`
|
||||||
user-select: all;
|
user-select: all;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const Qr = styled.div`
|
||||||
|
border-radius: 4px;
|
||||||
|
background: white;
|
||||||
|
|
||||||
|
width: 140px;
|
||||||
|
height: 140px;
|
||||||
|
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TOTP enable modal
|
* TOTP enable modal
|
||||||
*/
|
*/
|
||||||
|
@ -53,11 +64,13 @@ export default function MFAEnableTOTP({
|
||||||
}}>
|
}}>
|
||||||
<Column>
|
<Column>
|
||||||
<Centred>
|
<Centred>
|
||||||
|
<Qr>
|
||||||
<QRCodeSVG
|
<QRCodeSVG
|
||||||
value={uri}
|
value={uri}
|
||||||
bgColor="transparent"
|
bgColor="white"
|
||||||
fgColor="var(--foreground)"
|
fgColor="black"
|
||||||
/>
|
/>
|
||||||
|
</Qr>
|
||||||
</Centred>
|
</Centred>
|
||||||
<Centred>
|
<Centred>
|
||||||
<Code>{secret}</Code>
|
<Code>{secret}</Code>
|
||||||
|
|
Loading…
Reference in a new issue