From 6682d81d2e624a98b3b268ab3aca5d90cf7b9349 Mon Sep 17 00:00:00 2001 From: Zhang Ziqing <69516975+ziqing26@users.noreply.github.com> Date: Wed, 2 Nov 2022 04:03:34 +0800 Subject: [PATCH] [offers][fix] fix profile page mobile compatible style (#489) * [offers][fix] fix offer profile page mobile compatibility * [offers][style] style profile offer card --- .../components/offers/profile/OfferCard.tsx | 2 +- .../offers/profile/ProfileComments.tsx | 203 +++++++++--------- .../offers/profile/ProfileHeader.tsx | 89 ++++---- .../src/components/offers/table/OffersRow.tsx | 2 +- .../components/offers/table/OffersTable.tsx | 4 +- .../offers/table/OffersTablePagination.tsx | 53 +++-- apps/portal/src/pages/offers/dashboard.tsx | 6 +- .../pages/offers/profile/[offerProfileId].tsx | 26 +-- 8 files changed, 202 insertions(+), 183 deletions(-) diff --git a/apps/portal/src/components/offers/profile/OfferCard.tsx b/apps/portal/src/components/offers/profile/OfferCard.tsx index 6d02f134..5e5df4c4 100644 --- a/apps/portal/src/components/offers/profile/OfferCard.tsx +++ b/apps/portal/src/components/offers/profile/OfferCard.tsx @@ -128,7 +128,7 @@ export default function OfferCard({ ); } return ( -
+
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 ? ( -
-