fix(ui): responsive qr-code generator

This commit is contained in:
Corentin Thomasset 2021-05-17 23:33:50 +02:00
parent f6998f0f9a
commit fed0daf0a7
No known key found for this signature in database
GPG key ID: DBD997E935996158

View file

@ -1,12 +1,14 @@
<template> <template>
<ToolWrapper :config="config()"> <ToolWrapper :config="config()">
<v-row justify="center" align="center">
<v-col cols="12" lg="6" sm="12">
<v-text-field <v-text-field
v-model="value" v-model="value"
outlined outlined
label="Data" label="Data"
:rules="rules.value" :rules="rules.value"
/> />
<v-slider v-model="size" min="100" max="1920" label="Size (preview will not change): " thumb-label /> <v-slider v-model="size" min="100" max="1920" label="Size (preview will not change): " thumb-label/>
<v-select <v-select
v-model="level" v-model="level"
outlined outlined
@ -15,14 +17,16 @@
/> />
<v-row> <v-row>
<v-col cols="12" md="6" sm="12"> <v-col cols="12" md="6" sm="12">
<ColorInput v-model="fgColor" label="Foreground color" /> <ColorInput v-model="fgColor" label="Foreground color"/>
</v-col> </v-col>
<v-col cols="12" md="6" sm="12"> <v-col cols="12" md="6" sm="12">
<ColorInput v-model="bgColor" label="Background color" /> <ColorInput v-model="bgColor" label="Background color"/>
</v-col> </v-col>
</v-row> </v-row>
<div class="text-center mt-5 mb-5"> </v-col>
<v-col cols="12" lg="6" sm="12" class="text-center mt-5 ">
<qrcode-vue <qrcode-vue
:value="value" :value="value"
:size="size" :size="size"
@ -32,9 +36,10 @@
render-as="svg" render-as="svg"
class-name="qrcode-wrapper" class-name="qrcode-wrapper"
/> />
</div> </v-col>
</v-row>
<div class="text-center mb-sm-2"> <div class="text-center mb-sm-2 mt-4">
<v-btn class="mr-1" color="primary" @click="download('png')"> <v-btn class="mr-1" color="primary" @click="download('png')">
download as png download as png
</v-btn> </v-btn>