Skip to content

Commit

Permalink
add column width for better table view
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Nov 1, 2023
1 parent 9afb133 commit acb730f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/DonorsList/DonorsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -143,6 +147,7 @@ const DonorsList = ({ fetchDonors, fields, donorsMap, id }) => {
rowFormatter={anchoredRowFormatter}
rowProps={alignRowProps}
visibleColumns={visibleColumns}
columnWidths={columnWidths}
/>
<br />
<AddDonorButton
Expand Down

0 comments on commit acb730f

Please sign in to comment.