From 389e272318f74be0e749aafe3ae01c54f10dbed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Wed, 10 Dec 2025 13:28:45 +0100 Subject: [PATCH] Refactor transaction UI components for better responsive layout and consistency - Remove explicit button sizes from transaction actions menu - Improve action buttons layout with flex containers and responsive classes - Add hideColumnTextOnMobile prop to DataTableViewOptions for better mobile control - Fix Tailwind class ordering and indentation in categorize page - Update transaction filters actions container for better mobile layout --- .../transactions/transaction-actions-menu.tsx | 4 +- .../transactions/transaction-filters.tsx | 8 +--- .../transactions/transaction-list.tsx | 9 ++-- .../components/ui/data-table-view-options.tsx | 9 ++-- .../js/pages/transactions/categorize.tsx | 48 +++++++++---------- resources/js/pages/transactions/index.tsx | 4 +- 6 files changed, 41 insertions(+), 41 deletions(-) diff --git a/resources/js/components/transactions/transaction-actions-menu.tsx b/resources/js/components/transactions/transaction-actions-menu.tsx index 880d3838..436d4bd8 100644 --- a/resources/js/components/transactions/transaction-actions-menu.tsx +++ b/resources/js/components/transactions/transaction-actions-menu.tsx @@ -100,7 +100,6 @@ export function TransactionActionsMenu({ diff --git a/resources/js/pages/transactions/categorize.tsx b/resources/js/pages/transactions/categorize.tsx index 1910ba3d..4d7c8aa9 100644 --- a/resources/js/pages/transactions/categorize.tsx +++ b/resources/js/pages/transactions/categorize.tsx @@ -585,7 +585,7 @@ export default function CategorizeTransactions({
Back to Transactions @@ -627,7 +627,7 @@ export default function CategorizeTransactions({ Skip Ctrl+N -
+
{remainingCount} @@ -673,11 +673,11 @@ export default function CategorizeTransactions({ className={cn( 'rounded-2xl border border-zinc-200 bg-white p-6 shadow-xl shadow-zinc-200/50 transition-all duration-300 dark:border-zinc-800 dark:bg-zinc-900 dark:shadow-zinc-900/50', animationState === 'exiting' && - 'translate-y-[-20px] scale-95 opacity-0', + 'translate-y-[-20px] scale-95 opacity-0', animationState === 'entering' && - 'animate-card-enter', + 'animate-card-enter', animationState === 'idle' && - 'translate-y-0 scale-100 opacity-100', + 'translate-y-0 scale-100 opacity-100', )} >
@@ -700,20 +700,20 @@ export default function CategorizeTransactions({ {currentTransaction .bank ?.logo && ( - { - )} + { + )} = - 0 && - 'bg-green-100/70 dark:bg-green-900', + 0 && + 'bg-green-100/70 dark:bg-green-900', )} > {formatAmount( @@ -770,11 +770,11 @@ export default function CategorizeTransactions({ className={cn( 'flex flex-col gap-4 px-6 pt-2 transition-all duration-300', animationState === 'exiting' && - 'translate-y-[-10px] opacity-0', + 'translate-y-[-10px] opacity-0', animationState === 'entering' && - 'animate-command-enter', + 'animate-command-enter', animationState === 'idle' && - 'translate-y-0 opacity-100', + 'translate-y-0 opacity-100', )} >
diff --git a/resources/js/pages/transactions/index.tsx b/resources/js/pages/transactions/index.tsx index 3aea133a..1897d4dc 100644 --- a/resources/js/pages/transactions/index.tsx +++ b/resources/js/pages/transactions/index.tsx @@ -1084,7 +1084,7 @@ export default function Transactions({ categories, accounts, banks }: Props) { accounts={accounts} isKeySet={isKeySet} actions={ - <> +
- +
} />