Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion apps/files_sharing/src/components/SharingEntryLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@
<VueQrcode
tag="img"
:value="shareLink"
:size="256"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no such props, there is only the options prop:
https://github.com/fengyuanchen/vue-qrcode/blob/main/src/README.md

:margin="2"
class="qr-code-dialog__img" />
</div>
</NcDialog>
Expand Down Expand Up @@ -1003,8 +1005,14 @@ export default {
justify-content: center;

&__img {
width: 100%;
max-width: 256px;
max-height: 256px;
width: auto;
height: auto;
image-rendering: -webkit-optimize-contrast;
image-rendering: -moz-crisp-edges;
image-rendering: pixelated;
image-rendering: crisp-edges;
}
}
</style>
14 changes: 13 additions & 1 deletion apps/settings/src/components/AuthTokenSetupDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@
<NcButton v-if="!showQRCode" @click="showQRCode = true">
{{ t('settings', 'Show QR code for mobile apps') }}
</NcButton>
<QR v-else :value="qrUrl" />
<QR
v-else
:value="qrUrl"
:size="200"
:margin="2"
class="qr-code" />
</div>
</NcDialog>
</template>
Expand Down Expand Up @@ -216,6 +221,13 @@ export default defineComponent({
&__qrcode {
display: flex;
justify-content: center;

:deep(.qr-code) {
image-rendering: -webkit-optimize-contrast;
image-rendering: -moz-crisp-edges;
image-rendering: pixelated;
image-rendering: crisp-edges;
}
}
}
</style>