diff --git a/packages/nc-gui/components/virtual-cell/components/ItemChip.vue b/packages/nc-gui/components/virtual-cell/components/ItemChip.vue index aa0c6be6be..a1afc98d60 100644 --- a/packages/nc-gui/components/virtual-cell/components/ItemChip.vue +++ b/packages/nc-gui/components/virtual-cell/components/ItemChip.vue @@ -9,7 +9,6 @@ import { inject, isAttachment, ref, - renderValue, useExpandedFormDetached, useLTARStoreOrThrow, } from '#imports' @@ -19,9 +18,10 @@ interface Props { item?: any column: any showUnlinkButton: boolean + border?: boolean } -const { value, item, column, showUnlinkButton } = defineProps() +const { value, item, column, showUnlinkButton, border = true } = defineProps() const emit = defineEmits(['unlink']) @@ -84,9 +84,8 @@ export default { class="min-w-max" :class="{ 'px-1 rounded-full flex-1': !isAttachment(column), - 'border-gray-200 rounded border-1': ![UITypes.Attachment, UITypes.MultiSelect, UITypes.SingleSelect].includes( - column.uidt, - ), + 'border-gray-200 rounded border-1': + border && ![UITypes.Attachment, UITypes.MultiSelect, UITypes.SingleSelect].includes(column.uidt), }" > diff --git a/packages/nc-gui/components/virtual-cell/components/ListChildItems.vue b/packages/nc-gui/components/virtual-cell/components/ListChildItems.vue index 3d313a066f..7f2e195622 100644 --- a/packages/nc-gui/components/virtual-cell/components/ListChildItems.vue +++ b/packages/nc-gui/components/virtual-cell/components/ListChildItems.vue @@ -148,7 +148,11 @@ const onClick = (row: Row) => { >
- +
@@ -210,6 +214,6 @@ const onClick = (row: Row) => { } :deep(.nc-nested-list-item .ant-card-body) { - @apply !p-2; + @apply !px-2 !py-1; } diff --git a/packages/nc-gui/components/virtual-cell/components/ListItems.vue b/packages/nc-gui/components/virtual-cell/components/ListItems.vue index 5c3563e71c..e0bf83886a 100644 --- a/packages/nc-gui/components/virtual-cell/components/ListItems.vue +++ b/packages/nc-gui/components/virtual-cell/components/ListItems.vue @@ -233,6 +233,7 @@ watch(vModel, (nextVal) => { :value="refRow[relatedTableDisplayValueProp]" :column="props.column" :show-unlink-button="false" + :border="false" /> @@ -283,6 +284,6 @@ watch(vModel, (nextVal) => { } :deep(.nc-nested-list-item .ant-card-body) { - @apply !p-2; + @apply !px-2 !py-1; }