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

View File

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

View File

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