Browse Source

feat(gui): set LTAR link table icon

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4630/head
Pranav C 2 years ago
parent
commit
2150eb8051
  1. 4
      packages/nc-gui/components/erd/TableNode.vue
  2. 4
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

4
packages/nc-gui/components/erd/TableNode.vue

@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { NodeProps } from '@vue-flow/core'
import { Handle, Position, useVueFlow } from '@vue-flow/core'
import { Position, useVueFlow } from '@vue-flow/core'
import type { LinkToAnotherRecordType } from 'nocodb-sdk'
import { UITypes, isVirtualCol } from 'nocodb-sdk'
import type { NodeData } from './utils'
@ -60,7 +60,7 @@ watch(
class="text-slate-600 text-md py-2 border-slate-500 rounded-t-lg w-full h-full px-3 font-semibold flex items-center"
>
<GeneralTableIcon class="text-primary" :meta="table" />
<div :class="showSkeleton ? 'text-6xl' : ''" class="flex px-2">
<div :class="showSkeleton ? 'text-6xl' : ''" class="flex pr-2 pl-1">
{{ table.title }}
</div>
</div>

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

@ -129,7 +129,9 @@ const onClick = (row: Row) => {
>
<div class="flex items-center gap-1">
<MdiLinkVariant class="text-xs" type="primary" />
Link to '{{ relatedTableMeta.title }}'
Link to '
<GeneralTableIcon :meta="relatedTableMeta" class="-mx-1 w-5" />
{{ relatedTableMeta.title }}'
</div>
</a-button>
</div>

Loading…
Cancel
Save