fix: Style issue with CSAT reports table (#11653)

This commit is contained in:
Sivin Varghese
2025-06-02 14:08:01 +05:30
committed by GitHub
parent 8fa039e1c5
commit a5fda8e118
2 changed files with 17 additions and 11 deletions

View File

@@ -25,10 +25,7 @@ defineProps({
:username="user.name" :username="user.name"
:status="user.availability_status" :status="user.availability_status"
/> />
<span <span class="my-0 truncate text-capitalize" :class="textClass">
class="my-0 overflow-hidden whitespace-nowrap text-ellipsis text-capitalize"
:class="textClass"
>
{{ user.name }} {{ user.name }}
</span> </span>
</div> </div>

View File

@@ -47,14 +47,17 @@ const tableData = computed(() => {
})); }));
}); });
const defaulSpanRender = cellProps => const defaultSpanRender = cellProps => {
h( const value = cellProps.getValue() || '---';
return h(
'span', 'span',
{ {
class: cellProps.getValue() ? '' : 'text-slate-300 dark:text-slate-700', class: 'line-clamp-5 break-words max-w-full text-n-slate-12',
title: value,
}, },
cellProps.getValue() ? cellProps.getValue() : '---' value
); );
};
const columnHelper = createColumnHelper(); const columnHelper = createColumnHelper();
@@ -65,7 +68,10 @@ const columns = [
cell: cellProps => { cell: cellProps => {
const { contact } = cellProps.row.original; const { contact } = cellProps.row.original;
if (contact) { if (contact) {
return h(UserAvatarWithName, { user: contact }); return h(UserAvatarWithName, {
user: contact,
class: 'max-w-[200px] overflow-hidden',
});
} }
return '--'; return '--';
}, },
@@ -76,7 +82,10 @@ const columns = [
cell: cellProps => { cell: cellProps => {
const { assignedAgent } = cellProps.row.original; const { assignedAgent } = cellProps.row.original;
if (assignedAgent) { if (assignedAgent) {
return h(UserAvatarWithName, { user: assignedAgent }); return h(UserAvatarWithName, {
user: assignedAgent,
class: 'max-w-[200px] overflow-hidden',
});
} }
return '--'; return '--';
}, },
@@ -105,7 +114,7 @@ const columns = [
columnHelper.accessor('feedbackText', { columnHelper.accessor('feedbackText', {
header: t('CSAT_REPORTS.TABLE.HEADER.FEEDBACK_TEXT'), header: t('CSAT_REPORTS.TABLE.HEADER.FEEDBACK_TEXT'),
width: 400, width: 400,
cell: defaulSpanRender, cell: defaultSpanRender,
}), }),
columnHelper.accessor('conversationId', { columnHelper.accessor('conversationId', {
header: '', header: '',