diff --git a/frontend/src/components/TransactionsTable.tsx b/frontend/src/components/TransactionsTable.tsx index fb1242d..3bdc2c2 100644 --- a/frontend/src/components/TransactionsTable.tsx +++ b/frontend/src/components/TransactionsTable.tsx @@ -438,7 +438,7 @@ export default function TransactionsTable() { } return ( -
+
{/* New FilterBar */} {/* Responsive Table/Cards */} - + {/* Desktop Table View (hidden on mobile) */}
-
- - - {table.getHeaderGroups().map((headerGroup) => ( - - {headerGroup.headers.map((header) => ( - + {table.getHeaderGroups().map((headerGroup) => ( + + {headerGroup.headers.map((header) => ( + + ))} + + ))} + + + {table.getRowModel().rows.length === 0 ? ( + + + + ) : ( + table.getRowModel().rows.map((row) => ( + + {row.getVisibleCells().map((cell) => ( + ))} - ))} - - - {table.getRowModel().rows.length === 0 ? ( - - - - ) : ( - table.getRowModel().rows.map((row) => ( - - {row.getVisibleCells().map((cell) => ( - - ))} - - )) - )} - -
+
+
+ + {header.isPlaceholder + ? null + : flexRender( + header.column.columnDef.header, + header.getContext(), + )} + + {header.column.getCanSort() && ( +
+ + +
+ )} +
+
+
+ +
+

+ No transactions found +

+

+ {hasActiveFilters + ? "Try adjusting your filters to see more results." + : "No transactions are available for the selected criteria."} +

+
-
- - {header.isPlaceholder - ? null - : flexRender( - header.column.columnDef.header, - header.getContext(), - )} - - {header.column.getCanSort() && ( -
- - -
- )} -
- + {flexRender( + cell.column.columnDef.cell, + cell.getContext(), + )} +
-
- -
-

- No transactions found -

-

- {hasActiveFilters - ? "Try adjusting your filters to see more results." - : "No transactions are available for the selected criteria."} -

-
- {flexRender( - cell.column.columnDef.cell, - cell.getContext(), - )} -
-
+ )) + )} + +
{/* Mobile Card View (visible only on mobile) */} diff --git a/frontend/src/routes/__root.tsx b/frontend/src/routes/__root.tsx index 252beaf..d01ebde 100644 --- a/frontend/src/routes/__root.tsx +++ b/frontend/src/routes/__root.tsx @@ -23,7 +23,7 @@ function RootLayout() { }; return ( -
+
{/* Mobile overlay */} @@ -34,18 +34,18 @@ function RootLayout() { /> )} -
+
-
+
{/* PWA Prompts */} -
);