Fixed actions column width for import list exclusions

This commit is contained in:
Bogdan 2024-08-11 19:42:23 +03:00
parent 5d233b4607
commit d0744cce23
5 changed files with 16 additions and 11 deletions

View File

@ -66,7 +66,9 @@ function Table(props) {
columns.map((column) => { columns.map((column) => {
const { const {
name, name,
isVisible isVisible,
isSortable,
...otherColumnProps
} = column; } = column;
if (!isVisible) { if (!isVisible) {
@ -84,6 +86,7 @@ function Table(props) {
name={name} name={name}
isSortable={false} isSortable={false}
{...otherProps} {...otherProps}
{...otherColumnProps}
> >
<TableOptionsModalWrapper <TableOptionsModalWrapper
columns={columns} columns={columns}

View File

@ -1,7 +0,0 @@
// This file is automatically generated.
// Please do not change this file!
interface CssExports {
'actions': string;
}
export const cssExports: CssExports;
export default cssExports;

View File

@ -0,0 +1,6 @@
.actions {
composes: headerCell from '~Components/Table/TableHeaderCell.css';
width: 35px;
white-space: nowrap;
}

View File

@ -1,8 +1,7 @@
// This file is automatically generated. // This file is automatically generated.
// Please do not change this file! // Please do not change this file!
interface CssExports { interface CssExports {
'addButton': string; 'actions': string;
'addImportListExclusion': string;
} }
export const cssExports: CssExports; export const cssExports: CssExports;
export default cssExports; export default cssExports;

View File

@ -8,6 +8,7 @@ import SpinnerButton from 'Components/Link/SpinnerButton';
import ConfirmModal from 'Components/Modal/ConfirmModal'; import ConfirmModal from 'Components/Modal/ConfirmModal';
import PageSectionContent from 'Components/Page/PageSectionContent'; import PageSectionContent from 'Components/Page/PageSectionContent';
import TableRowCell from 'Components/Table/Cells/TableRowCell'; import TableRowCell from 'Components/Table/Cells/TableRowCell';
import Column from 'Components/Table/Column';
import Table from 'Components/Table/Table'; import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody'; import TableBody from 'Components/Table/TableBody';
import TablePager from 'Components/Table/TablePager'; import TablePager from 'Components/Table/TablePager';
@ -37,8 +38,9 @@ import translate from 'Utilities/String/translate';
import getSelectedIds from 'Utilities/Table/getSelectedIds'; import getSelectedIds from 'Utilities/Table/getSelectedIds';
import EditImportListExclusionModal from './EditImportListExclusionModal'; import EditImportListExclusionModal from './EditImportListExclusionModal';
import ImportListExclusionRow from './ImportListExclusionRow'; import ImportListExclusionRow from './ImportListExclusionRow';
import styles from './ImportListExclusions.css';
const COLUMNS = [ const COLUMNS: Column[] = [
{ {
name: 'title', name: 'title',
label: () => translate('Title'), label: () => translate('Title'),
@ -52,7 +54,9 @@ const COLUMNS = [
isSortable: true, isSortable: true,
}, },
{ {
className: styles.actions,
name: 'actions', name: 'actions',
label: '',
isVisible: true, isVisible: true,
isSortable: false, isSortable: false,
}, },