瀏覽代碼

Ridimensionamento faschia della descrizione in caso manch

Sviluppo_Carrello_Immagini
Lorenzo Pollutri 1 天之前
父節點
當前提交
923e6fe6f7
共有 1 個文件被更改,包括 15 次插入9 次删除
  1. +15
    -9
      components/PublicGrid.tsx

+ 15
- 9
components/PublicGrid.tsx 查看文件

@@ -517,15 +517,21 @@ export default function PublicGrid({ cards, maxCols = 5 }: { cards: Card[], maxC
title="Close" title="Close"
>✕</button> >✕</button>
</div> </div>
<div className="p-8">
<div className="text-xs text-blue-600 font-bold tracking-wider uppercase mb-2">{activeCard.cardType.replace('_', ' ')}</div>
<h2 className="text-3xl font-bold mb-4 text-gray-900">{activeCard.title}</h2>
{activeCard.fullContent ? (
<div className="prose max-w-none text-gray-700" dangerouslySetInnerHTML={{ __html: activeCard.fullContent }} />
) : (
<p className="text-gray-500 italic text-lg">{activeCard.shortDescription}</p>
)}
</div>
{(activeCard.title || activeCard.shortDescription || activeCard.fullContent) && (
<div className="p-8">
<div className="text-xs text-blue-600 font-bold tracking-wider uppercase mb-2">{activeCard.cardType.replace('_', ' ')}</div>
{activeCard.title && (
<h2 className={`text-3xl font-bold text-gray-900 ${(activeCard.shortDescription || activeCard.fullContent) ? 'mb-4' : ''}`}>
{activeCard.title}
</h2>
)}
{activeCard.fullContent ? (
<div className="prose max-w-none text-gray-700" dangerouslySetInnerHTML={{ __html: activeCard.fullContent }} />
) : activeCard.shortDescription ? (
<p className="text-gray-500 italic text-lg">{activeCard.shortDescription}</p>
) : null}
</div>
)}
</div> </div>
</div> </div>
)} )}


Loading…
取消
儲存