Browse Source

fix(nc-gui): calendar tooltips not showing fix(nc-gui): handle ltar (#8870)

Co-authored-by: DarkPhoenix2704 <anbarasun123@gmail.com>
pull/8871/head
Raju Udava 5 months ago committed by GitHub
parent
commit
43df1a0033
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/nc-gui/components/smartsheet/PlainCell.vue
  2. 8
      packages/nc-gui/components/smartsheet/calendar/RecordCard.vue

2
packages/nc-gui/components/smartsheet/PlainCell.vue

@ -319,7 +319,7 @@ const parseValue = (value: any, col: ColumnType): string => {
if (isRollup(col)) { if (isRollup(col)) {
return getRollupValue(value, col) return getRollupValue(value, col)
} }
if (isLookup(col)) { if (isLookup(col) || isLTAR(col.uidt, col.colOptions)) {
return getLookupValue(value, col) return getLookupValue(value, col)
} }
if (isCreatedOrLastModifiedTimeCol(col)) { if (isCreatedOrLastModifiedTimeCol(col)) {

8
packages/nc-gui/components/smartsheet/calendar/RecordCard.vue

@ -74,19 +74,19 @@ const emit = defineEmits(['resize-start'])
<div class="overflow-hidden items-center justify-center gap-2 flex w-full"> <div class="overflow-hidden items-center justify-center gap-2 flex w-full">
<span v-if="position === 'rightRounded' || position === 'none'" class="ml-2"> .... </span> <span v-if="position === 'rightRounded' || position === 'none'" class="ml-2"> .... </span>
<slot name="time" /> <slot name="time" />
<span <div
:class="{ :class="{
'pr-7': position === 'leftRounded', 'pr-7': position === 'leftRounded',
}" }"
class="text-sm mb-0.5 break-word whitespace-nowrap overflow-hidden text-ellipsis w-full truncate text-gray-800" class="flex mb-0.5 overflow-x-hidden break-word whitespace-nowrap overflow-hidden text-ellipsis w-full truncate text-ellipsis flex-col gap-1"
> >
<NcTooltip :disabled="selected" class="inline-block" show-on-truncate-only wrap-child="span"> <NcTooltip :disabled="selected" class="inline-block" show-on-truncate-only wrap-child="span">
<slot /> <slot class="text-sm text-nowrap text-gray-800 leading-7" />
<template #title> <template #title>
<slot /> <slot />
</template> </template>
</NcTooltip> </NcTooltip>
</span> </div>
<span v-if="position === 'leftRounded' || position === 'none'" class="absolute my-0 right-5"> .... </span> <span v-if="position === 'leftRounded' || position === 'none'" class="absolute my-0 right-5"> .... </span>
</div> </div>

Loading…
Cancel
Save