news design correction padding 15
This commit is contained in:
parent
5212532773
commit
b5d0d3ec33
@ -110,9 +110,6 @@ export function News() {
|
|||||||
onClick={() => window.open(item.url, '_blank')}
|
onClick={() => window.open(item.url, '_blank')}
|
||||||
>
|
>
|
||||||
<div className="flex flex-col gap-1">
|
<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">
|
<div className="flex items-center justify-between text-xs">
|
||||||
<span className="text-gray-500">{formatDate(item.date)}</span>
|
<span className="text-gray-500">{formatDate(item.date)}</span>
|
||||||
{item.category && (
|
{item.category && (
|
||||||
@ -121,11 +118,12 @@ export function News() {
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{item.description && (
|
<h3 className="text-sm font-medium text-gray-800 line-clamp-2" title={item.title}>
|
||||||
<p className="text-xs text-gray-500 line-clamp-2 mt-1" title={item.description}>
|
{item.title}
|
||||||
{item.description}
|
</h3>
|
||||||
</p>
|
<p className="text-xs text-gray-500 line-clamp-2" title={item.description}>
|
||||||
)}
|
{item.description}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))
|
))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user