news design correction padding 14

This commit is contained in:
alma 2025-04-15 14:52:43 +02:00
parent 43ec806459
commit 5212532773

View File

@ -109,27 +109,25 @@ export function News() {
className="p-2 rounded-lg bg-white shadow-sm hover:shadow-md transition-all duration-200 border border-gray-100" className="p-2 rounded-lg bg-white shadow-sm hover:shadow-md transition-all duration-200 border border-gray-100"
onClick={() => window.open(item.url, '_blank')} onClick={() => window.open(item.url, '_blank')}
> >
<div className="flex gap-2"> <div className="flex flex-col gap-1">
<div className="flex-1 min-w-0 space-y-1">
<h3 className="text-sm font-medium text-gray-800 line-clamp-2" title={item.title}> <h3 className="text-sm font-medium text-gray-800 line-clamp-2" title={item.title}>
{item.title} {item.title}
</h3> </h3>
<div className="flex items-center justify-between"> <div className="flex items-center justify-between text-xs">
<span className="text-xs text-gray-500">{formatDate(item.date)}</span> <span className="text-gray-500">{formatDate(item.date)}</span>
{item.category && ( {item.category && (
<span className="text-xs px-2 py-0.5 rounded-full bg-blue-50 text-blue-600"> <span className="px-2 py-0.5 rounded-full bg-blue-50 text-blue-600">
{item.category} {item.category}
</span> </span>
)} )}
</div> </div>
{item.description && ( {item.description && (
<p className="text-xs text-gray-500 line-clamp-2" title={item.description}> <p className="text-xs text-gray-500 line-clamp-2 mt-1" title={item.description}>
{item.description} {item.description}
</p> </p>
)} )}
</div> </div>
</div> </div>
</div>
)) ))
)} )}
</div> </div>