news design correction padding 2
This commit is contained in:
parent
32b1e7c900
commit
5f0df65f93
@ -72,8 +72,8 @@ export function News() {
|
|||||||
<CardHeader className="flex flex-row items-center justify-between p-4 border-b border-gray-100">
|
<CardHeader className="flex flex-row items-center justify-between p-4 border-b border-gray-100">
|
||||||
<CardTitle className="text-lg font-semibold text-gray-800">News</CardTitle>
|
<CardTitle className="text-lg font-semibold text-gray-800">News</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="p-6">
|
<CardContent className="p-4">
|
||||||
<div className="flex items-center justify-center">
|
<div className="flex items-center justify-center h-[360px]">
|
||||||
<RefreshCw className="h-5 w-5 animate-spin text-gray-400" />
|
<RefreshCw className="h-5 w-5 animate-spin text-gray-400" />
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
@ -99,7 +99,7 @@ export function News() {
|
|||||||
{error ? (
|
{error ? (
|
||||||
<p className="text-center text-red-500">{error}</p>
|
<p className="text-center text-red-500">{error}</p>
|
||||||
) : (
|
) : (
|
||||||
<div className="space-y-1.5 max-h-[400px] overflow-y-auto pr-1 scrollbar-thin scrollbar-thumb-gray-200 scrollbar-track-transparent">
|
<div className="space-y-1.5 h-[360px] overflow-y-auto pr-1 scrollbar-thin scrollbar-thumb-gray-200 scrollbar-track-transparent">
|
||||||
{news.length === 0 ? (
|
{news.length === 0 ? (
|
||||||
<p className="text-center text-gray-500">No news available</p>
|
<p className="text-center text-gray-500">No news available</p>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user