news design correction padding 10
This commit is contained in:
parent
5b508eba9f
commit
1c11ddaec4
@ -72,8 +72,8 @@ export function News() {
|
||||
<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-4">
|
||||
<div className="flex items-center justify-center h-[340px]">
|
||||
<CardContent className="p-3">
|
||||
<div className="flex items-center justify-center h-[320px]">
|
||||
<RefreshCw className="h-5 w-5 animate-spin text-gray-400" />
|
||||
</div>
|
||||
</CardContent>
|
||||
@ -95,11 +95,11 @@ export function News() {
|
||||
<RefreshCw className="h-4 w-4" />
|
||||
</Button>
|
||||
</CardHeader>
|
||||
<CardContent className="p-4">
|
||||
<CardContent className="p-3">
|
||||
{error ? (
|
||||
<p className="text-center text-red-500">{error}</p>
|
||||
) : (
|
||||
<div className="space-y-2 h-[340px] overflow-y-auto scrollbar-thin scrollbar-thumb-gray-200 scrollbar-track-transparent">
|
||||
<div className="space-y-2 h-[320px] 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>
|
||||
) : (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user