Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better qr styling #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 5 additions & 3 deletions components/dashboard/links/QRCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Button } from '#components'
import { Download } from 'lucide-vue-next'
import QRCodeStyling from 'qr-code-styling'
import { ref, watch } from 'vue'
import { onMounted, ref, watch } from 'vue'

const props = defineProps({
data: {
Expand Down Expand Up @@ -102,12 +102,14 @@ onMounted(() => {
<div
ref="qrCodeEl"
: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="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 }"
title="Change QR code color"
>
<input
v-model="color"
Expand Down