Skip to content

Commit c51defd

Browse files
authored
Merge pull request #1328 from david-roper/fix-subject-overflow
Fix subject Id overflow in datahub table
2 parents 357890f + 4a2fd4f commit c51defd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

apps/web/src/routes/_app/datahub/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,14 @@ const MasterDataTable: React.FC<{
307307
<DataTable
308308
columns={[
309309
{
310-
accessorFn: (subject) => removeSubjectIdScope(subject.id).slice(0, subjectIdDisplaySetting ?? 9),
310+
accessorFn: (subject) => removeSubjectIdScope(subject.id),
311+
cell: (ctx) => (
312+
<div className="grid">
313+
<div className="min-w-0 overflow-x-auto whitespace-nowrap" title={ctx.getValue() as string}>
314+
{(ctx.getValue() as string).slice(0, subjectIdDisplaySetting ?? 9)}
315+
</div>
316+
</div>
317+
),
311318
header: t('datahub.index.table.subject'),
312319
id: 'subjectId'
313320
},

0 commit comments

Comments
 (0)