news design correction padding 12
This commit is contained in:
parent
d8a402d270
commit
e074429311
@ -68,12 +68,12 @@ export function News() {
|
||||
|
||||
if (status === 'loading' || loading) {
|
||||
return (
|
||||
<Card className="bg-white/95 backdrop-blur-sm border-0 shadow-lg">
|
||||
<Card className="bg-white/95 backdrop-blur-sm border-0 shadow-lg h-[352px]">
|
||||
<CardHeader className="flex flex-row items-center justify-between py-2 px-4 border-b border-gray-100">
|
||||
<CardTitle className="text-lg font-semibold text-gray-800">News</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="p-2">
|
||||
<div className="flex items-center justify-center h-[300px]">
|
||||
<div className="flex items-center justify-center h-[308px]">
|
||||
<RefreshCw className="h-5 w-5 animate-spin text-gray-400" />
|
||||
</div>
|
||||
</CardContent>
|
||||
@ -82,7 +82,7 @@ export function News() {
|
||||
}
|
||||
|
||||
return (
|
||||
<Card className="bg-white/95 backdrop-blur-sm border-0 shadow-lg">
|
||||
<Card className="bg-white/95 backdrop-blur-sm border-0 shadow-lg h-[352px]">
|
||||
<CardHeader className="flex flex-row items-center justify-between py-2 px-4 border-b border-gray-100">
|
||||
<CardTitle className="text-lg font-semibold text-gray-800">News</CardTitle>
|
||||
<Button
|
||||
@ -99,7 +99,7 @@ export function News() {
|
||||
{error ? (
|
||||
<p className="text-center text-red-500">{error}</p>
|
||||
) : (
|
||||
<div className="space-y-1.5 h-[300px] overflow-y-auto scrollbar-thin scrollbar-thumb-gray-200 scrollbar-track-transparent">
|
||||
<div className="space-y-2 h-[308px] overflow-y-auto scrollbar-thin scrollbar-thumb-gray-200 scrollbar-track-transparent">
|
||||
{news.length === 0 ? (
|
||||
<p className="text-center text-gray-500">No news available</p>
|
||||
) : (
|
||||
@ -109,7 +109,7 @@ export function News() {
|
||||
className="p-3 bg-gray-50/50 hover:bg-gray-100/50 rounded-lg transition-colors cursor-pointer"
|
||||
onClick={() => window.open(item.url, '_blank')}
|
||||
>
|
||||
<div className="flex items-center justify-between mb-1.5">
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<span className="text-xs text-gray-500">{formatDate(item.date)}</span>
|
||||
{item.category && (
|
||||
<span className="text-xs px-2 py-0.5 rounded-full bg-blue-50 text-blue-600">
|
||||
@ -117,7 +117,7 @@ export function News() {
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<h3 className="text-sm font-medium text-gray-800 mb-1.5 line-clamp-2" title={item.title}>
|
||||
<h3 className="text-sm font-medium text-gray-800 mb-2 line-clamp-2" title={item.title}>
|
||||
{item.title}
|
||||
</h3>
|
||||
{item.description && (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user