From f6a0a57936adae4f056b7254cb0b54bcf88b608d Mon Sep 17 00:00:00 2001 From: Zhang Ziqing Date: Wed, 2 Nov 2022 03:52:48 +0800 Subject: [PATCH] [offers][fix] fix offer profile page mobile compatibility --- .../offers/profile/ProfileComments.tsx | 201 +++++++++--------- .../offers/profile/ProfileHeader.tsx | 89 ++++---- .../src/components/offers/table/OffersRow.tsx | 2 +- .../components/offers/table/OffersTable.tsx | 4 +- .../offers/table/OffersTablePagination.tsx | 53 +++-- .../pages/offers/profile/[offerProfileId].tsx | 26 +-- 6 files changed, 197 insertions(+), 178 deletions(-) diff --git a/apps/portal/src/components/offers/profile/ProfileComments.tsx b/apps/portal/src/components/offers/profile/ProfileComments.tsx index 44181afa..6a1d85a4 100644 --- a/apps/portal/src/components/offers/profile/ProfileComments.tsx +++ b/apps/portal/src/components/offers/profile/ProfileComments.tsx @@ -110,108 +110,115 @@ export default function ProfileComments({ ); } return ( -
-
- {isEditable && ( - -
+
+ +
+
+ + +

Discussions

+ {isEditable || session?.user?.name ? ( +
+