Skip to content

Commit

Permalink
Fix cropped QR codes - Fixes #420
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubka committed Nov 22, 2024
1 parent 6ead770 commit ec26f19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions resources/js/assets/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,15 @@ a:hover {
background-color: $grey-darker !important;
}

img.qrcode {
max-width: 320px;
}
@media screen and (max-height: 500px) {
img.qrcode {
max-height: 50vh;
}
}

.tfa-grid {
border-radius: 6px;
text-align: center;
Expand Down
4 changes: 2 additions & 2 deletions resources/js/views/twofaccounts/QRcode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
<template>
<div class="modal modal-otp is-active">
<div class="modal-background"></div>
<div class="modal-content">
<div class="modal-content modal-with-footer">
<p class="has-text-centered m-5">
<img v-if="qrcode" :src="qrcode" class="has-background-light" :alt="$t('commons.image_of_qrcode_to_scan')">
<img v-if="qrcode" :src="qrcode" class="qrcode has-background-light" :alt="$t('commons.image_of_qrcode_to_scan')">
<Spinner :isVisible="!qrcode" :type="'raw'" class="is-size-1" />
</p>
</div>
Expand Down

0 comments on commit ec26f19

Please sign in to comment.