This commit is contained in:
Malini 2026-01-21 09:31:03 +05:30
parent c928480566
commit a13ea7ffef
2 changed files with 8 additions and 3 deletions

View File

@ -307,7 +307,7 @@ const tableRows = filtered.map((item) => [
item?.quarter || '-',
item?.product_count || '-',
// Submitted By - get from created_by_name field
item?.created_by_name || '-',
<div className="break-words">{item?.created_by_name || '-'}</div>,
<span className="whitespace-nowrap">{formatDate(item?.created_at)}</span>,
renderStatusBadge(item?.status),
// Reviewer - show reviewer_name after approval/rejection, otherwise show '-'

View File

@ -190,8 +190,13 @@ const Table = ({
return (
<td
key={ci}
className={`px-6 h-12 text-sm text-[#232528] border-b border-[#C3C6CB] align-middle ${getCellClass ? getCellClass(ri, ci) : ''}`}
style={widthStyle}
className={`px-6 py-2 text-sm text-[#232528] border-b border-[#C3C6CB] align-top ${getCellClass ? getCellClass(ri, ci) : ''}`}
style={{
...widthStyle,
whiteSpace: 'normal',
wordWrap: 'break-word',
maxWidth: widthValue || '200px'
}}
>
{renderCell ? renderCell(cell, ri, ci) : cell}
</td>