Browse Source

fix(nc-gui): submit another form btn ui

pull/7664/head
Ramesh Mane 9 months ago
parent
commit
65d0ba5843
  1. 16
      packages/nc-gui/components/smartsheet/Form.vue

16
packages/nc-gui/components/smartsheet/Form.vue

@ -493,12 +493,12 @@ useEventListener(
class="transition-all duration-300 ease-in relative max-w-[max(33%,688px)] mx-auto my-6 bg-white rounded-3xl border-1 border-gray-200 px-4 py-8 lg:p-12 md:(p-8 dark:bg-slate-700)" class="transition-all duration-300 ease-in relative max-w-[max(33%,688px)] mx-auto my-6 bg-white rounded-3xl border-1 border-gray-200 px-4 py-8 lg:p-12 md:(p-8 dark:bg-slate-700)"
> >
<div v-if="formViewData" class="items-center justify-center text-center mt-2"> <div v-if="formViewData" class="items-center justify-center text-center mt-2">
<div class="text-left"> <div>
<h1 class="prose-2xl font-bold mb-4"> <h1 class="text-2xl font-bold text-gray-900 mb-4">
{{ formViewData.heading }} {{ formViewData.heading }}
</h1> </h1>
<h2 v-if="formViewData.subheading" class="prose-lg text-slate-500 dark:text-slate-300 mb-4 leading-6"> <h2 v-if="formViewData.subheading" class="font-bold text-base text-gray-500 mb-4">
{{ formViewData.subheading }} {{ formViewData.subheading }}
</h2> </h2>
</div> </div>
@ -522,8 +522,8 @@ useEventListener(
</div> </div>
<div v-if="formViewData.submit_another_form || !isPublic" class="text-center mt-4"> <div v-if="formViewData.submit_another_form || !isPublic" class="text-center mt-4">
<a-button type="primary" size="large" @click="submitted = false"> <NcButton type="primary" size="medium" @click="submitted = false">
{{ $t('activity.submitAnotherForm') }}</a-button {{ $t('activity.submitAnotherForm') }}</NcButton
> >
</div> </div>
</div> </div>
@ -607,7 +607,7 @@ useEventListener(
/> />
</a-form-item> </a-form-item>
<div v-else class="text-bold text-2xl text-gray-900"> <div v-else class="font-bold text-2xl text-gray-900">
{{ formViewData.heading }} {{ formViewData.heading }}
</div> </div>
</div> </div>
@ -634,7 +634,7 @@ useEventListener(
<a-form-item v-if="isEditable" class="w-full !my-0"> <a-form-item v-if="isEditable" class="w-full !my-0">
<a-textarea <a-textarea
v-model:value="formViewData.subheading" v-model:value="formViewData.subheading"
class="nc-form-focus-element w-full !p-0 !m-0 !border-0 !rounded-none !text-gray-500" class="nc-form-focus-element w-full !p-0 !m-0 !border-0 !rounded-none font-bold !text-gray-500"
:style="{ :style="{
borderRightWidth: '0px !important', borderRightWidth: '0px !important',
resize: 'vertical', resize: 'vertical',
@ -652,7 +652,7 @@ useEventListener(
/> />
</a-form-item> </a-form-item>
<div v-else class="text-bold text-base text-gray-500"> <div v-else class="font-bold text-base text-gray-500">
{{ formViewData.subheading || '---' }} {{ formViewData.subheading || '---' }}
</div> </div>
</div> </div>

Loading…
Cancel
Save