fix: make scroll depth block half-width and enlarge radar chart

This commit is contained in:
Usman Baig
2026-03-11 22:26:15 +01:00
parent faa2f50d6e
commit 0f5d5338f3
2 changed files with 7 additions and 7 deletions

View File

@@ -584,15 +584,15 @@ export default function SiteDashboardPage() {
/>
</div>
<div className="grid gap-6 lg:grid-cols-2 mb-8">
<div className="mb-8">
<Campaigns siteId={siteId} dateRange={dateRange} filters={filtersParam || undefined} onFilter={handleAddFilter} />
</div>
<div className="grid gap-6 lg:grid-cols-2 mb-8">
<GoalStats
goalCounts={(dashboard?.goal_counts ?? []).filter(g => !/^scroll_\d+$/.test(g.event_name))}
onSelectEvent={setSelectedEvent}
/>
</div>
<div className="mb-8">
<ScrollDepth goalCounts={dashboard?.goal_counts ?? []} totalPageviews={stats.pageviews} />
</div>

View File

@@ -38,10 +38,10 @@ export default function ScrollDepth({ goalCounts, totalPageviews }: ScrollDepthP
{hasData ? (
<div className="flex-1 min-h-[200px] flex items-center justify-center">
<RadarChart
width={260}
height={220}
width={340}
height={300}
data={chartData}
margin={{ top: 10, right: 20, bottom: 10, left: 20 }}
margin={{ top: 16, right: 32, bottom: 16, left: 32 }}
>
<PolarGrid stroke="#404040" />
<PolarAngleAxis