Skip to content

Commit

Permalink
feat: update package conditions table styles (#209)
Browse files Browse the repository at this point in the history
This changes updates the styles of the Package Conditions Table.
  • Loading branch information
ChristopherFry committed Nov 11, 2022
1 parent e10b3ca commit d24c609
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ const renderStatusColumn = (row: ConditionRow): JSX.Element => {
};

const getTableColumns = (): TableColumn<ConditionRow>[] => {
const cellStyle = { lineHeight: '1.5' };

const columns: TableColumn<ConditionRow>[] = [
{ title: 'Type', field: 'type' },
{ title: 'Status', render: renderStatusColumn },
{ title: 'Reason', field: 'reason' },
{ title: 'Message', field: 'message' },
{ title: 'Status', render: renderStatusColumn, width: '115px' },
{ title: 'Type', field: 'type', width: 'fit-content', cellStyle },
{ title: 'Reason', field: 'reason', width: 'fit-content', cellStyle },
{ title: 'Message', field: 'message', width: '35vw', cellStyle },
];

return columns;
Expand Down

0 comments on commit d24c609

Please sign in to comment.