From 16ccd99010c1864981c5f1d1c9bbaee618b249d9 Mon Sep 17 00:00:00 2001 From: parsa aghaei Date: Sat, 25 Jul 2026 11:49:53 +0330 Subject: [PATCH] fix(profile): prevent horizontal overflow and fix mobile layout in UserDashboard --- .../application/components/UserDashboard.tsx | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/frontend/application/components/UserDashboard.tsx b/frontend/application/components/UserDashboard.tsx index 8380263a..034444c2 100644 --- a/frontend/application/components/UserDashboard.tsx +++ b/frontend/application/components/UserDashboard.tsx @@ -139,36 +139,36 @@ export default function UserDashboard() { ]; return ( -
-
+
+
{/* 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())} وعده غذا برای حیوانات بی‌پناه شده است. @@ -237,12 +237,12 @@ export default function UserDashboard() {

{/* Main Content */} -
+
{activeTab === "profile" && (