support the android app

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2026-10-28 10:47:26 +02:00
1 parent 8334b612a8
commit a0ecc8e823
16 files changed
+28 -28

No files matched your search

@@ -36,7 +36,7 @@
<CropView
v-if="cropPageItem"
class="absolute inset-0 z-10 bg-base-100"
:style="inline ? { paddingTop: '70px' } : null"
:style="inline && nativePlatform === 'ios' ? { paddingTop: '70px' } : null"
:template-id="template.id"
:page="cropPageItem"
:image-url="thumbUrl(cropPageItem)"
@@ -47,7 +47,7 @@
<RedactView
v-else-if="redactPageItem"
class="absolute inset-0 z-10 bg-base-100"
:style="inline ? { paddingTop: '70px' } : null"
:style="inline && nativePlatform === 'ios' ? { paddingTop: '70px' } : null"
:template-id="template.id"
:page="redactPageItem"
:image-url="thumbUrl(redactPageItem)"
@@ -63,14 +63,14 @@
>
<div
class="flex-1 overflow-y-auto overflow-x-hidden px-4 md:px-6 py-4 space-y-4"
:style="inline ? { paddingTop: '86px' } : null"
:style="inline && nativePlatform === 'ios' ? { paddingTop: '86px' } : null"
>
<div
v-for="(doc, docIndex) in layout"
:key="doc.attachmentUuid"
:data-uuid="doc.attachmentUuid"
class="relative"
:style="inline ? { scrollMarginTop: '86px' } : null"
:style="inline && nativePlatform === 'ios' ? { scrollMarginTop: '86px' } : null"
>
<div
class="flex items-center pb-2"
@@ -191,7 +191,7 @@
:key="page.id"
:data-page-id="page.id"
class="relative min-w-0 cursor-pointer group"
:style="inline ? { scrollMarginTop: '86px' } : null"
:style="inline && nativePlatform === 'ios' ? { scrollMarginTop: '86px' } : null"
draggable="true"
@click="selectedPageId = page.id"
@mousedown="onPageMousedown(page, $event)"
@@ -419,7 +419,7 @@ export default {
IconEraser,
IconCrop
},
inject: ['t', 'baseFetch'],
inject: ['t', 'baseFetch', 'nativePlatform'],
props: {
template: {
type: Object,
@@ -608,10 +608,10 @@ export default {
return !['stamp', 'heading', 'strikethrough'].includes(this.field.type)
},
showCondition () {
return this.withCondition && (this.withConditions || this.nativePlatform !== 'ios') && !['stamp', 'heading'].includes(this.field.type)
return this.withCondition && (this.withConditions || !this.nativePlatform) && !['stamp', 'heading'].includes(this.field.type)
},
showFormula () {
return (this.field.type === 'number' || this.field.type === 'date' || this.field.type === 'payment' || !!this.field.preferences?.formula) && (this.withFormula || this.nativePlatform !== 'ios')
return (this.field.type === 'number' || this.field.type === 'date' || this.field.type === 'payment' || !!this.field.preferences?.formula) && (this.withFormula || !this.nativePlatform)
},
showRequired () {
return this.withRequired && !['phone', 'stamp', 'verification', 'strikethrough', 'heading'].includes(this.field.type)
@@ -484,7 +484,7 @@
</label>
</li>
<li
v-if="withCondition && (withConditions || nativePlatform !== 'ios') && field.type != 'stamp' && field.type != 'heading'"
v-if="withCondition && (withConditions || !nativePlatform) && field.type != 'stamp' && field.type != 'heading'"
class="field-settings-condition"
>
<label
@@ -500,7 +500,7 @@
</label>
</li>
<li
v-if="(field.type == 'number' || field.type == 'date' || field.preferences?.formula) && (withFormula || nativePlatform !== 'ios')"
v-if="(field.type == 'number' || field.type == 'date' || field.preferences?.formula) && (withFormula || !nativePlatform)"
class="field-settings-formula"
>
<label
+1 -1
View File
@@ -275,7 +275,7 @@
</div>
</button>
<div
v-else-if="type == 'phone' && nativePlatform !== 'ios' && (fieldTypes.length === 0 || fieldTypes.includes(type))"
v-else-if="type == 'phone' && !nativePlatform && (fieldTypes.length === 0 || fieldTypes.includes(type))"
class="tooltip tooltip-bottom flex"
:class="{'tooltip-bottom-end': withPayment, 'tooltip-bottom': !withPayment }"
:data-tip="t('unlock_sms_verified_phone_number_field_with_paid_plan_use_text_field_for_phone_numbers_without_verification')"
@@ -203,7 +203,7 @@
>{{ t('learn_more') }}</a>
</div>
<li
v-if="withFormula || nativePlatform !== 'ios'"
v-if="withFormula || !nativePlatform"
class="field-settings-formula mb-1"
>
<label
@@ -233,7 +233,7 @@
</label>
</li>
<li
v-if="withCondition && (withConditions || nativePlatform !== 'ios')"
v-if="withCondition && (withConditions || !nativePlatform)"
class="field-settings-condition mt-1"
>
<label
@@ -259,7 +259,7 @@ export default {
return true
},
showCondition () {
return this.withCondition && (this.withConditions || this.nativePlatform !== 'ios')
return this.withCondition && (this.withConditions || !this.nativePlatform)
},
fieldNames: FieldType.computed.fieldNames,
fieldLabels: FieldType.computed.fieldLabels