From d0744cce23fbee66955cf094c50cce1edf5b130a Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 11 Aug 2024 19:42:23 +0300 Subject: [PATCH] Fixed actions column width for import list exclusions --- frontend/src/Components/Table/Table.js | 5 ++++- .../ImportListExclusions/ImportListExclusion.css.d.ts | 7 ------- .../ImportListExclusions/ImportListExclusions.css | 6 ++++++ .../ImportListExclusions/ImportListExclusions.css.d.ts | 3 +-- .../ImportListExclusions/ImportListExclusions.tsx | 6 +++++- 5 files changed, 16 insertions(+), 11 deletions(-) delete mode 100644 frontend/src/Settings/ImportLists/ImportListExclusions/ImportListExclusion.css.d.ts create mode 100644 frontend/src/Settings/ImportLists/ImportListExclusions/ImportListExclusions.css diff --git a/frontend/src/Components/Table/Table.js b/frontend/src/Components/Table/Table.js index 8afbf9ea0..4c970e469 100644 --- a/frontend/src/Components/Table/Table.js +++ b/frontend/src/Components/Table/Table.js @@ -66,7 +66,9 @@ function Table(props) { columns.map((column) => { const { name, - isVisible + isVisible, + isSortable, + ...otherColumnProps } = column; if (!isVisible) { @@ -84,6 +86,7 @@ function Table(props) { name={name} isSortable={false} {...otherProps} + {...otherColumnProps} > translate('Title'), @@ -52,7 +54,9 @@ const COLUMNS = [ isSortable: true, }, { + className: styles.actions, name: 'actions', + label: '', isVisible: true, isSortable: false, },