Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: apply styles to the correct month (#4151)

KidLoveToPlay97ef5a8871c9
diff --git a/web/src/components/ActivityCalendar.tsx b/web/src/components/ActivityCalendar.tsx
index b41810bd3..dd4e0b7ba 100644
--- a/web/src/components/ActivityCalendar.tsx
+++ b/web/src/components/ActivityCalendar.tsx
@@ -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)}
>