From c4f4ba6bece0603bf625804113f790b99b50714f Mon Sep 17 00:00:00 2001 From: Florian Sommariva Date: Tue, 31 Oct 2023 16:30:43 +0100 Subject: [PATCH] Restyle show more poi card --- .../components/DetailsCard/DetailsCard.tsx | 50 +++++++++---------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/pages/details/components/DetailsCard/DetailsCard.tsx b/frontend/src/components/pages/details/components/DetailsCard/DetailsCard.tsx index 72a314dc3..9edddb174 100644 --- a/frontend/src/components/pages/details/components/DetailsCard/DetailsCard.tsx +++ b/frontend/src/components/pages/details/components/DetailsCard/DetailsCard.tsx @@ -78,7 +78,7 @@ export const DetailsCard: React.FC = ( overflow-hidden desktop:w-auto h-fit desktop:flex-row transition-all duration-500`, - truncateState !== 'NONE' ? 'desktop:h-auto pb-6' : 'desktop:h-55', + truncateState !== 'NONE' ? 'desktop:h-auto' : 'desktop:h-55', truncateState === 'TRUNCATE' && hasMedia && 'desktop:h-55', )} onMouseEnter={() => { @@ -116,7 +116,7 @@ export const DetailsCard: React.FC = ( -
+
{place && (

{place}

@@ -139,31 +139,29 @@ export const DetailsCard: React.FC = (
)} {truncateState !== 'NONE' && ( -
- -
+ + + )} )}