From 9207eda4c98368d9b747fb3ccff4a37b70b60fc7 Mon Sep 17 00:00:00 2001 From: musharaf Date: Thu, 30 Nov 2023 11:59:51 +0530 Subject: [PATCH] fix : Used NcTooltip --- .../components/smartsheet/details/Fields.vue | 34 ++++++++++--------- .../components/smartsheet/header/Cell.vue | 28 ++++++++------- .../smartsheet/header/VirtualCell.vue | 11 +++--- 3 files changed, 39 insertions(+), 34 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/details/Fields.vue b/packages/nc-gui/components/smartsheet/details/Fields.vue index 2888bde0b6..97e399ed76 100644 --- a/packages/nc-gui/components/smartsheet/details/Fields.vue +++ b/packages/nc-gui/components/smartsheet/details/Fields.vue @@ -814,16 +814,17 @@ const onFieldOptionUpdate = () => { 'text-brand-500': compareCols(field, activeField), }" /> - - + + + {{ fieldState(field)?.title || field.title }} - +
@@ -972,16 +973,17 @@ const onFieldOptionUpdate = () => { 'text-brand-500': compareCols(displayColumn, activeField), }" /> - - + + + {{ fieldState(displayColumn)?.title || displayColumn.title }} - +
diff --git a/packages/nc-gui/components/smartsheet/header/Cell.vue b/packages/nc-gui/components/smartsheet/header/Cell.vue index 6dc9a9f6eb..aac782f56c 100644 --- a/packages/nc-gui/components/smartsheet/header/Cell.vue +++ b/packages/nc-gui/components/smartsheet/header/Cell.vue @@ -90,20 +90,22 @@ const onClick = (e: Event) => { 'self-start': isForm || isSurveyForm, }" /> - -
+ + + + {{ column.title }} -
-
+ +  * diff --git a/packages/nc-gui/components/smartsheet/header/VirtualCell.vue b/packages/nc-gui/components/smartsheet/header/VirtualCell.vue index 3722aac3c5..1dbe0a3752 100644 --- a/packages/nc-gui/components/smartsheet/header/VirtualCell.vue +++ b/packages/nc-gui/components/smartsheet/header/VirtualCell.vue @@ -92,6 +92,7 @@ const tooltipMsg = computed(() => { if (!column.value) { return '' } + if (isHm(column.value)) { return `'${tableTile.value}' ${t('labels.hasMany')} '${relatedTableTitle.value}'` } else if (isMm(column.value)) { @@ -110,7 +111,7 @@ const tooltipMsg = computed(() => { } else if (isRollup(column.value)) { return `'${childColumn.value.title}' of '${relatedTableTitle.value}' (${childColumn.value.uidt})` } - return '' + return column?.value?.title || '' }) const columnOrder = ref | null>(null) @@ -153,14 +154,14 @@ const openDropDown = (e: Event) => { > - + - + {{ column.title }} - +  * @@ -205,4 +206,4 @@ const openDropDown = (e: Event) => { max-width: calc(100% - 40px); word-break: break-all; } - \ No newline at end of file +