diff --git a/src/widgets/calendar/agenda.jsx b/src/widgets/calendar/agenda.jsx
index fb3de208..5057ac48 100644
--- a/src/widgets/calendar/agenda.jsx
+++ b/src/widgets/calendar/agenda.jsx
@@ -7,30 +7,29 @@ import { IoMdCheckmarkCircleOutline } from "react-icons/io";
import { EventContext } from "../../utils/contexts/calendar";
export function Event({ event, colorVariants, showDate = false }) {
- const title = event.title.length > 42 ? `${event.title.slice(0, 42)}...` : event.title;
const [hover, setHover] = useState(false);
const { i18n } = useTranslation();
return (
setHover(!hover)}
onMouseLeave={() => setHover(!hover)}
>
-
+
{showDate &&
event.date.setLocale(i18n.language).startOf("day").toLocaleString({ month: "short", day: "numeric" })}
-
-
-
-
- {hover && event.additional ? event.additional : title}
+
+
+
+
{hover && event.additional ? event.additional : event.title}
+
{event.isCompleted && (
-
+
)}
@@ -59,7 +58,7 @@ export default function Agenda({ service, colorVariants, showDate }) {
const { i18n } = useTranslation();
if (!showDate) {
- return ;
+ return ;
}
const eventsArray = Object.keys(events)
@@ -72,8 +71,8 @@ export default function Agenda({ service, colorVariants, showDate }) {
if (!eventsArray.length) {
return (
-
-
+
+
@@ -97,15 +96,11 @@ export default function Agenda({ service, colorVariants, showDate }) {
const eventsByDay = days.map((d) => eventsArray.filter((e) => e.date.ts === d));
return (
-
-
-
- {eventsByDay.map((eventsDay, i) => (
-
- ))}
-
+
+
+ {eventsByDay.map((eventsDay, i) => (
+
+ ))}
);