make custom fields titles smaller on mobile devices

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2025-01-31 15:19:04 +02:00
1 parent 6d2a8ca3d3
commit 5bed6448dc
12 files changed
+78 -42

No files matched your search

+10 -4
View File
@@ -5,18 +5,24 @@
:class="{ 'mb-2': !field.description }"
>
<label
v-if="showFieldNames"
:for="field.uuid"
class="label text-2xl"
class="label text-lg sm:text-2xl"
>
<MarkdownContent
v-if="field.title"
:string="field.title"
/>
<template v-else>
{{ field.name && showFieldNames ? field.name : t('date') }}
<template v-if="!field.required">
{{ field.name || t('date') }}
</template>
<template v-if="!field.required">
<span
class="ml-1"
:class="{ 'hidden sm:inline': (field.title || field.name || t('date') ).length > 10 }"
>
({{ t('optional') }})
</template>
</span>
</template>
</label>
<button