add qr code class with white background (#1012)

# What this PR does

- Adds white border around the QR code + small margin below
This commit is contained in:
Rares Mardare 2022-12-19 13:15:32 +02:00 committed by GitHub
parent 7bb4fdfe43
commit 5595480d3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -39,6 +39,11 @@
opacity: 0.2;
}
.qr-code {
background-color: #fff;
margin-bottom: 12px;
}
.qr-loader {
position: absolute;
z-index: 10;

View file

@ -133,7 +133,7 @@ const MobileAppVerification = observer(({ userPk }: Props) => {
</Text>
<Text type="primary">Open Grafana IRM mobile application and scan this code to sync it with your account.</Text>
<div className={cx('u-width-100', 'u-flex', 'u-flex-center', 'u-position-relative')}>
<QRCode className={cx({ blurry: isQRBlurry })} value={QRCodeValue} />
<QRCode className={cx({ 'qr-code': true, blurry: isQRBlurry })} value={QRCodeValue} />
{isQRBlurry && <QRLoading />}
</div>
</VerticalGroup>

View file

@ -109,7 +109,7 @@ exports[`MobileAppVerification if we disconnect the app, it disconnects and fetc
class="u-width-100 u-flex u-flex-center u-position-relative"
>
<div
class="root root_bordered"
class="root qr-code root_bordered"
>
<svg
height="256"