Skip to content

Commit

Permalink
fix: add border to generated 2fa QR code (#749)
Browse files Browse the repository at this point in the history
Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
  • Loading branch information
johnny243 and johnny243 authored Nov 25, 2021
1 parent cf36647 commit ba3c584
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const ScanQRCode: FunctionComponent<{
</ModalDialogLabel>
<ModalDialogDescription className="h-33">
<div className="w-25 h-25 flex items-center justify-center bg-info">
<QRCode value={act.qrCode} size={100} />
<QRCode className="border-neutral-contrast-bg border-solid border-2" value={act.qrCode} size={100} />
</div>
<div className="min-w-5" />
<div className="flex-grow flex flex-col">
Expand Down
8 changes: 8 additions & 0 deletions app/assets/stylesheets/_sn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,14 @@
border-color: var(--sn-stylekit-danger-color);
}

.border-neutral-contrast-bg {
border-color: var(--sn-stylekit-neutral-contrast-color);
}

.border-2 {
border-width: 0.5rem;
}

.bg-inverted-default {
background-color: var(--sn-stylekit-contrast-foreground-color);
}
Expand Down

0 comments on commit ba3c584

Please sign in to comment.