chore: style fix to #4151 (#4153)

* chore: apply styles to the correct month

* chore: style fix
This commit is contained in:
KidLoveToPlay 2024-11-28 10:23:28 +08:00 committed by GitHub
parent 97ef5a8871
commit 73d13cb97b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ const ActivityCalendar = (props: Props) => {
"text-gray-400",
item.isCurrentMonth ? getCellAdditionalStyles(count, maxCount) : "opacity-60",
item.isCurrentMonth && isToday && "border-zinc-400",
item.isCurrentMonth && isSelected && "bg-success font-bold",
item.isCurrentMonth && isSelected && "font-bold border-zinc-400",
item.isCurrentMonth && !isToday && !isSelected && "border-transparent",
!item.isCurrentMonth && "border-transparent",
)}