diff --git a/app/javascript/template_builder/contenteditable.vue b/app/javascript/template_builder/contenteditable.vue index f737edb5..b6dcd909 100644 --- a/app/javascript/template_builder/contenteditable.vue +++ b/app/javascript/template_builder/contenteditable.vue @@ -8,7 +8,7 @@ dir="auto" :contenteditable="editable" style="min-width: 2px" - :class="iconInline ? 'inline' : 'block'" + :class="[iconInline ? 'inline' : 'block', hideIcon ? 'focus:block' : '']" class="peer outline-none" @paste.prevent="onPaste" @keydown.enter.prevent="blurContenteditable" @@ -18,22 +18,19 @@ {{ value }} - * + - @@ -67,7 +64,7 @@ export default { required: false, default: true }, - withRequired: { + floatIcon: { type: Boolean, required: false, default: false diff --git a/app/javascript/template_builder/field_submitter.vue b/app/javascript/template_builder/field_submitter.vue index 9f77e878..b22d3036 100644 --- a/app/javascript/template_builder/field_submitter.vue +++ b/app/javascript/template_builder/field_submitter.vue @@ -52,7 +52,7 @@ > @@ -100,7 +100,7 @@ class="cursor-pointer text-base-100 flex h-full items-center justify-center" > @@ -108,11 +108,11 @@ v-else ref="label" tabindex="0" - class="group cursor-pointer group/contenteditable-container rounded-md p-2 border border-base-300 hover:border-content w-full flex justify-between" + class="group cursor-pointer group/contenteditable-container rounded-md p-2 border border-base-300 hover:border-content w-full flex justify-between items-center" > - + @@ -164,7 +164,7 @@ v-if="!compact && submitters.length > 1 && editable" class="flex" > - + diff --git a/app/javascript/template_builder/google_drive_document_settings.vue b/app/javascript/template_builder/google_drive_document_settings.vue index 8fa2fe93..fd54a1fd 100644 --- a/app/javascript/template_builder/google_drive_document_settings.vue +++ b/app/javascript/template_builder/google_drive_document_settings.vue @@ -4,7 +4,10 @@ :class="{ 'dropdown-open': isLoading }" > - + - + @@ -63,7 +63,7 @@ class="tooltip tooltip-left before:text-xs" > ↑ @@ -105,7 +105,8 @@ :model-value="item.name" :icon-width="16" :icon-inline="true" - :hide-icon="false" + :float-icon="!item.google_drive_file_id" + :hide-icon="!item.google_drive_file_id" :editable="editable" class="mx-auto" @update:model-value="onUpdateName"