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)) {
return (
<Typography.Text
className="w-52 truncate cursor-pointer"
<Typography.Paragraph
className="w-52 cursor-pointer"
data-testid="json-object"
ellipsis={{ rows: 4 }}
onClick={onOpen}>
{JSON.stringify(data)}
</Typography.Text>
</Typography.Paragraph>
);
} else {
return (

View File

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