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. 7
      packages/nc-gui/components/smartsheet/details/Fields.vue

7
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),
}" }"
/> />
<a-tooltip :title="fieldState(field)?.title || field.title">
<span <span
:class="{ :class="{
'text-brand-500': compareCols(field, activeField), 'text-brand-500': compareCols(field, activeField),
}" }"
class="truncate max-w-64" class="truncate flex-1"
> >
{{ fieldState(field)?.title || field.title }} {{ fieldState(field)?.title || field.title }}
</span> </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),
}" }"
/> />
<a-tooltip :title="fieldState(displayColumn)?.title || displayColumn.title">
<span <span
class="truncate flex-1"
:class="{ :class="{
'text-brand-500': compareCols(displayColumn, activeField), 'text-brand-500': compareCols(displayColumn, activeField),
}" }"
> >
{{ fieldState(displayColumn)?.title || displayColumn.title }} {{ fieldState(displayColumn)?.title || displayColumn.title }}
</span> </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