mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: apply styles to the correct month (#4151)
This commit is contained in:
@@ -84,9 +84,10 @@ const ActivityCalendar = (props: Props) => {
|
||||
"w-6 h-6 text-xs rounded-xl flex justify-center items-center border cursor-default",
|
||||
"text-gray-400",
|
||||
item.isCurrentMonth ? getCellAdditionalStyles(count, maxCount) : "opacity-60",
|
||||
isToday && "border-zinc-400",
|
||||
isSelected && "font-bold border-zinc-400",
|
||||
!isToday && !isSelected && "border-transparent",
|
||||
item.isCurrentMonth && isToday && "border-zinc-400",
|
||||
item.isCurrentMonth && isSelected && "bg-success font-bold",
|
||||
item.isCurrentMonth && !isToday && !isSelected && "border-transparent",
|
||||
!item.isCurrentMonth && "border-transparent",
|
||||
)}
|
||||
onClick={() => count && onClick && onClick(date)}
|
||||
>
|
||||
|
Reference in New Issue
Block a user