From 6638eaa10a2d81abeffdf6425c72a94f15558026 Mon Sep 17 00:00:00 2001 From: parsa aghaei Date: Sat, 25 Jul 2026 11:40:21 +0330 Subject: [PATCH] feat: Fix responsive layout breakdowns in UserDashboard profile sections --- .../application/components/UserDashboard.tsx | 71 ++++++++++--------- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/frontend/application/components/UserDashboard.tsx b/frontend/application/components/UserDashboard.tsx index bf2f2f64..6ca50aea 100644 --- a/frontend/application/components/UserDashboard.tsx +++ b/frontend/application/components/UserDashboard.tsx @@ -142,91 +142,92 @@ export default function UserDashboard() {
{/* Breadcrumb */} -
+
router.push('/')}>خانه - + پنل کاربری
{/* Sidebar */}
-
-
-
- +
+
+
+
-
-

{profile.firstName} {profile.lastName}

-

{profile.email}

+
+

{profile.firstName} {profile.lastName}

+

{profile.email}

-
+ {/* Responsive Tab Bar: Horizontal Scroll on Mobile, Vertical Stack on Desktop */} +
{tabs.map(tab => ( ))}
-
+
-
موجودی کیف پول
+
موجودی کیف پول
-
{toPersian((profile.walletBalance ?? 0).toLocaleString())}
- تومان +
{toPersian((profile.walletBalance ?? 0).toLocaleString())}
+ تومان
-
+
- +
-
- -

ردپای مهربانی

+
+ +

ردپای مهربانی

-
+

مجموع کمک‌های اهدایی

- {toPersian(profile.charityDonationTotal?.toLocaleString() || "0")} + {toPersian(profile.charityDonationTotal?.toLocaleString() || "0")} تومان
-
-
-
- +
+
+
+
-

- همکاری شما باعث تامین هزینه {toPersian(Math.floor((profile.charityDonationTotal || 0) / 15000).toString())} وعده غذا برای حیوانات بی‌پناه شده است. +

+ همکاری شما باعث تامین هزینه {toPersian(Math.floor((profile.charityDonationTotal || 0) / 15000).toString())} وعده غذا برای حیوانات بی‌پناه شده است.

@@ -241,7 +242,7 @@ export default function UserDashboard() { key={activeTab} initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }} - className="bg-white rounded-[3.5rem] border border-medical-gray-200 p-10 min-h-[600px] shadow-sm overflow-hidden" + className="bg-white rounded-[2rem] sm:rounded-[3.5rem] border border-medical-gray-200 p-5 sm:p-10 min-h-[500px] sm:min-h-[600px] shadow-sm overflow-hidden" > {activeTab === "profile" && (