Browse Source

fix : fixed truncate for field names and added tooltip in details tab

pull/7114/head
musharaf 12 months ago
parent
commit
5e9a7435ca
  1. 35
      packages/nc-gui/components/smartsheet/details/Fields.vue

35
packages/nc-gui/components/smartsheet/details/Fields.vue

@ -814,14 +814,16 @@ const onFieldOptionUpdate = () => {
'text-brand-500': compareCols(field, activeField), 'text-brand-500': compareCols(field, activeField),
}" }"
/> />
<span <a-tooltip :title="fieldState(field)?.title || field.title">
:class="{ <span
'text-brand-500': compareCols(field, activeField), :class="{
}" 'text-brand-500': compareCols(field, activeField),
class="truncate max-w-64" }"
> class="truncate flex-1"
{{ fieldState(field)?.title || field.title }} >
</span> {{ fieldState(field)?.title || field.title }}
</span>
</a-tooltip>
</div> </div>
<div class="flex items-center justify-end gap-1"> <div class="flex items-center justify-end gap-1">
<div class="flex items-center"> <div class="flex items-center">
@ -970,13 +972,16 @@ const onFieldOptionUpdate = () => {
'text-brand-500': compareCols(displayColumn, activeField), 'text-brand-500': compareCols(displayColumn, activeField),
}" }"
/> />
<span <a-tooltip :title="fieldState(displayColumn)?.title || displayColumn.title">
:class="{ <span
'text-brand-500': compareCols(displayColumn, activeField), class="truncate flex-1"
}" :class="{
> 'text-brand-500': compareCols(displayColumn, activeField),
{{ fieldState(displayColumn)?.title || displayColumn.title }} }"
</span> >
{{ fieldState(displayColumn)?.title || displayColumn.title }}
</span>
</a-tooltip>
</div> </div>
<div class="flex items-center justify-end gap-1"> <div class="flex items-center justify-end gap-1">
<div class="flex items-center"> <div class="flex items-center">

Loading…
Cancel
Save