Browse Source

fix: correct expanded form view behaviour

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5848/head
Pranav C 1 year ago
parent
commit
b66e0e42b3
  1. 34
      packages/nc-gui/components/virtual-cell/Link.vue

34
packages/nc-gui/components/virtual-cell/Link.vue

@ -67,25 +67,21 @@ const onAttachRecord = () => {
<template> <template>
<div class="flex w-full items-center"> <div class="flex w-full items-center">
<a @click.stop.prevent="childListDlg = true" class="text-center pl-3 flex-grow block" <template v-if="!isForm">
:class="{'!text-gray-300': !value}"> <a @click.stop.prevent="childListDlg = true" class="text-center pl-3 flex-grow block"
{{ textVal }} :class="{'!text-gray-300': !value}">
</a> {{ textVal }}
</a>
<div v-if="!isLocked && !isUnderLookup" class="flex justify-end gap-1 min-h-[30px] items-center">
<!-- <GeneralIcon--> <div v-if="!isLocked && !isUnderLookup" class="flex justify-end gap-1 min-h-[30px] items-center">
<!-- icon="expand"--> <GeneralIcon
<!-- class="select-none transform text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-arrow-expand"--> v-if="!readOnly && isUIAllowed('xcDatatableEditable')"
<!-- @click.stop="childListDlg = true"--> icon="plus"
<!-- />--> class="select-none text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-plus"
@click.stop="listItemsDlg = true"
<GeneralIcon />
v-if="!readOnly && isUIAllowed('xcDatatableEditable')" </div>
icon="plus" </template>
class="select-none text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-plus"
@click.stop="listItemsDlg = true"
/>
</div>
<LazyVirtualCellComponentsListItems v-model="listItemsDlg" :column="relatedTableDisplayColumn" /> <LazyVirtualCellComponentsListItems v-model="listItemsDlg" :column="relatedTableDisplayColumn" />

Loading…
Cancel
Save