From 52310ef889a9a574d3bd32edf98bf2d80d1ecd89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Sat, 15 Nov 2025 15:01:45 +0100 Subject: [PATCH] Refactor: Restructure action dropdown component in transaction columns --- .../transactions/transaction-columns.tsx | 79 +++++++++++-------- 1 file changed, 45 insertions(+), 34 deletions(-) diff --git a/resources/js/components/transactions/transaction-columns.tsx b/resources/js/components/transactions/transaction-columns.tsx index db888c44..a03ed833 100644 --- a/resources/js/components/transactions/transaction-columns.tsx +++ b/resources/js/components/transactions/transaction-columns.tsx @@ -98,13 +98,15 @@ export function createTransactionColumns({ header: 'Category', cell: ({ row }) => { return ( - +
+ +
); }, }, @@ -195,37 +197,46 @@ export function createTransactionColumns({ { id: 'actions', enableHiding: false, + size: 35, + maxSize: 35, + minSize: 35, + meta: { + cellClassName: '!w-[35px] !max-w-[35px] !min-w-[35px] !p-0 whitespace-normal', + cellStyle: { width: '35px', maxWidth: '35px', minWidth: '35px', padding: 0 } + }, cell: ({ row }) => { const transaction = row.original; return ( - - - - - - Actions - onEdit(transaction)} - > - Edit - - onReEvaluateRules(transaction)} - > - Re-evaluate rules - - onDelete(transaction)} - > - Delete - - - +
+ + + + + + Actions + onEdit(transaction)} + > + Edit + + onReEvaluateRules(transaction)} + > + Re-evaluate rules + + onDelete(transaction)} + > + Delete + + + +
); }, },