From 30c76a2e1ae9967732676b41c63f12f3c6213997 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 16 Mar 2025 06:16:55 +0000 Subject: [PATCH] Adjust card width on desktop The card width was too wide on desktop. Adjusted the width to be slightly smaller than the four icon area at the bottom. --- src/components/BudgetCategoriesSection.tsx | 2 +- src/components/BudgetProgressCard.tsx | 2 +- src/components/ExpenseChart.tsx | 2 +- src/components/NavBar.tsx | 2 +- src/components/RecentTransactionsSection.tsx | 2 +- src/components/analytics/SummaryCards.tsx | 2 +- src/index.css | 19 +++++++++++++++++++ 7 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/components/BudgetCategoriesSection.tsx b/src/components/BudgetCategoriesSection.tsx index e1d6623..d66eea6 100644 --- a/src/components/BudgetCategoriesSection.tsx +++ b/src/components/BudgetCategoriesSection.tsx @@ -14,7 +14,7 @@ const BudgetCategoriesSection: React.FC = ({ categ return ( <>

지출 카테고리

-
+
{categories.map((category, index) => ( = ({ onSaveBudget }) => { return ( -
+
diff --git a/src/components/ExpenseChart.tsx b/src/components/ExpenseChart.tsx index 20ec49f..6a96208 100644 --- a/src/components/ExpenseChart.tsx +++ b/src/components/ExpenseChart.tsx @@ -14,7 +14,7 @@ interface ExpenseChartProps { const ExpenseChart: React.FC = ({ data }) => { return ( -
+
{ return (
-
+
{navItems.map((item) => { return (
-
+
{transactions.length > 0 ? ( transactions.map((transaction) => (
= ({ const isMobile = useIsMobile(); return ( -
+
diff --git a/src/index.css b/src/index.css index dd536e1..8acc300 100644 --- a/src/index.css +++ b/src/index.css @@ -169,6 +169,25 @@ @apply rounded-xl overflow-hidden; } } + + /* 데스크탑 화면에서의 추가 스타일 */ + @media (min-width: 769px) { + #root { + @apply px-4; + } + + .desktop-container { + @apply max-w-[500px] mx-auto; + } + + .desktop-card { + @apply max-w-[500px] mx-auto; + } + + .neuro-card { + @apply max-w-[500px] mx-auto; + } + } } .font-inter {