From 1a6fefa97618de049db90d996e5cf2ee06107bec Mon Sep 17 00:00:00 2001 From: iozeey Date: Fri, 8 Dec 2023 16:00:01 +0500 Subject: [PATCH] resolving errors of my signature and initials. --- app/javascript/template_builder/area.vue | 18 +- .../template_builder/my_initials.vue | 164 +++++++++--------- .../template_builder/my_signature.vue | 11 +- 3 files changed, 104 insertions(+), 89 deletions(-) diff --git a/app/javascript/template_builder/area.vue b/app/javascript/template_builder/area.vue index 34817559..7271543d 100644 --- a/app/javascript/template_builder/area.vue +++ b/app/javascript/template_builder/area.vue @@ -140,14 +140,14 @@ :id="field.uuid" :src="mySignatureUrl.url" class="d-flex justify-center w-full h-full" - style="z-index: 50;" + style="z-index: 50; border-width: 2px; --tw-bg-opacity: 1; --tw-border-opacity: 0.2; background-color: transparent;" @click="handleMySignatureClick" > @@ -162,14 +162,14 @@ :id="field.uuid" :src="myInitialsUrl.url" class="d-flex justify-center w-full h-full" - style="z-index: 50;" + style="z-index: 50; border-width: 2px; --tw-bg-opacity: 1; --tw-border-opacity: 0.2; background-color: transparent;" @click="handleMyInitialClick" > @@ -216,6 +216,9 @@
@@ -509,10 +515,12 @@ export default { handleMyInitialsAttachment (attachment) { this.templateAttachments.push(attachment) this.makeMyInitials(attachment.uuid) + this.save() }, handleMySignatureAttachment (attachment) { this.templateAttachments.push(attachment) this.makeMySignature(attachment.uuid) + this.save() }, onNameFocus (e) { this.selectedAreaRef.value = this.area diff --git a/app/javascript/template_builder/my_initials.vue b/app/javascript/template_builder/my_initials.vue index c90db7bc..76440d04 100644 --- a/app/javascript/template_builder/my_initials.vue +++ b/app/javascript/template_builder/my_initials.vue @@ -4,96 +4,102 @@ style="z-index: 50;" :style="{ ...mySignatureStyle }" > -
- -
- +
+
+ +
+ + + + + + + + + + - + - - - + - - - - - - - -
- +
+ +
+ + + + +
- - - - -
diff --git a/app/javascript/template_builder/my_signature.vue b/app/javascript/template_builder/my_signature.vue index 4688334c..361906f1 100644 --- a/app/javascript/template_builder/my_signature.vue +++ b/app/javascript/template_builder/my_signature.vue @@ -56,16 +56,17 @@ - {{ t('redraw') }} @@ -86,13 +87,13 @@