From 907343c5dbb8b94a1a2c65448ba8ec7b98e111ff Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 8 Nov 2023 08:30:05 +1100 Subject: [PATCH] Pinned action column (#5880) * Update mantine-datatable package * use new pinLastColumn property --- src/frontend/package.json | 2 +- src/frontend/src/components/tables/InvenTreeTable.tsx | 10 +--------- src/frontend/src/components/tables/RowActions.tsx | 2 +- src/frontend/yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/src/frontend/package.json b/src/frontend/package.json index 0ac80c9f07..3b421782a3 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -35,7 +35,7 @@ "easymde": "^2.18.0", "embla-carousel-react": "^7.1.0", "html5-qrcode": "^2.3.8", - "mantine-datatable": "^6.0.0", + "mantine-datatable": "^6.0.5", "react": "^18.2.0", "react-dom": "^18.2.0", "react-grid-layout": "^1.4.2", diff --git a/src/frontend/src/components/tables/InvenTreeTable.tsx b/src/frontend/src/components/tables/InvenTreeTable.tsx index ff16019ada..51cd0ae6eb 100644 --- a/src/frontend/src/components/tables/InvenTreeTable.tsx +++ b/src/frontend/src/components/tables/InvenTreeTable.tsx @@ -161,15 +161,6 @@ export function InvenTreeTable({ hidden: false, switchable: false, width: 50, - cellsStyle: { - position: 'sticky', - right: 0, - // TODO: Use the theme color to set the background color - backgroundColor: '#FFF', - // TODO: Use the scroll area callbacks to determine if we need to display a "shadow" - borderLeft: '1px solid #DDD', - padding: '3px' - }, render: function (record: any) { return ( - +