Skip to content

Commit 9b88010

Browse files
committed
Make plot larger on mobile
1 parent 594806d commit 9b88010

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

web/components/widgets/charts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default function ChartMembers() {
110110
return (
111111
<div>
112112
<ResponsiveContainer width="100%" height={chartHeight}>
113-
<LineChart data={data} margin={{top: 24, right: 16, bottom: 24, left: -30}}>
113+
<LineChart data={data} margin={{top: 24, right: 16, bottom: 24, left: -20}}>
114114
<text
115115
x="50%"
116116
y="24"

web/pages/stats.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ export default function Stats() {
4141
return (
4242
<LovePage trackPageView={'charts'}>
4343
<h1 className="text-3xl font-semibold text-center mb-6">Growth & Stats</h1>
44-
<Col className={'mx-4 mb-8'}>
44+
<Col className={'sm:mx-4 mx-1 mb-8'}>
4545
<ChartMembers/>
46+
</Col>
47+
<Col className={'mx-4 mb-8'}>
4648
<Col
4749
className={clsx(
4850
'pb-[58px] lg:pb-0', // bottom bar padding

0 commit comments

Comments
 (0)