Skip to content

Commit e0f95cb

Browse files
authored
Update two-factor-authentication-form.blade.php (#1305)
* Update two-factor-authentication-form.blade.php Added padding and white background to SVG, phones with lower quality camera can't read QR code due to low contrast in dark mode. * Update TwoFactorAuthenticationForm.vue Changes to Inertia stack QR code contrast issue in dark mode.
1 parent 802e9c4 commit e0f95cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: stubs/inertia/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const disableTwoFactorAuthentication = () => {
144144
</p>
145145
</div>
146146
147-
<div class="mt-4" v-html="qrCode" />
147+
<div class="mt-4 p-2 inline-block bg-white" v-html="qrCode" />
148148
149149
<div v-if="setupKey" class="mt-4 max-w-xl text-sm text-gray-600 dark:text-gray-400">
150150
<p class="font-semibold">

Diff for: stubs/livewire/resources/views/profile/two-factor-authentication-form.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</p>
3939
</div>
4040

41-
<div class="mt-4">
41+
<div class="mt-4 p-2 inline-block bg-white">
4242
{!! $this->user->twoFactorQrCodeSvg() !!}
4343
</div>
4444

0 commit comments

Comments
 (0)