From 923e6fe6f734e957405ff45a3b369928e4a83c1b Mon Sep 17 00:00:00 2001 From: pollutri Date: Fri, 8 May 2026 12:53:10 +0200 Subject: [PATCH] Ridimensionamento faschia della descrizione in caso manch --- components/PublicGrid.tsx | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/components/PublicGrid.tsx b/components/PublicGrid.tsx index 3f07362..bdc979f 100644 --- a/components/PublicGrid.tsx +++ b/components/PublicGrid.tsx @@ -517,15 +517,21 @@ export default function PublicGrid({ cards, maxCols = 5 }: { cards: Card[], maxC title="Close" >✕ -
-
{activeCard.cardType.replace('_', ' ')}
-

{activeCard.title}

- {activeCard.fullContent ? ( -
- ) : ( -

{activeCard.shortDescription}

- )} -
+ {(activeCard.title || activeCard.shortDescription || activeCard.fullContent) && ( +
+
{activeCard.cardType.replace('_', ' ')}
+ {activeCard.title && ( +

+ {activeCard.title} +

+ )} + {activeCard.fullContent ? ( +
+ ) : activeCard.shortDescription ? ( +

{activeCard.shortDescription}

+ ) : null} +
+ )}
)}