Skip to content

[BUG] Contribution heatmap month labels misalign when year starts mid-column #249

@Priyanshu-byte-coder

Description

@Priyanshu-byte-coder

Summary

ContributionHeatmap renders month labels above each column group. When a new month starts in the middle of a week column, the label is offset and overlaps with the previous month's label.

Steps to Reproduce

  1. View ContributionHeatmap — observe January label position
  2. If Jan 1 falls mid-week, the 'Jan' label appears in the wrong column

Expected Behaviour

Month label appears above the first column that contains any day of that month.

Implementation Notes

  • Find the first week index where a date in the month appears
  • Place the label at that column index
  • Add overflow-hidden or min-width to prevent label overlap

GSSoC Info

  • Difficulty: Intermediate — 35 pts
  • Area: Bug Fix / UI

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggssoc26GSSoC 2026 contributionlevel:intermediateGSSoC: Intermediate difficulty (35 pts)type:bugGSSoC type bonus: bug fix

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions