Make plot larger on mobile

This commit is contained in:
MartinBraquet
2025-10-14 19:56:35 +02:00
parent 594806d6e8
commit 9b880101fd
2 changed files with 4 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ export default function ChartMembers() {
return (
<div>
<ResponsiveContainer width="100%" height={chartHeight}>
<LineChart data={data} margin={{top: 24, right: 16, bottom: 24, left: -30}}>
<LineChart data={data} margin={{top: 24, right: 16, bottom: 24, left: -20}}>
<text
x="50%"
y="24"

View File

@@ -41,8 +41,10 @@ export default function Stats() {
return (
<LovePage trackPageView={'charts'}>
<h1 className="text-3xl font-semibold text-center mb-6">Growth & Stats</h1>
<Col className={'mx-4 mb-8'}>
<Col className={'sm:mx-4 mx-1 mb-8'}>
<ChartMembers/>
</Col>
<Col className={'mx-4 mb-8'}>
<Col
className={clsx(
'pb-[58px] lg:pb-0', // bottom bar padding