Refactor CardAnnuncio component to improve title and address display with better styling and layout

This commit is contained in:
Marco Pedone 2025-08-08 17:56:43 +02:00
parent 9b44cad8eb
commit e6515ea19d

View file

@ -143,11 +143,11 @@ const CardAnnuncio = ({
</span>
</div>
</div>
<div className="text-center">
<div className="mb-3 text-center">
<span className="sr-only">{t.card.titolo}</span>
<span className="text-base font-medium text-neutral-500 md:text-lg">
<span className="line-clamp-2 min-h-[3rem] text-base font-medium text-neutral-500 md:text-lg">
{titolo}
</span>
</div>
@ -159,7 +159,6 @@ const CardAnnuncio = ({
</span>
</div>
</div>
</div>
<div className="mt-4 flex items-center justify-around gap-2 text-xs">
<div className="flex w-full items-center justify-center gap-2 rounded-md bg-neutral-100 py-3">