Browse Source

fix(nc-gui): Link modal mobile UI fix

pull/6558/head
Muhammed Mustafa 1 year ago
parent
commit
d61b329a97
  1. 2
      packages/nc-gui/components/smartsheet/expanded-form/index.vue
  2. 4
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue
  3. 2
      packages/nc-gui/components/virtual-cell/components/ListItems.vue
  4. 1
      packages/nc-gui/lang/en.json

2
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -477,7 +477,7 @@ export default {
<div>{{ meta.title }}</div> <div>{{ meta.title }}</div>
</div> </div>
<NcButton <NcButton
v-if="!props.lastRow" v-if="props.showNextPrevIcons && !props.lastRow"
v-e="['c:row-expand:next']" v-e="['c:row-expand:next']"
type="secondary" type="secondary"
class="nc-next-arrow !w-10" class="nc-next-arrow !w-10"

4
packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

@ -278,7 +278,7 @@ const linkOrUnLink = (rowRef: Record<string, string>, id: string) => {
</div> </div>
</div> </div>
<div v-if="isMobileMode" class="flex flex-row justify-center items-center w-full mt-2"> <div v-if="isMobileMode" class="flex flex-row justify-center items-center w-full my-2">
<NcPagination <NcPagination
v-if="!isNew && childrenList?.pageInfo" v-if="!isNew && childrenList?.pageInfo"
v-model:current="childrenListPagination.page" v-model:current="childrenListPagination.page"
@ -320,7 +320,7 @@ const linkOrUnLink = (rowRef: Record<string, string>, id: string) => {
@click="emit('attachRecord')" @click="emit('attachRecord')"
> >
<div class="flex items-center gap-1"> <div class="flex items-center gap-1">
<MdiPlus class="!xs:hidden" /> {{ isMobileMode ? 'Link More' : $t('title.linkMoreRecords') }} <MdiPlus class="!xs:hidden" /> {{ isMobileMode ? $t('title.linkMore') : $t('title.linkMoreRecords') }}
</div> </div>
</NcButton> </NcButton>
</div> </div>

2
packages/nc-gui/components/virtual-cell/components/ListItems.vue

@ -284,7 +284,7 @@ onKeyStroke('Escape', () => {
</p> </p>
</div> </div>
<div v-if="isMobileMode" class="flex flex-row justify-center items-center w-full mt-2"> <div v-if="isMobileMode" class="flex flex-row justify-center items-center w-full my-2">
<NcPagination <NcPagination
v-if="childrenExcludedList?.pageInfo" v-if="childrenExcludedList?.pageInfo"
v-model:current="childrenExcludedListPagination.page" v-model:current="childrenExcludedListPagination.page"

1
packages/nc-gui/lang/en.json

@ -307,6 +307,7 @@
"hasMany": "Has Many", "hasMany": "Has Many",
"manyToMany": "Many to Many", "manyToMany": "Many to Many",
"virtualRelation": "Virtual Relation", "virtualRelation": "Virtual Relation",
"linkMore": "Link More",
"linkMoreRecords": "Link more records", "linkMoreRecords": "Link more records",
"downloadFile": "Download File", "downloadFile": "Download File",
"renameTable": "Rename Table", "renameTable": "Rename Table",

Loading…
Cancel
Save