news design correction padding 15

This commit is contained in:
alma 2025-04-15 14:56:25 +02:00
parent 5212532773
commit b5d0d3ec33

View File

@ -110,9 +110,6 @@ export function News() {
onClick={() => window.open(item.url, '_blank')}
>
<div className="flex flex-col gap-1">
<h3 className="text-sm font-medium text-gray-800 line-clamp-2" title={item.title}>
{item.title}
</h3>
<div className="flex items-center justify-between text-xs">
<span className="text-gray-500">{formatDate(item.date)}</span>
{item.category && (
@ -121,11 +118,12 @@ export function News() {
</span>
)}
</div>
{item.description && (
<p className="text-xs text-gray-500 line-clamp-2 mt-1" title={item.description}>
{item.description}
</p>
)}
<h3 className="text-sm font-medium text-gray-800 line-clamp-2" title={item.title}>
{item.title}
</h3>
<p className="text-xs text-gray-500 line-clamp-2" title={item.description}>
{item.description}
</p>
</div>
</div>
))