mirror of
https://github.com/usememos/memos.git
synced 2024-12-25 22:51:29 +08:00
chore: apply styles to the correct month (#4151)
This commit is contained in:
parent
a51e363c7c
commit
97ef5a8871
1 changed files with 4 additions and 3 deletions
|
@ -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)}
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue