fix styling of qr

This commit is contained in:
7heMech 2025-03-02 16:39:26 +00:00
parent 31731c5bed
commit 7bd6461814

View file

@ -2,7 +2,7 @@
import { Button } from '#components' import { Button } from '#components'
import { Download } from 'lucide-vue-next' import { Download } from 'lucide-vue-next'
import QRCodeStyling from 'qr-code-styling' import QRCodeStyling from 'qr-code-styling'
import { ref, watch } from 'vue' import { onMounted, ref, watch } from 'vue'
const props = defineProps({ const props = defineProps({
data: { data: {
@ -102,12 +102,14 @@ onMounted(() => {
<div <div
ref="qrCodeEl" ref="qrCodeEl"
:data-text="data" :data-text="data"
class="bg-white p-1 rounded-lg"
/> />
<div class="flex items-center gap-2"> <div class="flex items-center gap-4">
<div class="relative flex items-center"> <div class="relative flex items-center">
<div <div
class="w-8 h-8 rounded-full border cursor-pointer overflow-hidden" class="w-8 h-8 rounded-full border border-gray-300 dark:border-gray-600 cursor-pointer overflow-hidden"
:style="{ backgroundColor: color }" :style="{ backgroundColor: color }"
title="Change QR code color"
> >
<input <input
v-model="color" v-model="color"