UI : Fix the field size of column in Teams Table (#10594)

* Fix the field size of column in Teams Table

* change as per comments
This commit is contained in:
Ashish Gupta 2023-03-15 18:05:18 +05:30 committed by GitHub
parent 6f67cc4a78
commit bf0d26922e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@
* limitations under the License.
*/
import { Modal, Table } from 'antd';
import { Modal, Table, Typography } from 'antd';
import { ColumnsType } from 'antd/lib/table';
import { ExpandableConfig } from 'antd/lib/table/interface';
import { AxiosError } from 'axios';
@ -90,8 +90,18 @@ const TeamHierarchy: FC<TeamHierarchyProps> = ({
{
title: t('label.description'),
dataIndex: 'description',
width: 450,
key: 'description',
render: (description: string) => description || '--',
render: (description: string) => (
<Typography.Paragraph
className="m-b-0"
ellipsis={{
rows: 2,
}}
title={description}>
{isEmpty(description) ? '--' : description}
</Typography.Paragraph>
),
},
];
}, [data, onTeamExpand]);