From 5155f105e4d898ca6904ea7bdf0b0fcebe1fb9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Wed, 10 Dec 2025 13:38:39 +0100 Subject: [PATCH] Improve transaction categorization page layout and responsiveness - Reorganize header layout with better mobile spacing and button grouping - Make Prev/Skip button labels always visible (remove sm:inline) - Add text-nowrap to "Back to Transactions" link to prevent wrapping - Adjust main content alignment: justify-start on mobile, justify-center on sm - Remove progress bar footer - Fix indentation and formatting for conditional rendering --- .../js/pages/transactions/categorize.tsx | 154 ++++++++---------- 1 file changed, 71 insertions(+), 83 deletions(-) diff --git a/resources/js/pages/transactions/categorize.tsx b/resources/js/pages/transactions/categorize.tsx index 4d7c8aa9..115e61f9 100644 --- a/resources/js/pages/transactions/categorize.tsx +++ b/resources/js/pages/transactions/categorize.tsx @@ -585,58 +585,62 @@ export default function CategorizeTransactions({
- Back to Transactions +
Back to Transactions
-
- - - -
- - {remainingCount} - - remaining +
+
+
+
+ + +
+
+
+ + {remainingCount} + + remaining
-
+
{animationState === 'success' && @@ -673,11 +677,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 +704,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 +774,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', )} >
@@ -857,22 +861,6 @@ export default function CategorizeTransactions({ )}
- -
-
-
-
-
- - {currentIndex} / {uncategorizedTransactions.length} - -
-