From e127115f41abead27828d8b0776a031cb98a159e Mon Sep 17 00:00:00 2001 From: Richard Bergsma Date: Sun, 15 Jun 2025 16:43:22 +0200 Subject: [PATCH] Update ContributionCalendar to adjust weeks displayed based on mobile view - Modified the logic for determining the number of weeks to show in the ContributionCalendar component, reducing the count from 20 to 19 when in mobile view and not expanded. - This change aims to optimize the calendar display for better usability 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 63d3cf8..f34c977 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 ? 20 : 52; + const weeksToShow = isMobile && !expanded ? 19 : 52; const startWeek = 52 - weeksToShow; const visibleDays = days.slice(startWeek * 7, 52 * 7); const visibleMonthLabels = monthLabels.filter(l => l.week >= startWeek);