Browse Source

fix(nc-gui): show column title on hover field in form view right pannel

pull/7664/head
Ramesh Mane 9 months ago
parent
commit
24aee43509
  1. 19
      packages/nc-gui/components/smartsheet/Form.vue

19
packages/nc-gui/components/smartsheet/Form.vue

@ -719,7 +719,9 @@ useEventListener(
<span data-testid="nc-form-input-label"> <span data-testid="nc-form-input-label">
{{ element.label || element.title }} {{ element.label || element.title }}
</span> </span>
<span v-if="isRequired(element, element.required)" class="text-red-500 text-base leading-[18px]">&nbsp;*</span> <span v-if="isRequired(element, element.required)" class="text-red-500 text-base leading-[18px]"
>&nbsp;*</span
>
</div> </div>
<div class="nc-form-help-text text-gray-500 text-sm mt-2" data-testid="nc-form-help-text"> <div class="nc-form-help-text text-gray-500 text-sm mt-2" data-testid="nc-form-help-text">
@ -1038,15 +1040,20 @@ useEventListener(
> >
<component :is="iconMap.drag" class="flex-none cursor-move !h-4 !w-4 text-gray-600 mr-1" /> <component :is="iconMap.drag" class="flex-none cursor-move !h-4 !w-4 text-gray-600 mr-1" />
<div <div
class="flex-1 flex items-center justify-between space-x-2 cursor-pointer max-w-[calc(100%_-_20px)]" class="flex-1 flex items-center justify-between space-x-6 cursor-pointer max-w-[calc(100%_-_20px)]"
@click="showOrHideColumn(field, !field.show, true)" @click="showOrHideColumn(field, !field.show, true)"
> >
<div class="flex-1 flex items-center max-w-[calc(100%_-_40px)]"> <div class="flex-1 flex items-center max-w-[calc(100%_-_56px)]">
<NcTooltip class="truncate ml-1">
<template #title>
<div class="flex items-center space-x-1">
<SmartsheetHeaderVirtualCellIcon v-if="field && isVirtualCol(field)" :column-meta="field" /> <SmartsheetHeaderVirtualCellIcon v-if="field && isVirtualCol(field)" :column-meta="field" />
<SmartsheetHeaderCellIcon v-else :column-meta="field" /> <SmartsheetHeaderCellIcon v-else :column-meta="field" />
<span class="text-xs font-medium">
<NcTooltip class="truncate ml-1" show-on-truncate-only> {{ field.title }}
<template #title> {{ field.label || field.title }} </template> </span>
</div>
</template>
<span data-testid="nc-field-title"> <span data-testid="nc-field-title">
{{ field.label || field.title }} {{ field.label || field.title }}
</span> </span>

Loading…
Cancel
Save