From a67e81ad55c24c97318b7956fa512d5b51fda7ae Mon Sep 17 00:00:00 2001 From: Arda Samadi Date: Thu, 9 Jul 2026 11:53:28 +0330 Subject: [PATCH] fix(desktop): constrain profile sub-pages so they don't stretch on desktop These pages are desktop-enabled (they get the DesktopHeader via the /profile allowlist) but had no desktop layout, so their content stretched edge-to-edge on wide screens. Add a centered max-width container + a desktop title to the main profile sub-pages (bookmarks, following, orders, settings, wallet, addresses, sets). Grids use a wider max-width; single-column lists a narrower one. ProfilePagesHeader is already lg:hidden, so the mobile header still disappears. Co-Authored-By: Claude Opus 4.8 --- app/routes/profile.bookmarks.tsx | 5 ++++- app/routes/profile.following.tsx | 5 ++++- app/routes/profile.location._index.tsx | 5 ++++- app/routes/profile.orders.tsx | 5 ++++- app/routes/profile.sets._index.tsx | 5 ++++- app/routes/profile.setting.tsx | 5 ++++- app/routes/profile.wallet._index.tsx | 5 ++++- 7 files changed, 28 insertions(+), 7 deletions(-) diff --git a/app/routes/profile.bookmarks.tsx b/app/routes/profile.bookmarks.tsx index daa63d2..fcaff77 100644 --- a/app/routes/profile.bookmarks.tsx +++ b/app/routes/profile.bookmarks.tsx @@ -18,8 +18,11 @@ export default function Bookmarks() { const bookmarks = data?.pages.flatMap((page) => page.results) || []; return ( -
+
+

+ ذخیره شده‌ها +

{/* Content */} +
+

+ فروشگاه‌های دنبال شده +

{ export default function Locaton() { return ( -
+
+

+ آدرس‌های من +

) : ( -
+
+

+ سفارش‌های من +

diff --git a/app/routes/profile.sets._index.tsx b/app/routes/profile.sets._index.tsx index 87918c1..9590c6a 100644 --- a/app/routes/profile.sets._index.tsx +++ b/app/routes/profile.sets._index.tsx @@ -30,9 +30,12 @@ export default function ProfileSets() { }; return ( -
+
{/* Header */} +

+ ست‌های من +

{/* Content */}
diff --git a/app/routes/profile.setting.tsx b/app/routes/profile.setting.tsx index 5f7a26a..f03363d 100644 --- a/app/routes/profile.setting.tsx +++ b/app/routes/profile.setting.tsx @@ -85,8 +85,11 @@ export default function Setting() { }; return ( -
+
+

+ اطلاعات کاربری +

+
+

+ کیف پول +