make custom fields titles smaller on mobile devices

This commit is contained in:
Alex Turchyn
2025-01-27 13:30:34 +02:00
committed by Pete Matsyburka
parent 6d2a8ca3d3
commit 5bed6448dc
12 changed files with 78 additions and 42 deletions
+13 -3
View File
@@ -2,8 +2,18 @@
<div v-if="modelValue">
<div class="flex justify-between items-center w-full mb-2">
<label
class="label text-2xl"
>{{ showFieldNames && field.name ? field.name : t('image') }}</label>
v-if="showFieldNames"
:for="field.uuid"
class="label text-lg sm:text-2xl"
>
<MarkdownContent
v-if="field.title"
:string="field.title"
/>
<template v-else>
{{ field.name || t('image') }}
</template>
</label>
<button
class="btn btn-outline btn-sm"
@click.prevent="remove"
@@ -35,7 +45,7 @@
<MarkdownContent :string="field.description" />
</div>
<FileDropzone
:message="`${t('upload')} ${field.name || t('image')}${field.required ? '' : ` (${t('optional')})`}`"
:message="`${t('upload')} ${(field.title || field.name) || t('image')}${field.required ? '' : ` (${t('optional')})`}`"
:submitter-slug="submitterSlug"
:dry-run="dryRun"
:accept="'image/*'"