fix(heatmap): prevent tooltip overflow on rightmost cells#1345
Conversation
|
@mallya-m is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
@Priyanshu-byte-coder could you please add |
45e58b3
into
Priyanshu-byte-coder:main
|
🎉 Merged! Thanks for contributing to DevTrack. If the project has been useful to you, a ⭐ star on the repo is the easiest way to support it — it helps DevTrack get discovered by more developers. Keep an eye on open issues for your next contribution! |
What does this PR do?
Fixes tooltip overflow on the rightmost cells of the contribution heatmap. Tooltip now flips to align right when near the viewport edge instead of overflowing.
Related issue
Closes #1046
Changes made
isNearRightEdgecheck: true whenweekIndex >= weekCount - 3right-0 translate-x-0alignmentleft-1/2 -translate-x-1/2alignmentHow to test