From b94e6bf54ad95d82fcb5831ab4361ca91e7e7fa4 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 26 Jul 2024 17:58:00 +0300 Subject: [PATCH] adjust font resize --- app/javascript/submission_form/area.vue | 4 ++-- app/javascript/template_builder/area.vue | 2 +- app/views/scripts/_autosize_field.html.erb | 2 +- app/views/submissions/_value.html.erb | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/javascript/submission_form/area.vue b/app/javascript/submission_form/area.vue index 19f79a81c..814eb9491 100644 --- a/app/javascript/submission_form/area.vue +++ b/app/javascript/submission_form/area.vue @@ -3,7 +3,7 @@ class="field-area flex absolute lg:text-base -outline-offset-1" dir="auto" :style="computedStyle" - :class="{ 'text-[1.5vw] lg:text-base': !textOverflowChars, 'text-[1.0vw] lg:text-xs': textOverflowChars, 'cursor-default': !submittable, 'border border-red-100 bg-red-100 cursor-pointer': submittable, 'border border-red-100': !isActive && submittable, 'bg-opacity-80': !isActive && !isValueSet && submittable, 'field-area-active outline-red-500 outline-dashed outline-2 z-10': isActive && submittable, 'bg-opacity-40': (isActive || isValueSet) && submittable }" + :class="{ 'text-[1.6vw] lg:text-base': !textOverflowChars, 'text-[1.0vw] lg:text-xs': textOverflowChars, 'cursor-default': !submittable, 'border border-red-100 bg-red-100 cursor-pointer': submittable, 'border border-red-100': !isActive && submittable, 'bg-opacity-80': !isActive && !isValueSet && submittable, 'field-area-active outline-red-500 outline-dashed outline-2 z-10': isActive && submittable, 'bg-opacity-40': (isActive || isValueSet) && submittable }" >
{{ attachment.filename }} diff --git a/app/javascript/template_builder/area.vue b/app/javascript/template_builder/area.vue index 143b78d06..123e12168 100644 --- a/app/javascript/template_builder/area.vue +++ b/app/javascript/template_builder/area.vue @@ -170,7 +170,7 @@ >
this.field.clientHeight) { - this.field.classList.remove('text-[1.5vw]', 'lg:text-base'); + this.field.classList.remove('text-[1.6vw]', 'lg:text-base'); this.field.classList.add('text-[1.0vw]', 'lg:text-[0.70rem]'); if (this.field.scrollHeight > this.field.clientHeight) { diff --git a/app/views/submissions/_value.html.erb b/app/views/submissions/_value.html.erb index ea1783911..115333929 100644 --- a/app/views/submissions/_value.html.erb +++ b/app/views/submissions/_value.html.erb @@ -1,5 +1,5 @@ <% align = field.dig('preferences', 'align') %> -"> +"> <% if field['type'] == 'signature' %>