Browse Source

fix : UI improvements

pull/3082/head
Naveen MR 2 years ago
parent
commit
bc010182e8
  1. 12
      packages/nc-gui-v2/components/dlg/AirtableImport.vue
  2. 6
      packages/nc-gui-v2/components/dlg/QuickImport.vue

12
packages/nc-gui-v2/components/dlg/AirtableImport.vue

@ -224,7 +224,7 @@ onBeforeUnmount(() => {
</script>
<template>
<a-modal v-model:visible="dialogShow" width="max(30vw, 600px)" :mask-closable="false" @keydown.esc="dialogShow = false">
<a-modal v-model:visible="dialogShow" width="max(30vw, 600px)" :mask-closable="false" @keydown.esc="dialogShow = false" class="pa-2">
<template #footer>
<div v-if="step === 1">
<a-button key="back" @click="dialogShow = false">{{ $t('general.cancel') }}</a-button>
@ -239,15 +239,15 @@ onBeforeUnmount(() => {
</a-button>
</div>
</template>
<a-typography-title class="ml-5 mt-5" type="secondary" :level="5">QUICK IMPORT - AIRTABLE</a-typography-title>
<span class="ml-5 mt-5 prose-xl font-weight-bold" type="secondary" :level="5">QUICK IMPORT - AIRTABLE</span>
<div class="ml-5 mr-5">
<a-divider />
<div v-if="step === 1">
<div class="mb-4">
<span class="prose-xl font-bold mr-3">Credentials</span>
<span class="mr-3 pt-2 text-gray-500 text-xs">Credentials</span>
<a
href="https://docs.nocodb.com/setup-and-usages/import-airtable-to-sql-database-within-a-minute-for-free/#get-airtable-credentials"
class="prose-sm underline text-grey"
class="prose-sm underline text-grey text-xs"
target="_blank"
>Where to find this?
</a>
@ -269,7 +269,7 @@ onBeforeUnmount(() => {
size="large"
/>
</a-form-item>
<span class="prose-xl font-bold self-center my-4">Advanced Settings</span>
<span class="prose-lg self-center my-4 text-gray-500">Advanced Settings</span>
<a-divider class="mt-2 mb-5" />
<div class="mt-0 my-2">
<a-checkbox v-model:checked="syncSource.details.options.syncData">Import Data</a-checkbox>

6
packages/nc-gui-v2/components/dlg/QuickImport.vue

@ -235,7 +235,7 @@ function getAdapter(name: string, val: any) {
<template>
<a-modal v-model:visible="dialogShow" :width="modalWidth" :mask-closable="false" @keydown.esc="dialogShow = false">
<a-typography-title class="ml-5 mt-5 mb-5" type="secondary" :level="5">{{ importMeta.header }}</a-typography-title>
<span class="prose-xl font-weight-bold ml-5 mt-5 mb-5" type="secondary" :level="5">{{ importMeta.header }}</span>
<template #footer>
<a-button v-if="templateEditorModal" key="back" @click="templateEditorModal = false">Back</a-button>
<a-button v-else key="cancel" @click="dialogShow = false">{{ $t('general.cancel') }}</a-button>
@ -260,7 +260,7 @@ function getAdapter(name: string, val: any) {
$t('activity.import')
}}</a-button>
</template>
<div class="ml-5 mr-5">
<div class="ml-5 mr-5 mt-5">
<TemplateEditor
v-if="templateEditorModal"
ref="templateEditorRef"
@ -330,7 +330,7 @@ function getAdapter(name: string, val: any) {
<div v-if="!templateEditorModal" class="ml-5 mr-5">
<a-divider />
<div class="mb-4">
<span class="prose-xl font-bold">Advanced Settings</span>
<span class="prose-lg">Advanced Settings</span>
<a-form-item class="mt-4 mb-2" :label="t('msg.info.footMsg')" v-bind="validateInfos.maxRowsToParse">
<a-input-number v-model:value="importState.parserConfig.maxRowsToParse" :min="1" :max="50000" />
</a-form-item>

Loading…
Cancel
Save