mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +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",
|
"w-6 h-6 text-xs rounded-xl flex justify-center items-center border cursor-default",
|
||||||
"text-gray-400",
|
"text-gray-400",
|
||||||
item.isCurrentMonth ? getCellAdditionalStyles(count, maxCount) : "opacity-60",
|
item.isCurrentMonth ? getCellAdditionalStyles(count, maxCount) : "opacity-60",
|
||||||
isToday && "border-zinc-400",
|
item.isCurrentMonth && isToday && "border-zinc-400",
|
||||||
isSelected && "font-bold border-zinc-400",
|
item.isCurrentMonth && isSelected && "bg-success font-bold",
|
||||||
!isToday && !isSelected && "border-transparent",
|
item.isCurrentMonth && !isToday && !isSelected && "border-transparent",
|
||||||
|
!item.isCurrentMonth && "border-transparent",
|
||||||
)}
|
)}
|
||||||
onClick={() => count && onClick && onClick(date)}
|
onClick={() => count && onClick && onClick(date)}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue