Minor: fixed sample data overlapping issue (#18581)

This commit is contained in:
Shailesh Parmar 2024-11-11 17:48:30 +05:30 committed by GitHub
parent eeb27c3cbf
commit b59983d652
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -33,12 +33,13 @@ export const RowData = ({ data }: { data: SampleDataType }) => {
); );
} else if (isObject(data)) { } else if (isObject(data)) {
return ( return (
<Typography.Text <Typography.Paragraph
className="w-52 truncate cursor-pointer" className="w-52 cursor-pointer"
data-testid="json-object" data-testid="json-object"
ellipsis={{ rows: 4 }}
onClick={onOpen}> onClick={onOpen}>
{JSON.stringify(data)} {JSON.stringify(data)}
</Typography.Text> </Typography.Paragraph>
); );
} else { } else {
return ( return (

View File

@ -107,7 +107,7 @@ const SampleDataTable = ({
dataIndex: column, dataIndex: column,
key: column, key: column,
accessor: column, accessor: column,
width: 210, width: 250,
render: (data: SampleDataType) => <RowData data={data} />, render: (data: SampleDataType) => <RowData data={data} />,
}; };
}); });