From 04bdb7bf0de84c288212fb80018bd2b240b2bfba Mon Sep 17 00:00:00 2001 From: AmirReza Jamali Date: Sat, 2 May 2026 13:04:56 +0330 Subject: [PATCH] refactor(tender-details): update ShowcaseSection styling for improved layout consistency - Replaced TIMELINE_SHOWCASE with SHOWCASE_CENTERED_BODY for better vertical alignment of content in ShowcaseSection components. - Ensured consistent styling across various sections including Tender ID, Buyer organization, and timeline details. --- src/app/tenders/[details]/page.tsx | 34 ++++++++++++++++++------------ 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/app/tenders/[details]/page.tsx b/src/app/tenders/[details]/page.tsx index 91171b2..3729900 100644 --- a/src/app/tenders/[details]/page.tsx +++ b/src/app/tenders/[details]/page.tsx @@ -49,10 +49,11 @@ function ExternalLinkIcon({ className }: { className?: string }) { ); } -/** Grid row stretch: center value vertically under the title */ -const TIMELINE_SHOWCASE = { +/** Body area only: center content in the card; ShowcaseSection `title` is unchanged */ +const SHOWCASE_CENTERED_BODY = { rootClassName: "flex h-full min-h-0 flex-col", - className: "flex min-h-0 flex-1 flex-col justify-center", + className: + "flex min-h-0 flex-1 flex-col items-center justify-center text-center", } as const; const TenderDetails = ({ params }: IProps) => { @@ -134,23 +135,30 @@ const TenderDetails = ({ params }: IProps) => {
Procurement
- + {tender.tender_id} - + {tender.buyer_organization.name} - + {tender.notice_publication_id} - + {tender.procedure_code} - + {tender.procurement_type_code} @@ -161,28 +169,28 @@ const TenderDetails = ({ params }: IProps) => {
Timeline
- + - + - + - + {submissionUrl && ( - +