Fix net-worth chart on desktop

This commit is contained in:
Víctor Falcón 2025-12-08 16:15:57 +01:00
parent 04ad228e47
commit 753b87baf2
3 changed files with 6 additions and 8 deletions

View File

@ -219,7 +219,7 @@ export function NetWorthChart({
}
return (
<Card className="col-span-3 overflow-hidden">
<Card className="overflow-hidden">
<CardHeader>
<div className="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
<div className="flex min-w-0 flex-col gap-2">

View File

@ -77,7 +77,7 @@ export function StackedBarChart<T extends Record<string, unknown>>({
>
<ChartContainer
config={configWithColors}
className="h-full"
className="w-full h-full"
style={{ minWidth: `${minChartWidth}px` }}
>
<BarChart accessibilityLayer data={data}>

View File

@ -34,12 +34,10 @@ export default function Dashboard() {
description="Overview of your financial health"
/>
<div className="">
<NetWorthChartComponent
data={netWorthEvolution}
loading={isLoading}
/>
</div>
<NetWorthChartComponent
data={netWorthEvolution}
loading={isLoading}
/>
<div className="grid gap-4 md:grid-cols-2">
{isLoading