From acb730f9b0eef8c432dfc6f05b991d2187085710 Mon Sep 17 00:00:00 2001 From: Alisher Musurmonov Date: Wed, 1 Nov 2023 18:13:13 +0500 Subject: [PATCH] add column width for better table view --- lib/DonorsList/DonorsList.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/DonorsList/DonorsList.js b/lib/DonorsList/DonorsList.js index a9855ada..2b005753 100644 --- a/lib/DonorsList/DonorsList.js +++ b/lib/DonorsList/DonorsList.js @@ -103,7 +103,11 @@ AddDonorButton.propTypes = { }; const alignRowProps = { alignLastColToEnd: true }; - +const columnWidths = { + name: '45%', + code: '45%', + unassignDonor: '10%', +}; const DonorsList = ({ fetchDonors, fields, donorsMap, id }) => { const intl = useIntl(); const stripes = useStripes(); @@ -143,6 +147,7 @@ const DonorsList = ({ fetchDonors, fields, donorsMap, id }) => { rowFormatter={anchoredRowFormatter} rowProps={alignRowProps} visibleColumns={visibleColumns} + columnWidths={columnWidths} />