Fix header card sizing
This commit is contained in:
@@ -67,15 +67,15 @@ const summaryCard = (label, value, options = {}) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card className="h-full">
|
||||||
<CardContent className="pt-6">
|
<CardContent className="pt-6 h-full">
|
||||||
<div className="flex justify-between items-start">
|
<div className="flex justify-between items-start">
|
||||||
<div>
|
<div className="flex-1 min-w-0">
|
||||||
<p className="text-sm font-medium text-muted-foreground">{label}</p>
|
<p className="text-sm font-medium text-muted-foreground">{label}</p>
|
||||||
<p className="text-2xl font-bold">{displayValue}</p>
|
<p className="text-2xl font-bold">{displayValue}</p>
|
||||||
</div>
|
</div>
|
||||||
{Icon && (
|
{Icon && (
|
||||||
<Icon className={`h-5 w-5 ${iconColor || "text-blue-500"}`} />
|
<Icon className={`h-5 w-5 flex-shrink-0 ml-2 ${iconColor || "text-blue-500"}`} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
@@ -429,7 +429,7 @@ const MetaCampaigns = () => {
|
|||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4">
|
<div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 gap-4">
|
||||||
{[
|
{[
|
||||||
{
|
{
|
||||||
label: "Active Campaigns",
|
label: "Active Campaigns",
|
||||||
@@ -492,7 +492,7 @@ const MetaCampaigns = () => {
|
|||||||
options: { isMonetary: true, decimalPlaces: 0, icon: DollarSign, iconColor: "text-lime-500" },
|
options: { isMonetary: true, decimalPlaces: 0, icon: DollarSign, iconColor: "text-lime-500" },
|
||||||
},
|
},
|
||||||
].map((card) => (
|
].map((card) => (
|
||||||
<div key={card.label} className="min-w-[140px]">
|
<div key={card.label} className="h-full">
|
||||||
{summaryCard(card.label, card.value, card.options)}
|
{summaryCard(card.label, card.value, card.options)}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user