Add bottom margin to pages

Adds a bottom margin to the last card in the Transactions and Analytics pages.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 12:16:14 +00:00
parent e23b62aa2b
commit 017f5615c1
3 changed files with 6 additions and 3 deletions

View File

@@ -12,11 +12,13 @@ interface CategorySpending {
interface CategorySpendingListProps {
categories: CategorySpending[];
totalExpense: number;
className?: string;
}
const CategorySpendingList: React.FC<CategorySpendingListProps> = ({
categories,
totalExpense
totalExpense,
className = ""
}) => {
const isMobile = useIsMobile();
@@ -31,7 +33,7 @@ const CategorySpendingList: React.FC<CategorySpendingListProps> = ({
};
return (
<div className="neuro-card mb-6 w-full">
<div className={`neuro-card mb-6 w-full ${className}`}>
{categories.some(cat => cat.current > 0) ? (
<div className="space-y-4">
{categories.map((category) => (

View File

@@ -164,6 +164,7 @@ const Analytics = () => {
<CategorySpendingList
categories={categorySpending}
totalExpense={totalExpense}
className="mb-[50px]"
/>
</div>

View File

@@ -155,7 +155,7 @@ const Transactions = () => {
{/* Transactions By Date */}
{!isLoading && transactions.length > 0 && (
<div className="space-y-6">
<div className="space-y-6 mb-[50px]">
{Object.entries(groupedTransactions).map(([date, transactions]) => (
<div key={date}>
<div className="flex items-center gap-2 mb-3">