mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
fix(qr): render the QR code consistently
This commit is contained in:
@@ -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>
|
||||||
<QRCodeSVG
|
<Qr>
|
||||||
value={uri}
|
<QRCodeSVG
|
||||||
bgColor="transparent"
|
value={uri}
|
||||||
fgColor="var(--foreground)"
|
bgColor="white"
|
||||||
/>
|
fgColor="black"
|
||||||
|
/>
|
||||||
|
</Qr>
|
||||||
</Centred>
|
</Centred>
|
||||||
<Centred>
|
<Centred>
|
||||||
<Code>{secret}</Code>
|
<Code>{secret}</Code>
|
||||||
|
|||||||
Reference in New Issue
Block a user