fix(widgets): fix hover card disappearing and remove group wrapper

- Remove wrapper div that broke HoverCard hover tracking between
  target and dropdown (root cause of instant disappear)
- Remove useElementSize, always show notification dots
- Increase closeDelay to 400ms (per Mantine interactive-elements
  pattern) so users can move mouse into dropdown with link buttons
- Remove HoverCard.Group from component.tsx per feedback
This commit is contained in:
ajnart committed 2026-07-21 17:58:19 +02:00
1 parent c08054736e
commit 28fefcd23f
2 files changed
+40 -48

No files matched your search

+4 -6
View File
@@ -2,7 +2,7 @@
import { useMemo, useState } from "react";
import { useParams } from "next/navigation";
import { useMantineTheme, HoverCard } from "@mantine/core";
import { useMantineTheme } from "@mantine/core";
import { Calendar } from "@mantine/dates";
import { useElementSize } from "@mantine/hooks";
import dayjs from "dayjs";
@@ -67,9 +67,8 @@ const CalendarBase = ({ isEditMode, events, month, setMonth, options }: Calendar
const normalizedEvents = useMemo(() => splitEvents(events), [events]);
return (
<HoverCard.Group openDelay={350} closeDelay={200}>
<Calendar
defaultDate={new Date()}
<Calendar
defaultDate={new Date()}
onPreviousMonth={(month) => setMonth(new Date(month))}
onNextMonth={(month) => setMonth(new Date(month))}
highlightToday
@@ -145,8 +144,7 @@ const CalendarBase = ({ isEditMode, events, month, setMonth, options }: Calendar
/>
);
}}
/>
</HoverCard.Group>
/>
);
};