From 290505f96e5ffa2cf17014949f3d1e12a46f79e3 Mon Sep 17 00:00:00 2001 From: Richard Bergsma Date: Sun, 15 Jun 2025 16:44:08 +0200 Subject: [PATCH] Adjust weeks displayed in ContributionCalendar for mobile view optimization - Reduced the number of weeks shown in the ContributionCalendar component from 19 to 18 when in mobile view and not expanded. - This change aims to further enhance the usability of the calendar on smaller screens. --- src/components/ContributionCalendar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ContributionCalendar.jsx b/src/components/ContributionCalendar.jsx index f34c977..34569bc 100644 --- a/src/components/ContributionCalendar.jsx +++ b/src/components/ContributionCalendar.jsx @@ -97,7 +97,7 @@ export default function ContributionCalendar({ data }) { }, []); // Determine how many weeks to show - const weeksToShow = isMobile && !expanded ? 19 : 52; + const weeksToShow = isMobile && !expanded ? 18 : 52; const startWeek = 52 - weeksToShow; const visibleDays = days.slice(startWeek * 7, 52 * 7); const visibleMonthLabels = monthLabels.filter(l => l.week >= startWeek);